Jiang Jiang Jian
7da4b42ed1
Merge branch 'feature/btdm_add_connect_event_and_disconnect_event_for_gattc' into 'master'
...
component/bt: Add disconnect & connect func and event
See merge request !806
2017-06-07 13:45:43 +08:00
Jiang Jiang Jian
82b8b1db1f
Merge branch 'bugfix/bt_ble_separation' into 'master'
...
component/bt: fix the build error when using classic BT, with GATTC, GATTS and SMP disabled
See merge request !822
2017-06-06 20:56:05 +08:00
Jiang Jiang Jian
b78242da58
Merge branch 'bugfix/btdm_rebase_update_param_#9626' into 'master'
...
component/bt: rebase the btdm_updata_param_bug_#9626 to the new master.
See merge request !808
2017-06-06 20:55:23 +08:00
Liu Zhi Fu
f40be8eb77
esp32: add sniffer filter api
...
Add sniffer filter to filter specified packets
2017-06-06 19:07:12 +08:00
Yulong
e6acc32df6
component/bt: rebase the btdm_updata_param_bug_#9626 to the new master.
...
- Added the error code for the time out status.
2017-06-06 05:51:31 -04:00
Yulong
531f751fd3
component/bt: Cherry-pick the btdm_no_doc_for_value_type_github_#118659 to this branch to avoid conflict.
2017-06-06 05:22:17 -04:00
zhiweijian
db96edc5d9
component/bt: Add disconnect & connect func and event
...
- Add disconnect func for gap
- Add connect event and disconnect event for gattc
2017-06-06 16:53:37 +08:00
Angus Gratton
1cbdb35e1e
Merge branch 'bugfix/i2s_channel_setting' into 'master'
...
bugfix(i2s): fix error when changing channel number in i2s_set_clk function
See merge request !784
2017-06-06 14:40:43 +08:00
Angus Gratton
99454d4a73
Merge branch 'feature/nghttp2_v1_22' into 'master'
...
nghttp module: Update to v1.22, use submodule instead of in-tree source
See merge request !763
2017-06-06 14:38:41 +08:00
Angus Gratton
ae05787a51
Merge branch 'bugfix/make_srcdirs_order' into 'master'
...
build system: Fix bug where component src subdirs needed listing before parent source dirs
See merge request !778
2017-06-06 14:37:21 +08:00
Jiang Jiang Jian
b0d93fccce
Merge branch 'bugfix/btdm_ble_scan_5min_stop_github_#12723' into 'master'
...
component/bt: Change the duration type from UINT8 to UINT32
See merge request !815
2017-06-06 14:11:05 +08:00
wangmengyang
ca4506fba9
component/bt: fix the build error when using classic BT, with GATTC, GATTS and SMP disabled
2017-06-05 21:01:58 +08:00
jack
ba32dd30a1
bugfix:Fix bug that wdt reset information for CPU1 was not correct
2017-06-05 18:26:14 +08:00
Angus Gratton
b9fc5ecf68
freertos: Fix crash when waking task on CPU1 with scheduler disabled
...
xPendingReadyList[1] was never initialised correctly, so if a task is added to this list (ie by xSemaphoreGiveFromISR()
or similar) while scheduler is disabled, then it causes a null pointer dereference.
Bug produces stack traces similar to:
0x40086e87: vListInsertEnd at /home/gus/esp/32/idf/components/freertos/./list.c:130
0x40084ba3: xTaskRemoveFromEventList at /home/gus/esp/32/idf/components/freertos/./tasks.c:3439
0x40083c54: xQueueGiveFromISR at /home/gus/esp/32/idf/components/freertos/./queue.c:2034
0x400f50a0: timer_group0_isr at /home/gus/esp/32/idf/components/freertos/test/./test_suspend_scheduler.c:27
0x40081d7d: _xt_lowint1 at xtensa_vectors.o:?
2017-06-05 16:12:20 +10:00
Angus Gratton
f40ae10a5d
freertos: add test case for ISRs waking tasks when scheduler disabled
2017-06-05 16:12:20 +10:00
Ivan Grokhotkov
17da994345
esp_event_send: check if the event loop is initialized
...
Fixes https://github.com/espressif/esp-idf/issues/668
2017-06-05 11:01:26 +08:00
He Yin Ling
2e7f6a2247
test: add NVS compatible test case and CI job
2017-06-04 10:29:15 +08:00
Yulong
a42bf640bc
component/bt: Change the duration type from UINT8 to UINT32
2017-06-03 01:00:10 -04:00
Jiang Jiang Jian
cc46038142
Merge branch 'bugfix/add_dport_protect_in_libphy' into 'master'
...
Add dport protect in libphy.a
See merge request !803
2017-06-02 19:13:18 +08:00
Jiang Jiang Jian
bd17791fd4
Merge branch 'bugfix/tw12798_dhcp_server_crash' into 'master'
...
lwip: fix dhcp server crash issue
See merge request !797
2017-06-02 19:09:43 +08:00
Jiang Jiang Jian
0a66f0db4c
Merge branch 'bugfix/btdm_bit_against_enums_github_#12289' into 'master'
...
component/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum t…
See merge request !809
2017-06-02 15:41:01 +08:00
Liu Zhi Fu
cd58f089c2
lwip: fix dhcp server crash issue
...
Fix long dhcp request packet cause dhcp server crash issue
2017-06-02 14:02:33 +08:00
Jiang Jiang Jian
1eaf88262d
Merge branch 'bugfix/btdm_add_open_and_close_event_for_gatts' into 'master'
...
component/bt: add open and close event for gatts
See merge request !786
2017-06-02 13:53:03 +08:00
Yulong
be3eda0044
component/bt: Change the esp_gatt_perm_t & esp_gatt_char_prop_t type from enum to uint16_t & uint8_t.
2017-06-02 01:48:56 -04:00
XiaXiaotian
66ef886d77
Add dport protect in libphy.a
2017-06-01 19:43:55 +08:00
Jiang Jiang Jian
ab0f7264ee
Merge branch 'bugfix/tw12174_connect_ap_fail' into 'master'
...
Fix the bug that station fails to connect to AP sometimes.
See merge request !802
2017-06-01 19:40:02 +08:00
zhiweijian
f5a59f4f78
component/bt: add open and close event for gatts
...
1.added open event and close event for gatts.
2.used esp_log_buffer_char/hex for gattc scan result.
2017-06-01 15:01:54 +08:00
XiaXiaotian
d2f24f1b81
Fix the bug that station fails to connect to AP sometimes.
2017-05-31 20:27:02 +08:00
jack
fc130fba86
fix bug that files missing commit in MR 773
2017-05-31 19:37:39 +08:00
Ivan Grokhotkov
06accaf851
add C++ include guards to header files which are missing them
...
Fixes https://github.com/espressif/esp-idf/issues/628
2017-05-31 17:20:17 +08:00
Ivan Grokhotkov
a25a4a0a7c
nvs: check value size before writing, document limitations
...
Writing values longer than half of the page size (with header taken into
account) causes fragmentation issues. Previously it was suggested on the
forum that using long values may cause issues, but this wasn’t checked
in the library itself, and wasn’t documented. This change adds necessary
checks and introduces the new error code.
Documentation is also fixed to reflect the fact that the maximum length
of the key is 15 characters, not 16.
2017-05-31 12:59:24 +08:00
Angus Gratton
4947c953d3
freertos: Mark uxTaskPriorityGet() as tested
...
Also adds some SMP-aware dynamic task priority unit tests
2017-05-29 16:19:00 +10:00
Angus Gratton
d718cbd873
Merge branch 'bugfix/deep_sleep_example_stub_delay' into 'master'
...
sdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default
See merge request !758
2017-05-29 12:11:56 +08:00
Angus Gratton
2b1365a51b
Merge branch 'feature/docs_gen-dxd' into 'master'
...
docs: Automatically generate API reference list / Doxygen directives
See merge request !723
2017-05-29 07:08:53 +08:00
Jiang Jiang Jian
636d2b384e
Merge branch 'bugfix/ble_comfirm_reply_not_work_#12881' into 'master'
...
component/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC…
See merge request !793
2017-05-27 14:40:26 +08:00
Yulong
e9fae704e3
component/bt: Merge the new master to avoid conflict.
2017-05-26 22:47:56 -04:00
Yulong
9679c238aa
component/bt: Added the esp_ble_passkey_reply BTC_GAP_BLE_PASSKEY_REPLY_EVT &BTC_GAP_BLE_CONFIRM_REPLY_EVT
...
event.
2017-05-26 05:26:15 -04:00
Jiang Jiang Jian
826e96248d
Merge branch 'bugfix/btdm_ble_crash_read_long_char_#12338' into 'master'
...
component/bt: Change the fragement method to avoid crash when the data transmit should fragement.
See merge request !789
2017-05-26 14:40:47 +08:00
Jiang Jiang Jian
87a5bd0179
Merge branch 'bugfix/btdm_value_relate_to_internal' into 'master'
...
fix bugs of some constant value not equal internal define but quotes internal define
See merge request !787
2017-05-26 14:24:52 +08:00
Jiang Jiang Jian
adac20dc36
Merge branch 'bugfix/tw12643_board_no_response' into 'master'
...
fix close socket block issue
See merge request !781
2017-05-26 14:11:53 +08:00
Yulong
e40810adbb
compoennt/bt: change the remaining_length compare with the max_packet_size value when the data packet should fragment and dispatch.
2017-05-25 23:09:50 -04:00
Yulong
81ff34742b
component/bt: Change the fragement method to avoid crash when the data transmit should fragement.
2017-05-25 09:59:03 -04:00
Tian Hao
0c6d966bff
component/bt : fix bugs of some constant value not equal internal define but quotes internal define
2017-05-25 16:12:48 +08:00
Yulong
66bb6a2f2b
component/bt: squash the branch of the early commit
...
component/bt: squash the branch of the early commit
component/bt: Added the set static random address callback to the bt project.
component/bt: fixed the set static random address error.
component/bt: fixed the set static random address error.
2017-05-25 02:13:27 -04:00
Jiang Jiang Jian
2aadbee43c
Merge branch 'bugfix/i2c_read_size' into 'master'
...
component/driver : fix i2c slave read size bug
See merge request !770
2017-05-25 10:55:28 +08:00
Ivan Grokhotkov
3c583a7655
sdkconfig: set CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=2000 by default
...
To increase the chances that the examples work out of the box, this
change is raising the default deep sleep wakeup delay to 1ms.
If GPIO15 is low at startup, ROM code takes less time to execute
(because no logging is performed), so more time may be needed to allow
flash chip to become ready.
2017-05-25 10:51:39 +08:00
wangmengyang
cdea87168c
component/bt: bugfix for A2DP in dropping of media packet when data buffer size goes beyond threshold
2017-05-24 15:08:46 +08:00
XiaXiaotian
c0fa8a0354
fix close socket block issue
...
LWIP rx task receives NULL buffer pointer only when closing socket.
So, do not need to close it again.
2017-05-23 21:08:03 +08:00
Wangjialin
f68c5baea6
bugfix(i2s): fix error when changing changel number in i2s_set_clk function
2017-05-23 19:32:10 +08:00
Jiang Jiang Jian
ba55461686
Merge branch 'bugfix/ble_gatt_server_example_receive_prepare_write' into 'master'
...
component/bt: gatt_server example receive prepare write
See merge request !741
2017-05-23 13:57:39 +08:00
Liu Zhi Fu
365b66b95b
esp32: update wifi lib to fix ota fail bug
...
Fix ota fails on dual core
2017-05-23 11:38:45 +08:00
Ivan Grokhotkov
55fb4c54c8
Merge branch 'bugfix/release_coproc_regs_taskdelete' into 'master'
...
Release coprocessor registers when a task is deleted.
See merge request !765
2017-05-22 11:05:47 +08:00
zhiweijian
4ffb4911e1
gatt_server example receive prepare write
2017-05-22 10:33:36 +08:00
Angus Gratton
99771a255f
build system: Fix bug where component src subdirs needed listing before parent source dirs
...
Triggered on make 3.81, happens sometimes on Linux and always(?) on macOS. May depend on the order the OS' filesystem
resolves wildcards in.
Includes a revert to the LWIP component to verify this is properly fixed.
See also https://github.com/espressif/esp-idf/issues/632
2017-05-22 11:45:55 +10:00
krzychb
30edcca1fb
docs: Generate Doxygen directives for API documentation
...
This is to resolve issue reported in https://github.com/espressif/esp-idf/issues/130 .
2017-05-19 18:26:02 +02:00
Ivan Grokhotkov
a38cecefa7
Merge branch 'bugfix/fix_dport_access_in_isr' into 'master'
...
Fix Dport access in interrupts
Dport accesses would re-enable interrupts unconditionally, breaking things when called in an ISR. This saves and restores the interrupt status, fixing this.
This fixes a crash in the SPI slave driver, and possibly other things.
See merge request !772
2017-05-19 19:08:34 +08:00
wangmengyang
25b07ed79a
component/bt: bugfix for handling HCI_Host_Number_Of_Completed_Packets in BT controller
2017-05-19 17:36:02 +08:00
Jeroen Domburg
fded7b4270
Dport accesses would re-enable interrupts unconditionally, breaking things when called in an ISR. This saves and restores the interrupt status, fixing this.
2017-05-19 15:25:02 +08:00
Ivan Grokhotkov
972d1d9242
Merge branch 'feature/ci_test_config_autogen' into 'master'
...
CI: auto generate configs for test jobs
Currently CI test jobs are static configured by several pre-generated config files.
This approach have several disadvantages:
1. not flexible to select test cases to run, which is important feature of @bot
2. difficult to update test as we need to pre-generate quite a lot files
3. need to maintain extra config files in IDF
4. not flexible to support new test apps or chips, can't use some new features of test bench
Therefore we'll add assign_test stage between build and test, to generate configs for test jobs.
See merge request !738
2017-05-19 11:56:45 +08:00
Ivan Grokhotkov
67a147fc6f
Merge branch 'bugfix/bt_controller_log_clean_up' into 'master'
...
component/bt: disable information loggings from bt controller
clean-up information loggings during controller initialization
See merge request !769
2017-05-19 11:50:11 +08:00
Tian Hao
45c815f9ad
component/driver : fix i2c slave read size bug
...
when no available data, the slave read size not return 0, so fix it.
2017-05-19 11:22:08 +08:00
Angus Gratton
dbb862299d
Merge branch 'bugfix/github_small_prs' into 'master'
...
Small PR fixes from github
Small bug fixes & typo corrections from github.
See merge request !762
2017-05-19 07:51:47 +08:00
wangmengyang
df3164bd58
component/bt: disable information loggings from bt controller
2017-05-18 21:44:06 +08:00
Jeroen Domburg
356ce2f15a
Make compiler happy
2017-05-18 18:50:15 +08:00
Jeroen Domburg
da5d166356
Release coprocessor registers when a task is deleted.
2017-05-18 15:35:28 +08:00
Jiang Jiang Jian
d8c0b505f6
Merge branch 'bugfix/btdm_gattc_discover_refresh_cache_#11077' into 'master'
...
component/bt: fixed the discover primary service not correct if server changes s…
…ervice during disconnect period.
See merge request !761
2017-05-18 15:04:36 +08:00
Jiang Jiang Jian
b5e2bcbb2c
Merge branch 'bugfix/ble_add_adv_state_bug_#12301' into 'master'
...
component/bt: Fix the bug that sometimes received a ble connection & the adv wil…
…l stop, can not send adv again.
See merge request !759
2017-05-18 15:03:41 +08:00
Jiang Jiang Jian
0d66ac256b
Merge branch 'bugfix/minor_fix_about_wifi_api_comments' into 'master'
...
esp32: minor fix for wifi api comments
Minor fix about the comments of wifi_promiscuous_pkt_type_t
See merge request !760
2017-05-18 14:59:50 +08:00
Jiang Jiang Jian
46519a019c
Merge branch 'bugfix/btdm_switch_gatts_error_#12659' into 'master'
...
component/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659 .
switch off BLE GATTS and build.
See merge request !766
2017-05-18 14:58:24 +08:00
Jiang Jiang Jian
9229902dff
Merge branch 'bugfix/lib_dport_access' into 'master'
...
component/esp32 : fix library dport access protections.
1. add esp32 library access DPORT register protections.
2. add bluetooth library access DPORT register protections.
3. change register operation(suffix/prefix) to new style.
See merge request !757
2017-05-18 14:56:38 +08:00
Yulong
b401bbc4d6
component/bt: change the esp_ble_gattc_cache_refresh API return value from esp_gatt_status_t to esp_err_t.
2017-05-18 02:11:42 -04:00
Yulong
8f1a6989ee
component/bt: Added the declaration for esp_ble_gattc_cache_refresh in the gattc api header file.
2017-05-18 02:07:16 -04:00
Yulong
d13c083397
component/bt:fix the bug of uild error if switch off BLE GATTS. Bug number is #12659 .
2017-05-17 07:17:22 -04:00
Angus Gratton
b6063d160c
nghttp module: Update to v1.22, use submodule instead of in-tree source
2017-05-17 14:05:54 +10:00
Tian Hao
52515d0edf
component/esp32 : update wifi library and phy library
2017-05-17 11:46:53 +08:00
Angus Gratton
1ddf40feb7
Merge branch 'bugfix/freertos_larger_stacksize' into 'master'
...
Make internal stack size variables in FreeRTOS 32-bit instead of 16-bit
Stock FreeRTOS uses an uint16 to store stack sizes, making it impossible to allocate a stack >64K. This changes this into an uint32, allowing for larger stacks.
See merge request !677
2017-05-17 10:23:39 +08:00
Deomid Ryabkov
3ac3a78d7d
Print the name of the task that hit the stack watchpoint
...
This may be enough to troubleshoot (increase stack size).
Merges https://github.com/espressif/esp-idf/pull/607
2017-05-17 11:36:13 +10:00
zelll
0b447db8d8
uart driver: Move UART_EVENT_MAX to last
...
Merges https://github.com/espressif/esp-idf/pull/594
2017-05-17 11:36:13 +10:00
Ankit Daftery
66191fc0b5
doc: Update wifi scan description
...
Code was refactored, updating documentation to reflect that
Merges https://github.com/espressif/esp-idf/pull/593
2017-05-17 11:36:13 +10:00
Konstantin Fedorov
31de20a217
docs: Error in gpio_install_isr_service() description
...
Merges https://github.com/espressif/esp-idf/pull/564
2017-05-17 11:04:17 +10:00
Deomid Ryabkov
a40fd2e7bd
esp32.ld: Add an entry for ets_write_char_uart
...
It is mentioned in ets_sys.h, but not actually PROVIDEd.
Merges https://github.com/espressif/esp-idf/pull/545
2017-05-17 10:45:17 +10:00
Yulong
00cdf62ce7
component/bt: fixed the discover primary service not correct if server changes service during disconnect period.
2017-05-16 09:10:37 -04:00
Liu Zhi Fu
f59bf74057
esp32: minor fix for wifi api comments
...
Minor fix about the comments of wifi_promiscuous_pkt_type_t
2017-05-16 17:01:42 +08:00
Yulong
e797cd03f0
component/bt: Fix the bug that sometimes received a ble connection & the adv will stop, can not send adv again.
2017-05-16 03:10:16 -04:00
Angus Gratton
4dad7ab621
Merge branch 'bugfix/gen_esp32part' into 'master'
...
Partition table gen esp32part fixes: App offset errors, Python 3 support
As mentioned on forums, gen_esp32part.py wasn't erroring correctly if a non-64KB-aligned app partition was referenced.
Also merges a PR to add Python 2&3 support (with some tweaks). Not very useful in IDF right now, but useful for Arduino.
See merge request !751
2017-05-16 15:03:11 +08:00
Ivan Grokhotkov
98e15df7f6
examples: add ULP ADC example
2017-05-16 13:15:02 +08:00
Tian Hao
3d22f1ee2f
component/esp32 : fix library sport access protections.
...
1. add esp32 library access DPORT register protections.
2. add bluetooth library access DPORT register protections.
3. change register operation(suffix/prefix) to new style.
2017-05-13 19:55:11 +08:00
Jiang Jiang Jian
1e0710f1b2
Merge branch 'bugfix/bt_acl_tx' into 'master'
...
components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-…
…U transmission is resumed
See merge request !755
2017-05-12 18:23:20 +08:00
Jiang Jiang Jian
a6608648db
Merge branch 'driver_merge_tmp/mcpwm' into 'master'
...
feature: Motor Control PWM(mcpwm) driver and examples
See merge request !698
2017-05-12 18:21:38 +08:00
Jiang Jiang Jian
9e46b89a75
Merge branch 'feature/i2s_pdm_and_dac' into 'master'
...
Driver update: I2S pdm and built-in DAC
1. Modify I2S DAC built-in mode settings
2. Add I2S pdm mode
3. Correct I2S signal index in full-duplex mode
4. Modify dac output function
5. Add dac pad init functions
6. Modify DAC documentation
See merge request !740
2017-05-12 18:21:17 +08:00
Jiang Jiang Jian
bb25ac91f4
Merge branch 'bugfix/dualcore' into 'master'
...
component/soc: fix register access protection missing
- fix dport register access protection missing
- add rom function protect
- add normal register function check
See merge request !747
2017-05-12 18:19:31 +08:00
wangmengyang
23965694b1
components/bt: update libbtdm.a with a bugfix for an assertion failure when ACL-U transmission is resumed
2017-05-12 17:53:25 +08:00
Wangjialin
1f055d28b8
Driver update: I2S pdm and built-in DAC
...
1. Modify I2S DAC built-in mode settings
2. Add I2S pdm mode
3. Correct I2S signal index in full-duplex mode
4. Modify dac output function
5. Add dac pad init functions
6. Modify DAC documentation
7. Add i2s_set_dac_mode API
2017-05-12 16:21:02 +08:00
Kewal M Shah
2008f4d88c
feature: add Motor Control PWM(mcpwm) driver
...
1. Name change from chopper to carrier, block diagram update, minor changes to example codes
2. mcpwm_reg.h changed, brought uniformity in comments, worked on suggestions, duty to accept float. Some name changes!
3. Minor readme changes and Indetation
4. Minor change: move mcpwm_reg.h and mcpwm_struct.h to new path
5. Minor change: addition of BLDC example code and Readme
6. Name changed from epwm to mcpwm
7. Improve the reg name in mcpwm_struct.h
8. Name change chopper>carrier, deadband>deadtime
2017-05-12 15:47:59 +08:00
Tian Hao
377a1f5ea1
component/esp32 : do more fix of dualcore bug
...
1. the cache API in romcode will access DPORT register, so protect it.
2. fix STALL spelling.
3. check dport access by non-dport access function
2017-05-12 15:41:51 +08:00
Jiang Jiang Jian
9a64744850
Merge branch 'bugfix/ble_fix_exception_build_sr_msg_#12124' into 'master'
...
component/bt: fix the exception in attp_buil_sr_msg when handling gatt write bug. bug number #12124 .
fix the exception in attp_buil_sr_msg when handling gatt write bug.
See merge request !743
2017-05-12 15:24:58 +08:00
Ivan Grokhotkov
272551301e
Merge branch 'bugfix/unit_test_fixes' into 'master'
...
Small unit-test-related fixes
Fixes for some small bugs found running unit tests with heap poisoning turned on.
All are bugs in the tests, except for one FreeRTOS fix (when deleting a task, check if it's running on the other CPU and preempt it if so.)
See merge request !746
2017-05-12 14:53:46 +08:00
Ivan Grokhotkov
b576893167
Merge branch 'bugfix/nvs_dynamic_key_names' into 'master'
...
nvs: remove search cache at page level
Since read cache was introduced at page level, search cache became
useless in terms of reducing the number of flash read operations.
In addition to that, search cache used an assumption that if pointers to
keys are identical, the keys are also identical, which was proven wrong
by applications which generate key names dynamically.
This change removes CachedFindInfo, and all its uses. This is done at
expense of a small extra number of CPU operations (looking up a value in
the read cache is slightly more expensive) but no extra flash read
operations.
Ref TW12505
Ref https://github.com/espressif/arduino-esp32/issues/365
See merge request !753
2017-05-12 14:53:18 +08:00
island
e9dc0115fc
component/bt: Add parameter check for attp_build_sr_msg function
2017-05-12 14:30:33 +08:00
Angus Gratton
51f20c6e7c
gen_esp32part: Run unit tests on host as part of gitlab-ci
2017-05-12 16:28:41 +10:00