Jiang Jiang Jian
a7d62fff18
Merge branch 'bugfix/btdm_fix_memory_leak' into 'master'
...
Component/bt: add config for gattc cache and fix memory leak
See merge request idf/esp-idf!2429
2018-06-06 16:28:15 +08:00
Angus Gratton
4667fb2495
cmake: Compatibility fixes from Mahavir
2018-06-06 16:14:03 +10:00
Michael (XIAO Xufeng)
939e5693a5
chore(spi): fix the terms of native to iomux
2018-06-06 06:08:39 +00:00
michael
75cdbcefc7
test(spi): add test for SPI timing
2018-06-06 06:08:39 +00:00
michael
208d993de1
test(spi_master): slightly modify the test
2018-06-06 06:08:39 +00:00
michael
5cf7d3768d
feat(spi_master): fine tune the timing of SPI
2018-06-06 06:08:39 +00:00
Liu Zhi Fu
6cc95809fb
lwip: fix tcp_pcb_purge assert
...
Remove the assert in tcp_pcb_purge()
2018-06-06 10:25:01 +08:00
chensheng
0b447f0003
test/fix bug refresh cache after connect
2018-06-06 02:17:06 +00:00
zhiweijian
822dac5659
Component/bt: fix memory leak
2018-06-06 02:17:06 +00:00
michael
3ba8461928
doc: fix the level inconsistent issue in Kconfig document
2018-06-05 10:36:18 +00:00
Roland Dobai
51e42d8e92
idf_monitor: add support for filtering options
2018-06-05 12:23:27 +02:00
Angus Gratton
b2ff235bd0
Merge branch 'bugfix/github_prs' into 'master'
...
Merge some small fixes from Github
See merge request idf/esp-idf!2500
2018-06-05 11:51:35 +08:00
island
f30410113b
component/bt: fix the issue where no gatt server request callback warning caused while acting as a GATTC
2018-06-05 02:41:34 +00:00
Konstantin Kondrashov
b1189f4f6a
newlib: Remove RTC_DATA_ATTR for adjtime
...
Using RTC_DATA_ATTR in newlib leads to increased power consumption in sleep mode. (RTC SLOW MEM)
2018-06-04 15:59:22 +05:00
Jiang Jiang Jian
8a4c9d7dfb
Merge branch 'doc/wifi_channel_state_information' into 'master'
...
add document of channel state information
See merge request idf/esp-idf!2468
2018-06-04 17:59:05 +08:00
Marcin Jaworski
5bc1bf4add
Fix PartitionDefinition comparison in Python 3
...
Merges https://github.com/espressif/esp-idf/pull/2018
2018-06-04 17:18:41 +10:00
Stefan Profanter
18533346b8
Fix compile error using asm
...
In function 'xPortGetCoreID':
error: expected ')' before ':' token
:"=r"(id));
Merges https://github.com/espressif/esp-idf/pull/1965
2018-06-04 16:44:35 +10:00
Paul Reimer
c83c3b64cd
Add declarations of private nvs functions (nvs_*) in nvs_flash component to fix C++ -Wmissing-declarations warning
...
Merges https://github.com/espressif/esp-idf/pull/1956
2018-06-04 16:36:44 +10:00
Paul Reimer
e5ac96f49a
Add declarations of private cxx_guard functions (__cxa_guard_*) in cxx component to fix C++ -Wmissing-declarations warning
...
Merges https://github.com/espressif/esp-idf/pull/1956
2018-06-04 16:36:44 +10:00
Paul Reimer
d3b0e0e3fd
Unset COMPONENT_ADD_INCLUDEDIRS in cxx component to fix C++ -Wmissing-include-dirs warning
...
Merges https://github.com/espressif/esp-idf/pull/1956
2018-06-04 16:36:44 +10:00
chensheng
0796099c29
test: filter duplicated ble adv events in test
2018-06-04 14:14:40 +08:00
zhiweijian
ae6b47a60a
Component/bt: close BT sleep in default config
2018-06-04 11:17:27 +08:00
Liu Han
696d733eb0
fix(mdns): fix the exception when remove one of multiple service
2018-06-03 17:29:49 +08:00
Ivan Grokhotkov
f85be9f909
Merge branch 'bugfix/systemview_menu' into 'master'
...
fix the dependency of systemview config menu.
See merge request idf/esp-idf!2457
2018-06-01 21:52:16 +08:00
Jiang Jiang Jian
40da291d5d
Merge branch 'bugfix/wifi_fix_a_few_bugs' into 'master'
...
Fix a few WiFi bugs
See merge request idf/esp-idf!2491
2018-06-01 18:37:50 +08:00
Jiang Jiang Jian
cd3ce46b8f
Merge branch 'bugfix/a2dp_sink_fluent' into 'master'
...
component/bt : enlarge the A2DP SINK FRAME QUEUE SIZE to make A2DP more fluent
See merge request idf/esp-idf!2492
2018-06-01 18:34:20 +08:00
Tian Hao
21cb7226a2
component/bt : enlarge the A2DP SINK FRAME QUEUE SIZE to make A2DP more fluent
2018-06-01 16:51:23 +08:00
Ivan Grokhotkov
28877e7868
Merge branch 'feature/esp_error_check_prints_error_text' into 'master'
...
ESP_ERROR_CHECK converts error code to text
See merge request idf/esp-idf!2488
2018-06-01 16:43:37 +08:00
Jiang Jiang Jian
cb9483e844
Merge branch 'bugfix/btdm_a2dp_assert_warn_after_connected' into 'master'
...
component/bt: Fix bug a2dp assert warn after connected
See merge request idf/esp-idf!2470
2018-06-01 15:54:05 +08:00
Xia Xiaotian
7d5ef3c765
add document of channel state information
2018-06-01 15:45:00 +08:00
XiaXiaotian
5081714c53
Fix a few WiFi bugs
...
1. fix rx state parse if CSI is enabled.
2. make smartconfig channel timer thread safe.
3. fix sniffer filter mask to keep the same as IDF.
2018-06-01 14:25:43 +08:00
baohongde
c04a4a8527
component/bt: Fix bug a2dp assert warn after connected
2018-06-01 10:57:22 +08:00
Jiang Jiang Jian
50252ca794
Merge branch 'bugfix/btdm_malloc_fail_lead_to_exception' into 'master'
...
component/bt: Fix malloc fail lead to crash
See merge request idf/esp-idf!2485
2018-06-01 10:36:36 +08:00
Jiang Jiang Jian
5ff8732950
Merge branch 'bugfix/tw22958_fix_some_bugs_introduced_by_wifi_os_adapter' into 'master'
...
esp32/wpa_supplicant: fix some bugs introduced by wifi os adapter
See merge request idf/esp-idf!2475
2018-06-01 10:34:04 +08:00
Roland Dobai
07acbb5664
ESP_ERROR_CHECK converts error code to text
...
If CONFIG_ESP_ERR_TO_NAME_LOOKUP is enabled, ESP_ERROR_CHECK
prints error message in addition to the error code.
2018-05-31 12:53:37 +02:00
Jiang Jiang Jian
a3a0b01c1b
Merge branch 'bugfix/btdm_fix_ble_throughput_demo_fail' into 'master'
...
Component/bt: fix throughput_demo_fail
See merge request idf/esp-idf!2467
2018-05-31 18:53:01 +08:00
Liu Zhi Fu
4afa5d0d29
esp32/wpa_supplicant: fix some bugs introduced by wifi os adapter
...
1. Fix the WiFi/BT coexist bug
2. Fix WPA2 enterprise example crash bug
3. Add size and version check for crypto type struct
4. Add MD5 check for crypto type header file
2018-05-31 17:09:40 +08:00
xiewenxiang
4467b34da2
component/bt: Fix malloc fail lead to crash
2018-05-31 13:31:27 +08:00
Angus Gratton
6b9784cc45
Merge branch 'master' into feature/cmake_update
2018-05-31 14:46:23 +10:00
Ivan Grokhotkov
834c056234
xtensa: remove unused header files
2018-05-31 02:21:36 +00:00
zhiweijian
212b786119
Component/bt: fix throughput_demo_fail
2018-05-30 19:58:31 +08:00
Jiang Jiang Jian
9eade73539
Merge branch 'bugfix/tw19630_fix_espnow_watchdog' into 'master'
...
fix espnow watchdog when modify it's config parameter
See merge request idf/esp-idf!2480
2018-05-30 19:53:52 +08:00
Jiang Jiang Jian
fbbf4b0c03
Merge branch 'bugfix/btdm_fix_start_adv' into 'master'
...
Component/bt: fix start adv complete event state error in dual core
See merge request idf/esp-idf!2432
2018-05-30 19:41:39 +08:00
zhangyanjiao
9bd38c0d86
fix espnow watchdog when modify
2018-05-30 17:19:46 +08:00
zhiweijian
c8e848b0ff
Component/bt: fix start adv
2018-05-30 17:10:51 +08:00
Jiang Jiang Jian
1b1a179f20
Merge branch 'bugfix/tw20805_fix_wpa2_enterprise_issue' into 'master'
...
wpa_supplicant: fix wpa2 enterprise PEAP connection issue
See merge request idf/esp-idf!2474
2018-05-30 15:51:48 +08:00
Ivan Grokhotkov
9d47f348ab
Merge branch 'feature/adjtime_newlib' into 'master'
...
newlib: Add adjtime - makes a gradual adjustment the system clock
See merge request idf/esp-idf!2462
2018-05-30 15:00:13 +08:00
Jiang Jiang Jian
19d823c44d
Merge branch 'bugfix/btdm_memleak_of_ble_set_security_param' into 'master'
...
component/bt: Fix mem leak of esp_ble_gap_set_security_param
See merge request idf/esp-idf!2458
2018-05-30 14:50:02 +08:00
Liu Zhi Fu
6c89ab9839
wpa_supplicant: fix wpa2 enterprise PEAP connection issue
...
Closes https://github.com/espressif/esp-idf/issues/1887
2018-05-30 13:48:29 +08:00
Ivan Grokhotkov
ddff375bab
Merge branch 'feature/ci_fail_on_executable_files' into 'master'
...
CI: check source files for executable flag
See merge request idf/esp-idf!2463
2018-05-30 11:41:06 +08:00
Ivan Grokhotkov
4ea2cab208
Merge branch 'cermak_dhcpserver_fuzzer_test' into 'master'
...
LWIP_Fuzzer: Added AFL tests for lwip dhcpserver, client and dns
See merge request idf/esp-idf!2399
2018-05-29 22:28:43 +08:00
Ivan Grokhotkov
cb649e452f
remove executable permission from source files
2018-05-29 20:07:45 +08:00
Roland Dobai
ecaf234c39
VFS: fix possible memory leak in UART
2018-05-29 11:01:25 +02:00
Roland Dobai
634e8cd54b
VFS: Use convenience function for safe FD_ISSET
2018-05-29 11:01:25 +02:00
Roland Dobai
15b26f8841
VFS: esp_vfs_select() needs to be callable from concurrent tasks
...
This fix is for compatibility with lwip_select(). It moves the lock to
UART which is the only VFS driver which is implemented and is not
"thread-safe".
2018-05-29 11:01:25 +02:00
Roland Dobai
bdbcc492cf
VFS: Add debugging outputs for select() related functions
2018-05-29 11:01:25 +02:00
Angus Gratton
cfa8ed15c0
partition table: Set partition table offset via variable
2018-05-29 16:34:45 +10:00
Angus Gratton
2909fc182b
esptool: Remove tabs from KConfig.projbuild
2018-05-29 16:34:45 +10:00
Nicola Lunghi
2f433e4342
netif require vfs
2018-05-29 16:34:45 +10:00
Angus Gratton
580cfeaaae
idf.py: Print flashing steps at the end of each build
2018-05-29 16:34:45 +10:00
Angus Gratton
8cf82be917
esp32: Component needs public dependency on tcpip_adapter
...
Because of esp_event.h
Closes https://github.com/espressif/esp-idf/issues/1954
2018-05-29 16:34:45 +10:00
Nicola Lunghi
ed1f4e50df
cmakelists: move spi_flash to COMPONENT_REQUIRES
...
in the include file esp_ota_ops.h "esp_partition.h" is included.
This is from spi_flash so component that requires app_update also will need that
this fixes this error:
In file included from ../components/esp32-homie/ota.c:11:0:
/esp-idf/components/app_update/include/esp_ota_ops.h:22:27: fatal error: esp_partition.h: No such file or directory
Signed-off-by: Nicola Lunghi <25422924+nicola-lunghi@users.noreply.github.com>
Merges https://github.com/espressif/esp-idf/pull/1947
2018-05-29 16:34:45 +10:00
Angus Gratton
979568fa0b
docs: Separate "build and flash" into building then flashing
...
Explains idf.py build as mentioned here: https://github.com/espressif/esp-idf/issues/1906#issuecomment-387557050
2018-05-29 16:34:45 +10:00
Angus Gratton
cc104eb05b
cmake: Add sdkconfig.h directory to include paths list not just compiler args
...
Also move into 'build/config/' subdir, remove creation of empty include/config dir.
2018-05-29 16:34:45 +10:00
Angus Gratton
2f4079ebb2
cmake: Hide serial port settings in menuconfig when using cmake
2018-05-29 16:34:45 +10:00
Konstantin Kondrashov
6f529cbe64
newlib: Add adjtime - makes a gradual adjustment the system clock
...
This function speeds up or slows down the system clock in order to make a gradual adjustment. This ensures
that the calendar time reported by the system clock is always monotonically increasing, which might not happen
if you simply set the clock.
The delta argument specifies a relative adjustment to be made to the clock time. If negative, the system clock is
slowed down for a while until it has lost this much elapsed time. If positive, the system clock is speeded up for a
while.
If the olddelta argument is not a null pointer, the adjtime function returns information about any previous time
adjustment that has not yet completed.
The return value is 0 on success and -1 on failure.
To stop the adjustement, call the function settimeofday(current_time).
2018-05-28 17:36:04 +05:00
baohongde
4c8d9278b5
component/bt: Fix mem leak of esp_ble_gap_set_security_param
2018-05-28 17:43:53 +08:00
Michael (XIAO Xufeng)
2ee00cc3a6
fix the dependency of systemview config menu.
2018-05-28 12:51:01 +08:00
Angus Gratton
9e09df25fb
Merge branch 'bugfix/rtc_vddsdio_details' into 'master'
...
Fix minor VDDSDIO details
See merge request idf/esp-idf!2449
2018-05-28 08:51:02 +08:00
XiaXiaotian
b32b93a607
Add OS adapter to WiFi driver
...
1.add os adapter to wifi driver
2.type of encrypt funcs not correct
2018-05-26 17:22:23 +08:00
Ivan Grokhotkov
64b56beff5
Merge branch 'bugfix/vfs_select_incorrect_reset' into 'master'
...
VFS select: Correct reseting of socket FDs
See merge request idf/esp-idf!2444
2018-05-25 23:22:01 +08:00
Jiang Jiang Jian
83d2a529e3
Merge branch 'bugfix/btdm_bt_err_8192' into 'master'
...
component/bt : fix bug that assert rwbt.c 265 8192 error
See merge request idf/esp-idf!2442
2018-05-25 23:15:05 +08:00
Roland Dobai
e86738205d
Fix redefinition of select() on platforms where ESP_PLATFORM is discarded
...
Ref: https://github.com/espressif/esp-idf/issues/1987
2018-05-25 13:37:43 +00:00
Roland Dobai
e6ae121f41
VFS select: Correct reseting of socket FDs
...
When using multiple sockets, some of them could be incorrectly removed
from the fd_sets before passing these fd_sets forward to the socket
select function.
Closes https://github.com/espressif/esp-idf/issues/1987
2018-05-25 13:37:43 +00:00
Angus Gratton
3e1a93e5a7
soc: rtc_vddsdio_get_config() In default configuration, VDD_SDIO LDO is always enabled
...
When using bootstrapping pin to enable VDD_SDIO, the internal LDO is always enabled at either 1.8V
or 3.3V.
2018-05-25 15:14:13 +10:00
Angus Gratton
d775cc4c4c
soc: Fix description of rtc_config_t.tieh, add macros
...
Usage of TIEH was correct but description had 1.8V & 3.3V backwards.
Add macro definitions for TIEH values to improve readability.
2018-05-25 14:58:37 +10:00
Angus Gratton
c7bedc80c1
Merge branch 'feature/bootloader_factory_reset' into 'master'
...
bootloader: Add factory reset and start test app
See merge request idf/esp-idf!2291
2018-05-25 08:17:48 +08:00
Angus Gratton
5bb238dd17
Merge branch 'bugfix/disable_vfs_select' into 'master'
...
VFS: Optionally disable the VFS implementation of select()
See merge request idf/esp-idf!2434
2018-05-25 07:58:54 +08:00
Konstantin Kondrashov
ae10abff2f
bootloader: Add factory reset and start test app
...
Added feature:
- reset firmware to Factory app.(by long pressing of the button)
- boot Test app. (by long pressing of the button)
- Added feature erase data partitions from factory reset.
TW10281
TW10280
2018-05-24 16:56:49 +05:00
Tian Hao
5f39b58b83
component/bt : fix bug that assert rwbt.c 265 8192 error
2018-05-24 15:47:16 +08:00
zhiweijian
2e63a445d9
Component/bt: fix set scan params command completer error
2018-05-23 12:09:39 +00:00
Jiang Jiang Jian
358c822d6a
Merge branch 'mesh/feature_manual_networking' into 'master'
...
Mesh/feature manual networking
See merge request idf/esp-idf!2426
2018-05-23 19:20:30 +08:00
qiyueixa
feaa6e8a8f
mesh: add manual networking function
...
1. add mesh_assoc_t to esp_mesh_internal.h file.
2. rename "node" to "device" in esp_mesh.h.
3. add MESH_EVENT_SCAN_DONE event.
4. add APIs esp_mesh_scan_get_ap_record() and esp_mesh_scan_get_ap_ie_len() to get scan results.
5. modify API esp_mesh_set_self_organized() by adding parameter "select_parent".
6. modify API esp_mesh_set_parent() by adding parameter "parent_mesh_id"
7. add manual networking example.
2018-05-23 18:09:12 +08:00
Roland Dobai
004bf84d8c
VFS: Optionally disable the VFS implementation of select()
...
This allows to temporarily resolve issues like
https://github.com/espressif/esp-idf/issues/1987
while bugs are fixed in the VFS implementation of select().
2018-05-23 10:14:16 +02:00
Angus Gratton
21e085d235
Merge branch 'feature/xRingBufferCanRead_pr1672' into 'master'
...
freeRTOS/Re-factor ring buffers and add xRingbufferCanRead, xRingbufferCanWrite
See merge request idf/esp-idf!2214
2018-05-23 15:09:40 +08:00
Angus Gratton
c9f8470fdf
Merge branch 'feature/rmt_translator' into 'master'
...
driver(rmt): Add API supports sending uint8_t type data
See merge request idf/esp-idf!1975
2018-05-23 07:27:14 +08:00
Jiang Jiang Jian
f453877759
Merge branch 'feature/multi_antenna_v3.1' into 'master'
...
esp32: add multiple antenna
See merge request idf/esp-idf!2400
2018-05-22 23:04:01 +08:00
Liu Zhi Fu
04c74efedd
esp32: add multiple antenna
...
1. Support multiple antenna support
2. libphy.a is updated to v3910
2018-05-22 22:28:00 +08:00
Jiang Jiang Jian
affed9a235
Merge branch 'feature/a2dp-sink-source-runtime-selection' into 'master'
...
bt-a2dp: BT A2DP sink and source selection is now runtime
See merge request idf/esp-idf!2229
2018-05-22 22:21:39 +08:00
Jiang Jiang Jian
b19afed31f
Merge branch 'bugfix/some_changes_relating_to_phy_v3900' into 'master'
...
esp32: some changes relating to phy v3900
See merge request idf/esp-idf!2421
2018-05-22 21:09:05 +08:00
Jiang Jiang Jian
72c2a6f1c6
Merge branch 'feature/proto-client' into 'master'
...
HTTP Client
See merge request idf/esp-idf!1521
2018-05-22 21:06:46 +08:00
Ivan Grokhotkov
0b3ed36d0d
Merge branch 'bugfix/cermak_mdns_fuzzer_update' into 'master'
...
Bugfix/cermak mdns fuzzer update
See merge request idf/esp-idf!2388
2018-05-22 20:03:02 +08:00
David Cermak
fffbf7b750
Fixed nullptr dereference in MDNS.c
2018-05-22 11:23:12 +02:00
David Cermak
e983230be9
MDNS-Fuzzer: AFL fuzzer tests for mdsn packet parser
2018-05-22 11:23:12 +02:00
Liu Zhi Fu
67424816cc
esp32: some changes relating to phy v3900
...
1. Store the calibration data to NVS if PHY does full calibration because of calibration data checksum failure
2. Pass the station's mac to PHY for checksum calculation
2018-05-22 14:16:09 +08:00
Angus Gratton
46d6fd1ddf
Merge branch 'bugfix/parallel_multi_heap_test' into 'master'
...
CI fix: multi heap host test parallel race
See merge request idf/esp-idf!2428
2018-05-22 13:30:58 +08:00
Tuan PM
64ce589f6f
Remove unused macro
2018-05-22 12:04:47 +07:00
Tuan PM
f2aea4f5b6
Add http status enum & return ESP_FAIL as error code
2018-05-22 10:55:18 +07:00
Angus Gratton
41bb1fcb48
Merge branch 'bugfix/unit_test_timeout' into 'master'
...
Unit tests: Add per-test timeout option, disable two SD tests
See merge request idf/esp-idf!2423
2018-05-22 11:13:16 +08:00
Angus Gratton
3fe862dacb
test_multi_heap_host: Remove race conditions from parallel "make clean test"
2018-05-22 12:09:30 +10:00
Angus Gratton
75c27202f7
Merge branch 'feature/update_touchpad_filter_process' into 'master'
...
driver(touchpad): Change the measuring mode, improve the software filter.
See merge request idf/esp-idf!2358
2018-05-22 09:56:55 +08:00
kooho
5bc8ae3b3a
driver(rmt):Add API supports sending uint8_t type data.
2018-05-22 01:55:44 +00:00
Angus Gratton
b8312a26c0
Merge branch 'feature/sdio_slave' into 'master'
...
feature(sdio_slave): add support for sdio_slave
See merge request idf/esp-idf!1829
2018-05-22 09:43:35 +08:00
Angus Gratton
67fb34fa4e
Merge branch 'bugfix/dport_access_iram' into 'master'
...
dport: Bigfix dport_read code move to IRAM
See merge request idf/esp-idf!2427
2018-05-22 09:22:52 +08:00
Konstantin Kondrashov
e5b280f173
dport: Bigfix dport_read code move to IRAM
...
A new method of workaround an error with DPORT is to ensure that the APB is read and followed by the DPORT register without interruptions and pauses. This fix places this implementation in the IRAM to exclude errors associated with the cache miss.
2018-05-21 22:00:51 +05:00
michael
f613859e29
feat(sdio_slave): add new driver for sdio_slave
2018-05-21 23:48:47 +08:00
Michael (XIAO Xufeng)
c73575de4f
feat(sdio_slave): add headers for sdio slave components: slc, host, hinf
2018-05-21 23:48:33 +08:00
Angus Gratton
156dd4841d
Temporarily disable SD CD/WP mode tests
...
Tracked in TW22648
2018-05-21 12:27:10 +00:00
Angus Gratton
e8525396dd
test: Allow per-unit-test timeouts
...
Work around for "(WL) write/read speed test" taking >30s in some configs
2018-05-21 12:27:10 +00:00
Jiang Jiang Jian
92c469b599
Merge branch 'bugfix/btdm_fix_scan_duplicate' into 'master'
...
Component/bt: fix scan duplicate
See merge request idf/esp-idf!2342
2018-05-21 20:00:49 +08:00
Amey Inamdar
ae8ed8dad8
bt-a2dp: BT A2DP sink and source selection is now runtime
...
Earlier they have to be selected at the compile time through sdkconfig.
A2DP sink and source application tested with this change.
Signed-off-by: Amey Inamdar <amey@espressif.com>
2018-05-21 14:02:49 +05:30
Angus Gratton
0c64ef9600
Merge branch 'bugfix/sdio_write_unaligned_len' into 'master'
...
SDIO: allow read/write operations for lengths not divisible by 4
See merge request idf/esp-idf!2278
2018-05-21 15:26:32 +08:00
zhiweijian
340ad5c430
Component/bt: fix scan duplicate
2018-05-21 15:23:15 +08:00
Wangjialin
09181b7d94
driver(touchpad): improve touchpad filter mode and update examples.
2018-05-21 14:45:31 +08:00
Jiang Jiang Jian
95c3bc39f8
Merge branch 'feature/wifi_channel_state_information' into 'master'
...
add Channel State Information(CSI) support
See merge request idf/esp-idf!2373
2018-05-21 14:14:51 +08:00
Jiang Jiang Jian
35d148256b
Merge branch 'bugfix/fix_uart_buffer_full_flg_error_bug' into 'master'
...
driver(uart): Fix the bug that uart buffer_full flag is true all the time.
See merge request idf/esp-idf!2418
2018-05-21 14:09:44 +08:00
Jiang Jiang Jian
adcad91c55
Merge branch 'feature/btdm_hfp_hf' into 'master'
...
component/bt: implement HFP Hands Free Unit Role
See merge request idf/esp-idf!2306
2018-05-21 13:56:52 +08:00
wangmengyang
4c4e143a2f
component/bt: implement HFP Hands Free Unit Role
2018-05-21 11:33:30 +08:00
Angus Gratton
6363396eba
Merge branch 'feature/freertos_tickless_idle' into 'master'
...
freertos,esp32: automatic light sleep support
See merge request idf/esp-idf!2247
2018-05-21 10:59:00 +08:00
Tuan PM
ff528d13c7
Add esp_http_client
...
Add error handling for http client
set ssid password correct with Example_WIFI test, and clear password before free
Fixed the CI failure due to HTTP errror names
2018-05-21 09:35:07 +07:00
Jiang Jiang Jian
9c53b599b2
Merge branch 'bugfix/i2c_add_xqueue_static_allocation' into 'master'
...
driver(i2c, rmt): Add xQueue and xSemaphore static allocation support when intr_alloc_flag set to ESP_INTR_FLAG_IRAM.
See merge request idf/esp-idf!2335
2018-05-21 10:29:31 +08:00
Angus Gratton
03414b1f39
Merge branch 'bugfix/reset_some_peripherals_when_cpu_start' into 'master'
...
driver: Reset communication peripherals when cpu start up.
See merge request idf/esp-idf!2296
2018-05-21 09:53:42 +08:00
kooho
f6f9f93a9d
driver(i2c, rmt):Add intr_flag setting to ESP_INTR_FLAG_IRAM support when enable psram.
2018-05-21 09:37:56 +08:00
Darian Leung
4bfa30967f
freeRTOS/Re-factor ring buffers
...
This fixes multiple bugs with ring buffers and re-factors the code. The public
API has not changed, however the underlying implementation have various private
functions have been changed. The following behavioral changes have been made
- Size of ring buffers for No-Split/Allow-Split buffers will not be rounded
up to the nearest 32-bit aligned size. This was done to simplify the
implementation
- Item size for No-Split/Allow-Split buffers will also be rounded up to the
nearest 32-bit aligned size.
The following bugs have been fixed
- In copyItemToRingbufAllowSplit(), when copying an item where the aligned
size is smaller than the remaining length, the function does not consider
the case where the true size of the item is less than 4 bytes.
- The copy functions will automatically wrap around the write pointers when
the remaining length of the buffer is not large enough to fit a header, but
does not consider if wrapping around will cause an overlap with the read
pointer. This will make a full buffer be mistaken for an empty buffer
closes #1711
- xRingbufferSend() can get stuck in a infinite loop when the size of the
free memory is larger than the needed_size, but too small to fit in the ring
buffer due to alignment and extra overhead of wrapping around.
closes #1846
- Fixed documentation with ring buffer queue set API
- Adding and removing from queue set does not consider the case where the
read/write semaphores actually hold a value.
The following functions have been deprecated
- xRingbufferIsNextItemWrapped() due to lack of thread safety
- xRingbufferAddToQueueSetWrite() and xRingbufferRemoveFromQueueSetWrite()
as adding the queue sets only work under receive operations.
The following functions have been added
- xRingbufferReceiveSplit() and xRingbufferReceiveSplitFromISR() as a thread
safe way to receive from allow-split buffers
- vRingbufferGetInfo()
Documentation for ring buffers has also been added.
2018-05-21 01:04:58 +00:00
Ing. Jaroslav Safka
32e838ddb6
Add xRingbufferCanRead, xRingbufferCanWrite
...
Add function xRingbufferCanRead & xRingbufferCanWrite
to be able use queue sets. Without it is not possible
to check to which ringbuffer returned semaphore belongs.
2018-05-21 01:04:58 +00:00
Angus Gratton
a79116a23e
Merge branch 'feature/gcov_dbg_stubs' into 'master'
...
Feature/gcov dbg stubs
See merge request idf/esp-idf!1494
2018-05-21 08:07:49 +08:00
Xia Xiaotian
7f8811ea14
add Channel State Information(CSI) support
2018-05-20 19:25:25 +08:00
qiyueixa
bb9e73c864
mesh: update libs
...
1. use pbkdf2_sha1() to encrypted mesh ie key.
2. fix esp_mesh_waive_root().
3. fix esp_mesh_stop().
4. fix xon issues.
2018-05-20 15:28:38 +08:00
Jiang Jiang Jian
1f7b41e206
Merge branch 'feature/add_event_SYSTEM_EVENT_AP_STAIPASSIGNED' into 'master'
...
add event SYSTEM_EVENT_AP_STAIPASSIGNED
See merge request idf/esp-idf!2202
2018-05-19 17:04:24 +08:00
Jiang Jiang Jian
a7a90ffba2
Merge branch 'feature/unified_btdm_modem_sleep_with_coex' into 'master'
...
component/bt: implement bluetooth modem sleep
See merge request idf/esp-idf!2198
2018-05-19 16:20:49 +08:00
wangmengyang
22e21b38f7
component/bt: implement bluetooth modem sleep mode, one mode for BLE only and another for dual mode bluetooth
...
1. provide options for bluetooth low power mode
2. provide two options for bluetooth low power clock: main XTAL and external 32kHz XTAL
3. provide function and callbacks to control bluetooth low power mode, including enable/disable sleep, software wakeup request, low power clock settings, check power state, etc
4. modify vhci API vhci_host_send_packet to use blocking mode
5. note that DFS and bluetooth modem sleep can not be used together currently.
2018-05-19 15:37:26 +08:00
zhangyanjiao
3f031cdd9d
add event SYSTEM_EVENT_AP_STAIPASSIGNED
2018-05-19 13:14:12 +08:00
Jiang Jiang Jian
7cc3b648f4
Merge branch 'doc/nvs_flash_encryption' into 'master'
...
nvs README: Remove section about encryption capability
See merge request idf/esp-idf!2404
2018-05-19 00:44:56 +08:00
David Cermak
bb25d0a348
DnsFuzzer: Added fuzzer test for exercising lwip/dns receiving DNS responses
2018-05-18 15:54:08 +02:00
Alexey Gerenkov
c1b6a37bb1
esp32: Adds GCOV debug stubs support
...
Adds the following functionality
- Debug stubs infrastructure
- Stub for retrieveing GCOV data without user source code modification
2018-05-18 16:16:03 +03:00
Jiang Jiang Jian
041faad1c9
Merge branch 'feature/add_more_information_about_wifi_config' into 'master'
...
wifi: Add more information about wifi config
See merge request idf/esp-idf!2384
2018-05-18 17:29:32 +08:00
kooho
33b99caf50
driver(uart):Fix the bug that uart buffer_full flag is true all the time.
2018-05-18 16:46:10 +08:00
Angus Gratton
af2cb3ba8b
Merge branch 'feature/vfs_find_free_fd' into 'master'
...
Add "find file descriptor" API to be used by VFS drivers
See merge request idf/esp-idf!2389
2018-05-18 15:22:20 +08:00
kooho
ef39c09bc1
driver: reset communication peripherals when the cpu starts.
2018-05-18 14:41:58 +08:00
Roland Dobai
18e83bcd53
Allow VFS file descriptors in select()
2018-05-18 08:06:33 +02:00
Roland Dobai
2aa9c15906
VFS: allow to find free file descriptors & register them
2018-05-18 07:57:35 +02:00
Deng Xin
8b389419ab
(wifi): Add more information about wifi config
...
1. Update libphy.a to v3900
2. Update librtc.a to v238
3. add scan_method, sort_method and threshold when invoke esp_wifi_get_config()
4. add rssi of each STA in softAP list
5. add country information in scan result
6. add noise floor in rx pkt
Closes https://github.com/espressif/esp-idf/issues/1095
Closes https://github.com/espressif/esp-idf/issues/1723
Closes https://github.com/espressif/esp-idf/issues/1483
2018-05-18 11:55:55 +08:00
Jiang Jiang Jian
d84add4513
Merge branch 'bugfix/performance_tests_psram' into 'master'
...
tests: Increase performance thresholds when running with PSRAM
See merge request idf/esp-idf!2414
2018-05-18 11:35:33 +08:00
Ivan Grokhotkov
028fbb58e8
freertos,esp32: automatic light sleep support
2018-05-18 03:14:46 +00:00
Angus Gratton
51aceaa030
Merge branch 'bugfix/idle_task_stack_size' into 'master'
...
freertos: Bump default idle task stack size to 1536 bytes
See merge request idf/esp-idf!2411
2018-05-18 10:10:13 +08:00
Liu Zhi Fu
4e9ea81208
esp32: support to create wifi task on any core
...
Support to create WiFi task on any core.
Closes https://github.com/espressif/esp-idf/issues/968
2018-05-17 22:04:08 +08:00
Jiang Jiang Jian
cf9499479c
Merge branch 'bugfix/i2s_mix_result_with_error_code_master' into 'master'
...
fix i2s mix result and error code
See merge request idf/esp-idf!2227
2018-05-17 21:53:06 +08:00
Jiang Jiang Jian
f64f70250d
Merge branch 'feature/add_set_factory_info_customer_in_wps_v3.1' into 'master'
...
wifi: add set factory information feature by customer in wps
See merge request idf/esp-idf!2412
2018-05-17 21:49:40 +08:00
Angus Gratton
a2241fb4bc
tests: Increase performance threshold for VFS running with PSRAM
...
Cache effects on microbenchmarks in cached flash can be significant, depending on linker layout in flash.
2018-05-17 21:02:47 +08:00
Jiang Jiang Jian
8c657dfee4
Merge branch 'bugfix/fix_an_error_in_comment_of_uart_driver' into 'master'
...
deiver(uart):revise the explanation of uart break length
See merge request idf/esp-idf!2398
2018-05-17 17:17:14 +08:00
Jiang Jiang Jian
993b8b7bf6
Merge branch 'bugfix/o3_fails' into 'master'
...
Fix compilation errors when -O3 is used
See merge request idf/esp-idf!2396
2018-05-17 16:48:13 +08:00
Deng Xin
54d9a392e4
wifi: add set factory information feature by customer in wps
2018-05-17 16:45:53 +08:00
Jiang Jiang Jian
59db3cb1c2
Merge branch 'bugfix/wifi_fix_a_few_wifi_bugs' into 'master'
...
Fix a few WiFi bugs
See merge request idf/esp-idf!2312
2018-05-17 16:33:38 +08:00
Zhang Zhao Xiang
9deb58859c
fix i2s mix result and error code
2018-05-17 10:59:04 +08:00
Angus Gratton
4719bab2f3
freertos: Bump default idle task stack size to 1536 bytes
...
In situations where idle task runs a lot of idle hooks or cleanup code
(due to pthread local storage, etc) it can use more than 1KB of stack.
(I think the trigger is if a context switch happens at the right point
in the TLS cleanup).
Also removes an sdkconfig.default which accidentally set all config items,
including this stack size.
2018-05-17 10:37:24 +08:00
David Cermak
5ecf717e40
DhcpFuzzer: dhcp client addded
2018-05-16 14:52:42 +02:00
Wangjialin
f6927ccde9
bootloader(flash): fix flash QIO mode configuration error.
...
reported from github: https://github.com/espressif/esp-idf/issues/1944
1. Add SPI register setup in execute_flash_command.
2. Save and recover the SPI ctrl register in execute_flash_command.
2018-05-16 12:42:29 +00:00
Alex Lisitsyn
44b1bc0ab9
esp32: Add .noinit and .rtc_noinit sections to the linker script
...
Added .rtc_noinit and .noinit section definitions into linker file /esp32/ld/esp32.common.ld.
The macro __NOINIT_ATTR, RTC_NOINIT_ATTR declared in esp32/esp_attr.h file.
Added unit test file to test added behavior for noinit variables and its attributes.
Added documentation changes for new added attributes.
Make some corrections after code review:
The linker file has been corrected to place noinit section before bss_start to make it safer.
Documentation file has been modified to clarify reset behavior of allocated data .
Corrected typos in test_noinit.c and removed assertion of noinit variable to avoid possible issues with ROM boot loader memory allocation.
The linker file has been corrected to place noinit section before bss_start to make it safer.
Documentation file has been modified to clarify reset behavior of allocated data .
Corrected typos in test_noinit.c and removed assertion of noinit variable to avoid possible issues with ROM boot loader memory allocation.
Update test_noinit.c file to address RTCWDT_RTC_RESET reset reason instead of POWERON_RESET.
Test optimized to pass automated unit testing.
esp32: Add .noinit and .rtc_noinit sections to the linker script
Update of general-notes.rst documentation to fomat examples as code and attributes as identifiers.
Test test_noinit.c corrected to pass automated testing (support ofTEST_CASE_MULTIPLE_STAGES())
https://ezredmine.espressif.cn:8765/issues/15878
2018-05-16 17:33:37 +05:00
Angus Gratton
f4f305bdbd
Merge branch 'bugfix/mbedtls_submodule' into 'master'
...
mbedtls: Add submodule check at build time
See merge request idf/esp-idf!2395
2018-05-16 19:52:45 +08:00
Angus Gratton
b2e264ef52
Merge branch 'feature/ledc_add_api_set_hpoint_val' into 'master'
...
driver(ledc): fix duty and fade issues and add thread-safe version APIs.
See merge request idf/esp-idf!2233
2018-05-16 19:52:26 +08:00
baohongde
174501ff35
component/bt: modify BT GAP structure
...
1. Separate the upward and the downward
2. Cancel use of msg.aid when call btc_transfer_context
2018-05-16 18:58:13 +08:00
XiaXiaotian
40efc36849
Fix a few WiFi bugs
...
1. remove rc when ap not found
closes issue: https://github.com/espressif/esp-idf/issues/1797
2. allocate mimo packet to internal memory
3. use FRC2 timer instead of WDEV_NOW() for modem sleep to calculate
TBTT time.
It fixes the bug that TBTT will be incorrect if beacon is lost.
2018-05-16 18:50:28 +08:00
Jiang Jiang Jian
c54a679a41
Merge branch 'bugfix/fix_interrupt_list_insert_issue' into 'master'
...
esp32: fix interrupt list insert issue
See merge request idf/esp-idf!2391
2018-05-16 18:18:58 +08:00
Jiang Jiang Jian
4b4a587540
Merge branch 'bugfix/touch_change_default_enable_value' into 'master'
...
bugfix(touch): change the default value for sar_touch_enable register.
See merge request idf/esp-idf!1870
2018-05-16 17:40:18 +08:00
Jiang Jiang Jian
f502e195aa
Merge branch 'bugfix/improve_bt_debug' into 'master'
...
components/bt: Improve the Bluetooth debug messaging scheme
See merge request idf/esp-idf!2303
2018-05-16 16:04:34 +08:00
Liu Zhi Fu
846b848bfc
esp32/docs: fully support esp_wifi_80211_tx
...
Closes https://github.com/espressif/esp-idf/issues/1256
Closes https://github.com/espressif/esp-idf/issues/1332
2018-05-16 13:37:54 +08:00
Angus Gratton
7ae1e9463e
Merge branch 'bugfix/rtc_xtal_tests' into 'master'
...
ci: Only run XTAL unit tests assuming board has an XTAL
See merge request idf/esp-idf!2401
2018-05-15 18:44:46 +08:00
Angus Gratton
3d92c6cccd
nvs README: Remove section about encryption capability
2018-05-15 18:02:28 +08:00
Angus Gratton
05e09a5bac
ci: Only run XTAL unit tests assuming board has an XTAL, run less repeats
2018-05-15 15:43:24 +08:00
Angus Gratton
d1066e9d7f
Merge branch 'feature/dport_access' into 'master'
...
soc: Dport access with pre-read register APB
See merge request idf/esp-idf!2257
2018-05-15 15:32:28 +08:00
He Yin Ling
0ae6a83768
Merge branch 'test/add_iperf_example_test' into 'master'
...
test: add iperf example test
See merge request idf/esp-idf!1753
2018-05-15 14:58:08 +08:00
Angus Gratton
ae7cee02d2
Merge branch 'feature/vfs_access' into 'master'
...
Implement VFS support for access()
See merge request idf/esp-idf!2378
2018-05-15 14:33:51 +08:00
Angus Gratton
fcd5d0869d
Merge branch 'bugfix/spi_native_pins' into 'master'
...
fix several spi issues about pin configurations
See merge request idf/esp-idf!2309
2018-05-15 14:19:20 +08:00
He Yin Ling
e8dd203e47
example test: add test case for iperf example
2018-05-15 13:42:26 +08:00
Angus Gratton
662fe55996
Merge branch 'bugfix/select_rtc_slow_clk' into 'master'
...
esp32/clk: Fix starting rtc oscillator if it bad
See merge request idf/esp-idf!2215
2018-05-15 12:57:22 +08:00
Konstantin Kondrashov
9ad0760b9d
esp32/clk:Fix starting rtc oscillator if it is bad
...
If the RTC crystal is bad or has no matched capacitance, then you do not need to start such the crystal. It is necessary to determine this case, output an error (about impossibility to start from the oscillator) and start from the internal RC of the chain.
Reduced the default value of the number of bootstrap cycles. Because we can oscillating the oscillator which then stops. (in Kconfig). Changed from 100 to 5.
The number of calibration cycles has been increased. It is the main criterion for estimating the launch of an oscillator. A large increase leads to an increase in the load time, as well as the stability of recognition of this case. (in Kconfig).
Changed from 1024 to 3000.
2018-05-15 08:59:15 +05:00
Angus Gratton
31d53bc059
Merge branch 'bugfix/sdspi_delayed_write_response' into 'master'
...
sdspi: handle delayed response to data write command
See merge request idf/esp-idf!2290
2018-05-15 10:32:21 +08:00
Jiang Jiang Jian
73d20981de
Merge branch 'bugfix/rmt_tx_stop_bug' into 'master'
...
driver(rmt): RMT tx stop workaround
See merge request idf/esp-idf!1915
2018-05-15 10:04:33 +08:00
Jiang Jiang Jian
33b11c6f6a
Merge branch 'feature/adjust_log_level_about_uart' into 'master'
...
feat: Adjust log level about UART
See merge request idf/esp-idf!2047
2018-05-15 09:59:21 +08:00
Ivan Grokhotkov
9379d7b9f9
sdmmc: wait for command done event even if data transfer is over
...
This fixes errors logged on the console: sdmmc_req:
handle_idle_state_events unhandled: 00000004 00000000
The issue happens if "data done" event occurs before "command done".
State machine code did not check *which* event occurred in
SENDING_CMD state, and went to IDLE or SENDING_DATA state on any
non-error event. In this case, we can't process "data done" event
until command has completed. This change introduces "unhandled event"
mask, which is carried over from one run of process_events to the
other. This allows waiting for the "command done" event to complete,
and then process "data done" event.
Ref TW17126.
2018-05-15 09:59:20 +08:00
Ivan Grokhotkov
cf81db40a2
sdio: allow reads/writes with lengths not divisible by 4
...
CMD53 in byte mode supports transfers of any number of bytes between 1
and 512. This change removes limitation that the number of bytes must
be divisible by 4. Host quirk, that such transfers must be split into
two commands (one for the aligned part and the other one for
unaligned) is taken into account.
2018-05-15 09:59:20 +08:00
Jiang Jiang Jian
97a228e6ab
Merge branch 'bugfix/rename_clk_rst_bits_for_spi' into 'master'
...
rename clock enable and reset bits for SPI modules
See merge request idf/esp-idf!2293
2018-05-15 09:49:56 +08:00
Jiang Jiang Jian
6adaeb0048
Merge branch 'bugfix/btdm_fix_crash_without_smp_when_deinit_bluedroid' into 'master'
...
Component/bt: fix crash without SMP when deinit bluedroid
See merge request idf/esp-idf!2375
2018-05-14 21:20:44 +08:00
David Cermak
3a6d256d3e
DhcpFuzzer: Added AFL test for dhcpserver with sample packets
2018-05-14 15:03:37 +02:00
Konstantin Kondrashov
8f80cc733d
soc: Change DPORT access
...
When two CPUs read the area of the DPORT and the area of the APB, the result is corrupted for the CPU that read the APB area.
And another CPU has valid data.
The method of eliminating this error.
Before reading the registers of the DPORT, make a preliminary reading of the APB register.
In this case, the joint access of the two CPUs to the registers of the APB and the DPORT is successful.
2018-05-14 17:54:57 +05:00
Hrishikesh Dhayagude
da6cb6c741
components/bt: Improve the Bluetooth debug messaging scheme
...
As of now, when Bluetooth debugs are enabled, all the messages are
mapped to BT_PRINTF which is mapped to ESP_LOGE. Hence, make monitor
shows all logs in red color which might lead to missing the actual
errors
This patch maps the Bluetooth messages to appropriate ESP_LOG* messages
and improves readability.
Also, make the BT trace level be configurable in menuconfig, so that
each layer of bt trace can be enabled/disabled.
Finally, add debug log control for BTC, OSI, BLUFI and clear up
Bluetooth debug logs.
So, with this the method of enabling Bluetooth logs is as follows:
1. make menuconfig -> Component config -> Bluetooth -> Bluedroid Enable
-> BT DEBUG LOG LEVEL -> set trace level for every layer of BT
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-05-14 20:45:05 +08:00
Jiang Jiang Jian
256a9a8a33
Merge branch 'feature/wifi_add_sniffer_ctrl_pkt' into 'master'
...
add sniffer control packet support
See merge request idf/esp-idf!1904
2018-05-14 20:42:15 +08:00
Jiang Jiang Jian
9e5318b584
Merge branch 'bugfix/btdm_reconnect_con_params_update_reject_in_smp' into 'master'
...
Component/bt: update con params is rejected in smp when reconnection
See merge request idf/esp-idf!2318
2018-05-14 20:19:29 +08:00
chenjianqiang
b5de860bcb
revise the explain of a parameter(brk_len) in uart driver file
2018-05-14 19:47:16 +08:00
kooho
a8d26d7e4d
driver(rmt):Fix rmt_tx_stop bug.
2018-05-14 19:46:30 +08:00
Angus Gratton
b888032a8c
Merge branch 'bugfix/logging_docs_cleanup' into 'master'
...
log: clean up docs, clarify esp_log_level_set usage
See merge request idf/esp-idf!2080
2018-05-14 18:36:35 +08:00
Roland Dobai
ca08397b6b
Fix compilation errors when -O3 is used
...
Closes https://github.com/espressif/esp-idf/issues/718
2018-05-14 12:29:57 +02:00
jack
c384fa2492
rename clock enable and reset bits for SPI modules
...
1.The names of clock enable and reset bits do not match with TRM, just rename them.
2018-05-14 16:45:03 +08:00
Angus Gratton
c94a5ecfdd
mbedtls: Add mbedtls submodule check to build system
2018-05-14 16:07:18 +08:00
Jiang Jiang Jian
d4276efed7
Merge branch 'bugfix/bluedroid_const_char' into 'master'
...
Bluedroid: remove warnings about discarding "const" for "const char*"
See merge request idf/esp-idf!2387
2018-05-14 15:25:45 +08:00
Roland Dobai
4345e198ce
Implement VFS support for access()
...
Closes https://github.com/espressif/esp-idf/issues/1085
2018-05-14 09:04:18 +02:00
XiaXiaotian
57297cf7b7
add sniffer control packet support
2018-05-14 14:16:03 +08:00
Liu Zhi Fu
1c81e4be60
esp32: fix interrupt list insert issue
...
If the allocated interrupt list is not empty and the new item will be inserted
as the header of the list, insert_vector_desc() causes crash because pre is
null. This commit fix this issue.
2018-05-14 14:13:08 +08:00
He Yin Ling
adc3315677
Merge branch 'test/add_unit_test_jobs' into 'master'
...
ci: increase number of unit test jobs, temporarily disable light sleep test for short durations
See merge request idf/esp-idf!2386
2018-05-14 14:06:05 +08:00
kooho
1bebec05c6
driver(ledc): fix duty and fade issues and add thread-safe version APIs.
...
1. Fix the duty fade check issue reported from https://github.com/espressif/esp-idf/issues/1914
2. Fix the duty overflow issue when duty_scale is set to 1.
3. Fix the duty fade error when a fade operation is under way. We must configure a new duty setting after the previous fade operation has finished due to hardware limit.
4. Add thread-safe version APIs to set duty and fade.
5. Correct the duty range in driver.
2018-05-14 12:27:21 +08:00
Angus Gratton
e23ee9fa73
Merge branch 'bugfix/ledc_error' into 'master'
...
ledc driver: Clarify logging of function argument errors
See merge request idf/esp-idf!2380
2018-05-14 09:16:02 +08:00
Angus Gratton
6817088ce4
Merge branch 'feature/mbedtls_2_9_0' into 'master'
...
Re-add mbedTLS as a submodule, update to 2.9.0
See merge request idf/esp-idf!2367
2018-05-14 09:15:44 +08:00
Angus Gratton
64c52022b9
Merge branch 'bugfix/add_comments_for_adc' into 'master'
...
driver(adc): Add descriptions that starting ADC can trigger interrupt of GPIO36…
See merge request idf/esp-idf!1910
2018-05-11 18:54:40 +08:00
Ivan Grokhotkov
1b7ed6455b
esp32/test: temporarily disable test for light sleep duration
...
Until the issue in CI is debugged
2018-05-11 18:15:58 +08:00
Angus Gratton
3a53e35fe8
Merge branch 'bugfix/vfs_append' into 'master'
...
VFS: use O_APPEND flag of open() correctly
See merge request idf/esp-idf!2382
2018-05-11 18:12:47 +08:00
Roland Dobai
2041c08681
Bluedroid: remove warnings about discarding "const" for "const char*"
2018-05-11 11:29:10 +02:00
kooho
d53661a663
driver(adc): add descriptions for the issue that starting ADC can trigger interrupt of GPIO36 and GPIO39.
2018-05-11 17:08:58 +08:00
Jiang Jiang Jian
a5f36ec2d5
Merge branch 'feature/wifi_refactor_smartconfig' into 'master'
...
refactor smartconfig
See merge request idf/esp-idf!2205
2018-05-11 16:23:22 +08:00
Jiang Jiang Jian
5616491c50
Merge branch 'bugfix/i2s_dma_buf_alloc' into 'master'
...
i2s: fix issue in dma descriptor allocation if SPIRAM is enabled
See merge request idf/esp-idf!2383
2018-05-11 16:03:40 +08:00
Jiang Jiang Jian
41228c83c7
Merge branch 'bugfix/dhcp_server_max_limit' into 'master'
...
dhcp/dhcpserver Fix max station limit check in dhcp server
See merge request idf/esp-idf!2298
2018-05-11 15:50:38 +08:00
Jiang Jiang Jian
325920046f
Merge branch 'bugfix/btdm_conn_fail_after_deinit_and_init_spp' into 'master'
...
component/bt: Fix can't be connected if init SPP again after SPP deinit
See merge request idf/esp-idf!2369
2018-05-11 15:38:03 +08:00
Jiang Jiang Jian
41ba013bd4
Merge branch 'bugfix/btdm_fix_service_change_write_busy' into 'master'
...
Component/bt: fix service change write busy
See merge request idf/esp-idf!2359
2018-05-11 15:20:04 +08:00
Jiang Jiang Jian
c1e0f029d1
Merge branch 'bugfix/btdm_a2dp_disconn_state_when_connecting_with_iphone' into 'master'
...
component/bt: Fix bug a2dp have disconnect state when connecting with iphone 7
See merge request idf/esp-idf!2288
2018-05-11 14:59:34 +08:00
Ivan Grokhotkov
827772df69
Merge branch 'bugfix/light_sleep_wdt_fix' into 'master'
...
Fix occasional WDT reset in light sleep test
See merge request idf/esp-idf!2374
2018-05-11 14:55:51 +08:00
XiaXiaotian
0033c3ef3a
refactor smartconfig
...
move wifi part to wifi lib and lwip part to idf
2018-05-11 14:49:35 +08:00
Roland Dobai
733ff15719
VFS: use O_APPEND flag of open() correctly
...
Closes https://github.com/espressif/esp-idf/pull/1455
2018-05-11 08:28:22 +02:00
Ivan Grokhotkov
12f707932f
log: clean up docs, clarify esp_log_level_set usage
...
Closes https://github.com/espressif/esp-idf/issues/1713
2018-05-11 13:55:16 +08:00
Mahavir Jain
b2a1a79eb4
i2s: fix issue in dma descriptor allocation if SPIRAM is enabled
...
It has been observed that, if external SPIRAM is enabled, then under
certain scenarios (e.g. internal memory being too much fragmented),
I2S tx/rx descriptors can land in external SPIRAM and hence resulting
in failure in DMA. Adding explicit capability to allocate in only DMA
capable memory.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-05-10 18:26:01 +05:30
Angus Gratton
feb64c3be6
ledc driver: Clarify logging of function argument errors
...
Some parameter errors did not specify which parameter was invalid.
Adds a new macro to name the invalid param.
2018-05-10 17:21:35 +08:00
zhangyanjiao
be76260d81
wifi: fix some potential thread safe issue
...
change some API function to throw event:
esp_wifi_deauth_sta
esp_wifi_get_country
esp_wifi_ap_get_sta_list
esp_wifi_sta_get_ap_info
esp_wifi_stop
esp_wifi_get_channel
esp_wifi_get_protocol
esp_wifi_get_bandwidth
2018-05-10 16:24:43 +08:00
baohongde
dfbc59f1c2
component/bt: Fix can't be connected if init SPP again after SPP deinit
2018-05-10 16:16:25 +08:00
Ivan Grokhotkov
ade14518ef
Merge branch 'feature/vfs_small_fds' into 'master'
...
Use smaller numbers as file descriptors
See merge request idf/esp-idf!2300
2018-05-10 14:29:34 +08:00
zhiweijian
b7a5fef871
Component/bt: fix crash without SMP when deinit bluedroid
...
- fix crash without SMP when bluedroid deinit
- modify default menuconfig in blufi demo
2018-05-10 11:39:34 +08:00
Ivan Grokhotkov
7dada45d60
mbedtls: enable deprecation warnings when building unit tests
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
dbc919eff5
mbedtls: update usage of mbedtls_aes_encrypt/decrypt
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
aad51ea8a0
mbedtls/port: don’t re-declare mbedtls_shaX functions
...
ALT header files for sha1, sha256, sha512 are only supposed to declare
mbedtls_sha1_context data structure. Function prototypes should come
from original header files.
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
254e29aca4
mbedtls: update usage of deprecated mbedtls_shaX APIs
...
The following mbedTLS APIs have been deprecated and replaced with the
new ones which return error codes:
mbedtls_shaX_starts -> mbedtls_shaX_starts_ret
mbedtls_shaX_update -> mbedtls_shaX_update_ret
mbedtls_shaX_finish -> mbedtls_shaX_finish_ret
mbedtls_shaX_process -> mbedtls_shaX_internal_process
Update hardware implementations of SHA functions, and other IDF
components which used above functions, to use new versions.
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
e9cbf96bd1
mbedtls: re-add version 2.9.0 as a submodule
2018-05-09 23:15:28 +08:00
Ivan Grokhotkov
8c307a5720
sleep: fix deadlock in esp_timer_impl_advance after light sleep
...
When light sleep is started, the other CPU gets halted using DPORT
stall mechanism. This can happen while it is inside an esp_timer
critical section, which may lead to a deadlock. This change adds
functions to take and release esp_timer lock before entering
DPORT critical section, preventing the deadlock.
2018-05-09 22:52:50 +08:00
Ivan Grokhotkov
296b280801
esp_timer: fix esp_timer_impl_advance not triggering expired timers
2018-05-09 22:52:41 +08:00
zhiweijian
cb59576dd0
Component/bt: fix service change write busy
2018-05-09 20:49:26 +08:00
zhiweijian
58b2cb3e0c
Component/bt: update con params is rejected in smp when reconnection
2018-05-09 20:28:13 +08:00
Jiang Jiang Jian
b9aee83d9b
Merge branch 'feature/put_supplicant_source_code_from_VNC_to_IDF' into 'master'
...
wpa_supplicant: move part of codes to IDF
See merge request idf/esp-idf!2272
2018-05-09 15:19:37 +08:00
Deng Xin
b00d256d5b
wpa_supplicant:move part of codes to IDF
2018-05-09 10:44:35 +08:00
Ivan Grokhotkov
a2556229aa
Merge branch 'bugfix/uart_fix_get_baudrate_error_bug' into 'master'
...
driver(uart): Fix uart_get_baudrate incorrect return value when using ref_tick
See merge request idf/esp-idf!2295
2018-05-08 20:25:13 +08:00
michael
197f594b06
fix(spi): fix the issue when bus flag not set, dual mode cannot be used.
2018-05-08 15:47:26 +08:00
michael
28beafc624
fix(spi): fix the issue that native pins don't work after SPI initialized before
2018-05-08 15:47:25 +08:00
Michael (XIAO Xufeng)
1f085b1a3b
feat(gpio): add function allowing switching input source from GPIO back to IOMUX
2018-05-08 15:47:25 +08:00
Angus Gratton
bb1f3ae264
Merge branch 'feature/psram_configure_in_runtime' into 'master'
...
feature(psram): update psram and flash SPI frequency in runtime
See merge request idf/esp-idf!1776
2018-05-08 15:23:47 +08:00
Jiang Jiang Jian
139a8a2745
Merge branch 'bugfix/optimize_coexist_performance' into 'master'
...
component/esp32 : improve wifi and bluetooth coexistence performance
See merge request idf/esp-idf!2349
2018-05-08 11:11:03 +08:00
Tian Hao
8cd9deed5c
component/esp32 : improve wifi and bluetooth coexistence performance
...
1. update coexistence and wifi libraries. Coexist version update to
v0.9.2
2. Cancel the restriction of use AMPDU when SW_COEXIST_ENABLE is y.
2018-05-07 19:55:41 +08:00
Angus Gratton
c7f19e76d7
docs: Move main docs to cover CMake
...
Add "GNU Make build system" doc with "cheat sheet" for moving to new system
2018-05-07 18:45:49 +08:00
Jiang Jiang Jian
db90f49758
Merge branch 'bugfix/update_emac_h' into 'master'
...
update emac_reg_v2.h
See merge request idf/esp-idf!2050
2018-05-07 16:16:52 +08:00
Roland Dobai
80ff8d55ac
bluedroid: use the new socket registering API
2018-05-07 09:01:56 +02:00
Roland Dobai
5129bca67c
VFS: Use smaller numbers as file descriptors
2018-05-07 09:01:56 +02:00
Angus Gratton
06082d9308
Merge branch 'doc/spi_master_thread_safety' into 'master'
...
driver: Add notes to SPI driver docs about thread safety
See merge request idf/esp-idf!2354
2018-05-07 14:49:41 +08:00
Jiang Jiang Jian
dc13f489ca
Merge branch 'bugfix/fix_two_wifi_bugs' into 'master'
...
esp32: fix two wifi bugs
See merge request idf/esp-idf!2352
2018-05-07 14:00:24 +08:00
Ivan Grokhotkov
73ec743a0a
Merge branch 'bugfix/nvs_page_compaction' into 'master'
...
nvs: Fix recovery from power-off while page is being freed
See merge request idf/esp-idf!2327
2018-05-07 09:08:23 +08:00
Angus Gratton
b90ad81f22
driver: Add notes to SPI driver docs about thread safety
2018-05-07 09:03:48 +08:00
Liu Zhi Fu
a9dfa06125
esp32: fix two wifi bugs
...
1. Fix the bug that WiFi receives duplicate MPDU
2. Deauth the station if soft-AP already has max WiFi connections
2018-05-06 17:29:06 +08:00
baohongde
cbab7fec76
component/bt: Fix bug a2dp have disconnect state when connecting with iphone 7
2018-05-04 19:44:40 +08:00
Jiang Jiang Jian
b827e0e331
Merge branch 'feature/btdm_get_end_handle_when_get_include_service' into 'master'
...
Component/bt: get end_handle when get include services
See merge request idf/esp-idf!2319
2018-05-04 19:31:43 +08:00
Jiang Jiang Jian
ade78d3850
Merge branch 'bugfix/btdm_fix_version_excahnge_issue' into 'master'
...
Component/bt: fix version exchange issue
See merge request idf/esp-idf!2329
2018-05-04 19:30:03 +08:00
Jiang Jiang Jian
25440cbc23
Merge branch 'bugfix/tw12351_wifi_lock_op' into 'master'
...
esp32: optimize wifi lock
See merge request idf/esp-idf!2345
2018-05-04 19:27:14 +08:00
Jiang Jiang Jian
dc7280c1d9
Merge branch 'bugfix/tw20575_fix_potential_phy_calibration_bug' into 'master'
...
esp32: fix potential PHY calibration bug
See merge request idf/esp-idf!2339
2018-05-04 19:24:05 +08:00
Liu Zhi Fu
017f109f6e
esp32: optimize wifi lock
...
Replace portENTER_CRITICAL/portEXIT_CRITICAL with semaphore lock if
the protected resource is only accessed by different tasks
2018-05-04 10:36:04 +08:00
kooho
0dca2d4c68
driver(uart): Fix uart_get_baudrate incorrect return value when using ref_tick
2018-05-04 09:41:41 +08:00
baohongde
c22c070e07
component/bt: Add APIs of get and remove bond device
...
1. Add APIs of get and remove bond device
2. Add ESP_BT_GAP_AUTH_CMPL_EVT
2018-05-03 19:05:57 +08:00
Liu Zhi Fu
402dee17a1
esp32: fix potential PHY calibration bug
...
1. Add error log if failed to store calibration version/mac/data
2. Change the NVS calibration version/mac/data store sequence
3. Pass the init_data instead of NULL to esp_phy_rf_init() in esp_phy_load_cal_and_init()
2018-05-03 15:48:14 +08:00
Jiang Jiang Jian
444d6606e7
Merge branch 'bugfix/mark_auto_connect_api_as_obsolete' into 'master'
...
esp32: mark WiFi auto connect API as deprecated
See merge request idf/esp-idf!1970
2018-05-03 10:40:27 +08:00
Angus Gratton
ec536b3961
Merge branch 'bugfix/wifi_log_level' into 'master'
...
wifi: Set default wifi library log level based on sdkconfig
See merge request idf/esp-idf!2334
2018-05-03 10:21:19 +08:00
Ivan Grokhotkov
0d65f3b7f9
Merge branch 'bugfix/light_sleep_fixes' into 'master'
...
light sleep fixes
See merge request idf/esp-idf!2242
2018-05-02 20:09:36 +08:00
Ivan Grokhotkov
34816ff008
Merge branch 'bugfix/free_mem_console' into 'master'
...
Free allocations in command.c after error conditions
See merge request idf/esp-idf!2332
2018-05-02 15:48:31 +08:00
Ivan Grokhotkov
5cc966e5b4
Merge branch 'feature/aws_iot_mqtt_on_443' into 'master'
...
aws_iot: add support for MQTT TLS over port 443
See merge request idf/esp-idf!2292
2018-05-02 15:43:29 +08:00
Ivan Grokhotkov
57630bf5ec
Merge branch 'bugfix/cjson_include_objs' into 'master'
...
cJSON : Include only source file objects
See merge request idf/esp-idf!2326
2018-05-02 15:42:59 +08:00
Sagar Bijwe
7ae1df1c5e
nvs: Fix recovery from power-off while page is being freed
...
Currently when page is being freed, items are individually moved from
FREEING page to ACTIVE page and erased. If power-off happens during the
process, the remaining entries are moved to ACTIVE page during recovery.
The problem with this approach is there may not be enough space on
ACTIVE page for all items if an item was partially written before
power-off and erased during recovery. This change moves all the items
from FREEING to ACTIVE page and then erased the FREEING page, If
power-off happens during the process, then ACTIVE page is erased and the
process is restarted.
2018-05-02 12:18:02 +05:30
Angus Gratton
b9126e69bc
wifi: Set default wifi library log level based on sdkconfig
...
Has to be set at runtime, due to precompiled wifi libraries.
Prompted by discussion on forum: https://esp32.com/viewtopic.php?f=2&t=5570&p=24216#p24216
2018-05-02 15:11:21 +10:00
Ivan Grokhotkov
5f956125c1
Merge branch 'feature/mfg_bin_create_utility' into 'master'
...
nvs_flash: Add external binary creation support for NVS partition.
See merge request idf/esp-idf!2031
2018-05-02 11:58:38 +08:00
Liu Zhi Fu
c23915939d
esp32: mark WiFi auto connect API as obsolete
...
Mark esp_wifi_set/get_auto_connect as obsolete
2018-05-02 09:54:31 +08:00
Jiang Jiang Jian
1e8ab3d18e
Merge branch 'bugfix/gap_appearance_fixes' into 'master'
...
components/bt: Make modifications to the support of GAP appearance/icon characteristic
See merge request idf/esp-idf!2249
2018-05-01 23:00:24 +08:00
Jiang Jiang Jian
0bb551c051
Merge branch 'bugfix/btdm_prepare_write_status_correct' into 'master'
...
component/bt: Check the value received from the peer device when sent the data used prepare write.
See merge request idf/esp-idf!2320
2018-05-01 22:57:20 +08:00
Jiang Jiang Jian
95cbdd76dc
Merge branch 'feature/btdm_read_bredr_rssi' into 'master'
...
component/bt : add class bt read RSSI delta (golden range)
See merge request idf/esp-idf!2325
2018-05-01 22:55:50 +08:00
Angus Gratton
68282cf80b
heap/cmake: Fix linking error when heap tracing is enabled
2018-05-01 17:27:39 +10:00
Anuj Deshpande
87adbd3229
console: Fix formatting
2018-04-30 14:22:45 +05:30
Anuj Deshpande
b3894dba97
console: Free alloc'd memory after error conditions
...
Closes https://github.com/espressif/esp-idf/issues/1901
2018-04-30 14:21:03 +05:30
Anuj Deshpande
9356d6af3f
cJSON : Include only source file objects
...
- test.c can cause issues if there is another main function
- Closes https://github.com/espressif/esp-idf/issues/1883
2018-04-30 13:51:54 +05:30
Angus Gratton
381be65472
cmake: Build all examples in CI
...
Includes some fixes for compile errors/warnings in examples.
2018-04-30 10:18:33 +10:00
Angus Gratton
858b95a924
cmake: Add build system tests
2018-04-30 09:59:20 +10:00
Angus Gratton
1cb5712463
cmake: Add component dependency support
...
Components should set the COMPONENT_REQUIRES & COMPONENT_PRIVATE_REQUIRES variables to define their
requirements.
2018-04-30 09:59:20 +10:00
Angus Gratton
4a2f1f0354
esptool: Add note that ESPTOOLPY_PORT & ESPTOOLPY_BAUD are ignored when using idf.py
2018-04-30 09:59:20 +10:00
Angus Gratton
f1d3bfc0c7
cmake: Add new flasher_args.json file for IDE parsing, document metadata files better
2018-04-30 09:59:20 +10:00
Angus Gratton
b44c8b125f
cmake: Style cleanup, add cmake linter to gitlab CI
2018-04-30 09:59:20 +10:00
Angus Gratton
800bffb8b0
cmake: Add CMakeLists.txt files for all examples
...
Generating using convert_to_cmake.py, with some minor cleanup
2018-04-30 09:59:20 +10:00
Angus Gratton
b57843b66a
cmake: Linker scripts need to account for .c.obj extension as well as .o
2018-04-30 09:59:20 +10:00
Angus Gratton
12be399762
cmake: Add link-time dependencies for linker script files
...
Requires some hackery around limitations in CMake's LINK_DEPENDS
2018-04-30 09:59:20 +10:00
Angus Gratton
bc1693aae3
cmake: Fix SPIRAM options
2018-04-30 09:59:20 +10:00
Angus Gratton
88df8fd293
cmake: Use cmake_lint project, tidy up all CMake source files
2018-04-30 09:59:20 +10:00
Angus Gratton
9f8cdd3572
cmake: Add "Preview release" getting start guide & build system documentation
2018-04-30 09:59:20 +10:00
Angus Gratton
abef220b13
cmake: Allow selecting toolchain file based on config
...
Refactor IDF "project" functionality under a wrapping of the default
"project" command, so we can tweak it a bit...
Will need more testing in other environments.
2018-04-30 09:59:20 +10:00
Angus Gratton
e94db98e73
link bootloader to libgcc (shouldn't be necessary, is necessary...)
2018-04-30 09:59:20 +10:00
Angus Gratton
efb5928934
idf.py build & flash tool
...
Generate flasher args files & .json project info file as part of cmake build
2018-04-30 09:59:20 +10:00
Angus Gratton
cb99531d15
cmake: Generate PHY init data partition as part of the build
2018-04-30 09:59:20 +10:00
Angus Gratton
4f1a856dbf
cmake: Remove defaults for COMPONENT_SRCDIRS, COMPONENT_SRCS, COMPONENT_ADD_INCLUDEDIRS
...
* Philosophical: "explicit is better than implicit".
* Practical: Allows useful errors if invalid directories given in components as the defaults aren't
always used. Also trims the -I path from a number of components that have no actual include
directory.
* Simplifies knowing which components will be header-only and which won't
2018-04-30 09:59:20 +10:00
Angus Gratton
3fac2b2ddc
cmake: Refactor bootloader_subproject into the bootloader component itself
2018-04-30 09:59:20 +10:00
Angus Gratton
674d398c93
cmake: Add partition table, and .bin file targets
2018-04-30 09:59:20 +10:00
Angus Gratton
3ae4822115
cmake: Add partition table generation
2018-04-30 09:59:20 +10:00
Angus Gratton
97e01a4c4d
cmake: Remove stray tab
2018-04-30 09:59:20 +10:00
Angus Gratton
ce6748873d
cmake: Add embedding files in components support
...
Add subscribe_publish AWS example and fixes to allow it to build.
2018-04-30 09:59:20 +10:00
Angus Gratton
134f2238bd
cmake: Refactor main cmake project logic
2018-04-30 09:59:20 +10:00
Angus Gratton
68e75dd0df
cmake: Detect missing or out of date submodules during cmake pass
2018-04-30 09:59:20 +10:00
Angus Gratton
c671a0c3eb
build system: Initial cmake support, work in progress
2018-04-30 09:59:20 +10:00
Jiang Jiang Jian
5a080ee37a
Merge branch 'bugfix/btdm_genrate_hash_key_by_bluedroid' into 'master'
...
component/bt: Added the hash key generated directly in the bluedroid module.
See merge request idf/esp-idf!2321
2018-04-28 16:42:27 +08:00
zhiweijian
5549ea3439
Component/bt: fix version exchange issue
...
- Android 7.0 version issue
- version exchange late in some phones
- can not get version in smp
2018-04-28 16:32:24 +08:00
Hrishikesh Dhayagude
fd7baaf4ba
components/bt: Make modifications to the support of GAP appearance/icon
...
characateristic
1. In addition to mentioning in the documentation, use the standard appearance
values already present and return appropriate error in case an incorrect
value is passed
2. Add ESP_BLE_APPEARANCE* macros corresponding to BTM_BLE_APPEARANCE*
and use them from the API instead
3. Add the missing appearance parameter values from
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.gap.appearance.xml
4. Fix some minor typos
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-04-28 13:59:36 +05:30
zhiweijian
e236ffd91f
Component/bt: get end_handle when get include services
2018-04-28 16:27:25 +08:00
Yulong
6c20bc3203
component/bt: Added the hash key generated directly in the bluedroid module.
...
1. Change all the hash used from the coap module to generated by the bluedroid module directly.
component/bt: Added the <string.h> include file to the gattc_co module to avoid compile error.
2018-04-28 03:11:05 -04:00
Jiang Jiang Jian
ee9ab48347
Merge branch 'feature/btdm_bt_spp_vfs' into 'master'
...
component/bt: Add SPP profile with VFS
See merge request idf/esp-idf!1883
2018-04-28 15:10:07 +08:00
Jiang Jiang Jian
25798b0e3a
Merge branch 'feature/btdm_ble_throughput_optimiz' into 'master'
...
Feature/btdm ble throughput optimiz
See merge request idf/esp-idf!2265
2018-04-28 15:01:39 +08:00
baohongde
d95d0ececb
component/bt: Add SPP profile with VFS
2018-04-28 11:36:22 +08:00
Yulong
fd3162d831
component/bt: Added the server test for the bit rate test.
...
component/bt: optimiz the code
component/bt: optimiz the code.
component/bt: added the l2c change.
component/bt: Added the modified.
component/bt: change the indicate callback function.
component/bt: added the BLE throughput test gattc & gatts example.
component/bt: Change the sdkconfig.default CONFIG_GATTS_NOTIFY_THROUGHPUT setting.
component/bt: Change the throughput_client_task delay method.
component/bt: change the btu task size from 4096 to 5096
comonent/bt: close the print when congest.
component/bt: Added the CPU frequency set method to the readme file.
component/bt: Change the gatts_demo_char1_val to gl_profile_tab[PROFILE_A_APP_ID].char_handle to avoid make error.
example/ble_throughput: Added the Readme explanation.
component/bt: Added the bt lib change.
component/bt: Update the bt lib & Change the LOG level from ERROR to DEBUG when congest.
component/bt: Fixed the bug of timer start assign error.
component/bt: Change back the gattc & gatts demo with same as the master.
example/ble_throughput: Fixed the bug when prepare write of the ble throughput.
component/bt: Update the check_sum algorithm.
component/bt: Change Added the path when used the include file of "l2cdefs.h" & "l2c_api.h".
example/throughput_client: Added the Freertos related header files to ble throughput client demo to avoid compile error.
2018-04-27 23:02:10 -04:00
Yulong
8f015e3e48
component/bt: Check the value received from the peer device when sent the data used prepare write.
...
component/bt: Fix misspellings of "corret" in comments in bta_gattc_write_cmpl function.
2018-04-27 08:20:01 -04:00
Liu Zhi Fu
ed46976f41
esp32/bt/driver: support static allocation of FreeRTOS queues used by ISR routine
...
Support static allocation of FreeRTOS queues used by ISR routine in WiFi/BT/esp_timer/driver etc
2018-04-27 15:02:30 +08:00
Tian Hao
8646913cbf
component/bt : add class bt read RSSI delta (golden range)
2018-04-27 14:33:47 +08:00
Jiang Jiang Jian
cc2d1fda96
Merge branch 'bugfix/btdm_modify_include_path' into 'master'
...
component/bt : modify header files to avoid conflict
See merge request idf/esp-idf!2195
2018-04-27 12:01:46 +08:00
Jiang Jiang Jian
44c3318749
Merge branch 'mesh/feature_fix_root' into 'master'
...
Mesh/feature fix root
See merge request idf/esp-idf!2308
2018-04-27 10:56:35 +08:00
qiyueixa
ebd1849e18
mesh: add fix root function
2018-04-26 21:15:35 +08:00
Ivan Grokhotkov
94250e42a0
sleep: optimize light sleep wakeup latency
2018-04-26 19:36:47 +08:00
Tian Hao
adada3f67e
component/bt : modify header files to avoid conflict
...
1. add the L1 include path with a prefix, such like osi/list.h, stack/a2d_api.h and etc.
2. modify component, only bluedroid/api/include/api is export to another component and application,
other include path just for bluedroid used
3. put bluedroid/include into common/include/common, so the root directory of bluedroid have no include path.
4. modify doxygen to use esp_bt.h and redirect to
component/bt/bluedroid/api/include/api/
fix compile
2018-04-26 19:32:06 +08:00
Ivan Grokhotkov
ac623a9756
soc/rtc: restore dbg attenuation when waking from sleep
...
This fixes inability to enter deep sleep after waking up from light sleep
2018-04-26 18:52:46 +08:00
Ivan Grokhotkov
d38b22b11b
soc/rtc, sleep: don’t lower the bias for wakeup state
...
This fixes watchdog resets occurring during wakeup from light sleep.
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
b0a91630fb
soc/rtc: allow main XTAL to be powered on in sleep
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
3c78faa0a9
soc/rtc: don’t switch frequency in rtc_sleep_init
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
487210221b
esp_timer: add internal function to adjust time
2018-04-26 18:52:45 +08:00
Ivan Grokhotkov
0236592fe5
Merge branch 'feature/esp32_sw_breaks' into 'master'
...
ESP32 SW Breakpoints Support
See merge request idf/esp-idf!2316
2018-04-26 18:05:38 +08:00
Ivan Grokhotkov
add969f69d
Merge branch 'bugfix/partition_make3.81' into 'master'
...
partition table: Fix regression with make 3.81
See merge request idf/esp-idf!2314
2018-04-26 15:29:15 +08:00
Alexey Gerenkov
439140d269
esp32: Adds support for SW breakpoints in flash
...
Disables app image integrity checks when running under OpenOCD control.
Allows setting breakpoints in flash before application start (just after reset).
2018-04-26 10:17:02 +03:00
Ivan Grokhotkov
4083a356a8
Merge branch 'bugfix/build_failure_with_heap_task_tracking' into 'master'
...
Fix build failure if CONFIG_HEAP_TASK_TRACKING enabled
See merge request idf/esp-idf!2315
2018-04-26 15:16:43 +08:00
Ivan Grokhotkov
4ba19abeb6
esp_timer: add a function to get next alarm time
2018-04-26 14:39:54 +08:00
Jiang Jiang Jian
464dbbdaa9
Merge branch 'bugfix/fix_a_minor_compile_issue' into 'master'
...
Bugfix/fix a minor compile issue
See merge request idf/esp-idf!2307
2018-04-26 14:31:04 +08:00
Jiang Jiang Jian
37513cd738
Merge branch 'feature/wifi_add_wifi_event_mask' into 'master'
...
add WiFi event mask API
See merge request idf/esp-idf!2072
2018-04-26 14:27:42 +08:00
Mahavir Jain
5cdd08ef5a
heap: fix build failure due to missing header
...
Closes https://github.com/espressif/esp-idf/issues/1881
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-26 11:08:58 +05:30
Jiang Jiang Jian
9b9eb7e724
Merge branch 'bugfix/fix_some_wifi_phy_mode_bugs' into 'master'
...
esp32: fix some wifi phy mode bugs
See merge request idf/esp-idf!2294
2018-04-26 10:27:32 +08:00
Angus Gratton
8fbdad5b0c
partition table: Fix regression with make 3.81
...
"undefine" was added in make 3.8.2
Namespace the global partition table option variables to minimise scope leakage.
2018-04-26 12:07:27 +10:00
Ivan Grokhotkov
5a63faa516
sdmmc: enable more test cases
...
Some test cases did not run automatically in CI, this change enables
them.
2018-04-26 10:04:44 +08:00
Ivan Grokhotkov
2699bb49ae
sdspi: handle delayed responses for data write commands
...
Command response tokens can be delayed from the original command by 1
to 8 bytes. In 4a2489b9
, handling for delayed tokens was added for
normal (no data) commands, and data read commands. This adds handling
for delayed commands for data write commands.
2018-04-26 10:04:44 +08:00
Angus Gratton
081c830d2f
Merge branch 'feature/partition_size_check' into 'master'
...
partition_table: Check configured flash size fits in partition table
See merge request idf/esp-idf!2274
2018-04-26 08:48:31 +08:00
Angus Gratton
d9cbfe42f9
Merge branch 'bugfix/log_macro_statements' into 'master'
...
log: Make ESP_LOGx macros into single statements
See merge request idf/esp-idf!2275
2018-04-26 08:05:49 +08:00
Angus Gratton
fa3205737f
partition_table: Check configured flash size fits in partition table
...
Check happens at build time, so flash size config may need to be changed.
Also fixes MD5_OPT undefined warning, closes https://github.com/espressif/esp-idf/issues/1867
2018-04-26 09:51:55 +10:00
Angus Gratton
2f318d16fa
log: Make ESP_LOGx macros into single statements
...
Requires a semicolon after any use (previously this was optional due to trailing } after expansion)
Closes https://github.com/espressif/esp-idf/issues/1757
2018-04-26 09:08:07 +10:00
jack
81e4cad615
fix the bug that in mdns test code redefine esp_err_t to uint32_t, which should be int32_t
2018-04-25 21:05:21 +08:00
Jiang Jiang Jian
683270958c
Merge branch 'feature/btdm_set_bredr_txpower' into 'master'
...
component/bt : add BR/EDR TX power set
See merge request idf/esp-idf!2267
2018-04-25 20:53:21 +08:00
Liu Zhi Fu
f5ae421e14
esp32: fix some wifi phy mode bugs
...
Fix several WiFi phy mode bugs
2018-04-25 20:32:18 +08:00
XiaXiaotian
364c15b9f8
add WiFi event mask API
2018-04-25 19:25:43 +08:00
Tian Hao
e660785532
component/bt : add BR/EDR TX power set
2018-04-25 15:28:19 +08:00
Jiang Jiang Jian
d8c63160af
Merge branch 'bugfix/btdm_fix_gatt_cache_error' into 'master'
...
Component/bt: fix gattc some errors
See merge request idf/esp-idf!2104
2018-04-25 14:57:18 +08:00
shangke
5fc130f2c0
update emac_reg_v2.h
2018-04-25 14:54:09 +08:00
Ivan Grokhotkov
0b1bb2ab57
Merge branch 'bugfix/fatfs_readwrite_test_failure' into 'master'
...
fatfs/test: increase stack size in read-write unit test
See merge request idf/esp-idf!2256
2018-04-24 23:43:24 +08:00
Ivan Grokhotkov
907248b6a7
Merge branch 'feature/nvs_coverage' into 'master'
...
NVS: add power off recovery and coverage test into CI
See merge request idf/esp-idf!2246
2018-04-24 23:42:00 +08:00
Ivan Grokhotkov
52f9a5ca16
Merge branch 'bugfix/sdspi_wp_cd_pins' into 'master'
...
sdmmc, sdspi: fix handling of CD and WP
See merge request idf/esp-idf!2285
2018-04-24 20:53:47 +08:00
Sagar Bijwe
21584827b3
dhcp/dhcpserver Fix max station limit check in dhcp server
...
Currently when MAX_STATION limit in DHCP config is set to N, dhcp server
issues only N-1 IP addresses. This is problematic from customer
perspective if both SoftAP MAX_STATION and DHCP MAX_STATION limit is set
to same value. With this change DHCP server can issue N addresses that
is inline with the set limit.
Closes TW<20556>
2018-04-24 17:36:55 +05:30
Ivan Grokhotkov
e0f1524c86
sdmmc: add tests for CD and WP pins for SD and SPI mode
2018-04-24 19:08:44 +08:00
Ivan Grokhotkov
e19901c898
sdmmc: don’t print sdio_reset warning when CD is idle
2018-04-24 19:08:44 +08:00
Ivan Grokhotkov
85ab4fc83e
sdmmc host: add handling of CD and WP pins
...
Previous version of the code only connected CD and WP to the
peripheral, in fact the hardware does not use the values of these
signals automatically. This adds code to read CD and WP values when
command is executed and return errors if card is not present, or
write command is executed when WP signal is active.
2018-04-24 19:08:44 +08:00
Ivan Grokhotkov
829c6cef39
sdmmc host: when parameter validation fails, exit cleanly
...
This fixes lock-up which happened when sending a command, if the
previous command has failed.
2018-04-24 19:08:44 +08:00
Jiang Jiang Jian
edcaa5f300
Merge branch 'bugfix/minor_fix_for_wifi_tx' into 'master'
...
esp32: minor fix for WiFi TX
See merge request idf/esp-idf!2281
2018-04-24 13:42:41 +08:00
Mahavir Jain
7b50ed70a3
aws_iot: add support for MQTT TLS over port 443
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-23 18:27:28 +05:30
Ivan Grokhotkov
50304d719e
Merge branch 'bugfix/esp_tls_error_logging' into 'master'
...
esp-tls: Expand error logging
See merge request idf/esp-idf!2284
2018-04-23 20:18:30 +08:00
Liu Zhi Fu
2461a780aa
more
2018-04-23 19:09:46 +08:00
Ivan Grokhotkov
5a3b2eddd3
Merge branch 'bugfix/esp_tls_memory_leak' into 'master'
...
esp-tls: fix memory leak when using CA certification validation
See merge request idf/esp-idf!2283
2018-04-23 18:57:11 +08:00
Jiang Jiang Jian
cad88fb18c
Merge branch 'bugfix/authmode_change_event_peg_core_in_wep_mode' into 'master'
...
bugfix/wrong_authmode_change_event_is_reported_in_wep_mode
See merge request idf/esp-idf!2282
2018-04-23 18:51:46 +08:00
zhiweijian
be107320f7
Component/bt: fix gatt cache error
...
- fix sev == NULL error
- fix start_handle == end_handle
2018-04-23 15:43:10 +08:00
Ivan Grokhotkov
92a16ac6e6
sdspi: fix CD and WP incorrectly configured as outputs
2018-04-23 14:35:40 +08:00
Ivan Grokhotkov
2a7d85cfa4
sdmmc, sdspi: fix initializers to be C++-compatible, add test
...
Closes https://github.com/espressif/esp-idf/issues/1861
Closes https://github.com/espressif/arduino-esp32/issues/1312
2018-04-23 14:35:13 +08:00
Deng Xin
aab573746e
Bug fix of authmode change event peg core in wep mode
...
auth mode change event will report continous in wep mode due to wrong original auth record
close github issue https://github.com/espressif/esp-idf/issues/1804
2018-04-23 14:25:36 +08:00
Flavio Bayer
d477d3c5bd
bugfix/sdspi_host.c: wrong CD/WP pin configuration
...
Looks like the configuration of CP and WP pins are wrong, since the check for `gpio_cd` and `gpio_wp` in `slot_config` seems to be swapped.
2018-04-23 11:32:42 +10:00
Angus Gratton
088c73bd22
Merge branch 'feature/disable_ble_service_change_pr1673' into 'master'
...
Add option to ena/dis BLE service change registration
See merge request idf/esp-idf!2210
2018-04-23 09:15:02 +08:00
Angus Gratton
f4241dc796
Merge branch 'bugfix/typo_in_aws_iot_config' into 'master'
...
Typo in aws_iot_config.h
See merge request idf/esp-idf!2280
2018-04-23 09:02:02 +08:00
Amit Sheth
aa357a32bc
nvs_flash: Add binary creation support for NVS partition.
...
Ideally suited for generating a binary externally, containing key-value pairs specific
to device manufacturers. Utility allows creation of a binary, compatible
with NVS structure, which can be separately flashed onto a new
partition. This helps device manufacturers set different values for
different devices, e.g. serial numbers, but using a single firmaware
image.
2018-04-23 00:27:29 +05:30
Jiang Jiang Jian
e37ceaed32
Merge branch 'bugfix/tw18453_fix_ap_eapol_retry_bug' into 'master'
...
esp32: fix soft-AP eapol retry issue
See merge request idf/esp-idf!2264
2018-04-22 16:37:24 +08:00
Liu Zhi Fu
db5f927087
esp32: fix the bug that soft-AP fails to retry eapol
...
Fix the issue that soft-AP fails to retry eapol frame when multiple
stations connects it at the same time.
More
2018-04-22 10:19:31 +08:00
redchenjs
854c5260d4
esp-tls: fix memory leak when using CA certification validation
2018-04-22 01:13:09 +08:00
Kyle Secord
6807d80733
Typo in aws_iot_config.h
...
-breaks compilation when 'Override Shadow RX buffer size' is enabled via
menuconfig
Merges https://github.com/espressif/esp-idf/pull/1869
2018-04-20 19:32:52 +05:30
Wangjialin
b1dcb52fec
feature(psram): configure flash and psram speed during runtime
...
1. Bootloader reads SPI configuration from bin header, so that the burning configuration can be different with compiling configuration.
2. Psram mode init will overwrite original flash speed mode, so that users can change psram and flash speed after OTA.
3. Flash read mode(QIO/DIO…) will not be changed in app bin. It is decided by bootloader, OTA can not change this mode.
4. Add read flash ID function, and save flash ID in g_rom_flashchip
5. Set drive ability for all related GPIOs
6. Check raise VDDSDIO voltage in 80Mhz mode
7. Add check flash ID and update settings in bootloader
8. Read flash ID once and keep in global variable
9. Read flash image header once and reuse the result
Tested cases:
1. Test new and old version of bootloader
boot Flash 20M —> app Flash 80M + Psram 80M
boot Flash 40M —> app Flash 80M + Psram 80M
boot Flash 80M —> app Flash 80M + Psram 80M
boot Flash 20M —> app Flash 80M + Psram 40M
boot Flash 40M —> app Flash 80M + Psram 40M
boot Flash 80M —> app Flash 80M + Psram 40M
boot Flash 20M —> app Flash 40M + Psram 40M
boot Flash 40M —> app Flash 40M + Psram 40M
boot Flash 80M —> app Flash 40M + Psram 40M
2. Working after esp_restart reboot.
2018-04-20 20:51:44 +08:00
Jitin George
d57495cb1c
esp-tls: Fix HTTP2 failure
...
Closes https://github.com/espressif/esp-idf/issues/1874
2018-04-20 16:59:36 +05:30
Jiang Jiang Jian
c32ccf7abb
Merge branch 'bugfix/add_NULL_value_check_bta_gattc_get_services' into 'master'
...
components/bt: Add NULL value check in bta_gattc_get_service_with_uuid()
See merge request idf/esp-idf!2212
2018-04-20 18:15:45 +08:00
Jiang Jiang Jian
1c06b44f08
Merge branch 'bugfix/bt_correct_inquiry_mode_name' into 'master'
...
components/bt: Correct the enquiry mode name
See merge request idf/esp-idf!2217
2018-04-20 18:14:57 +08:00
Jiang Jiang Jian
102d08fd79
Merge branch 'feature/btdm_gattc_cache' into 'master'
...
Feature/btdm gattc cache
See merge request idf/esp-idf!1083
2018-04-20 17:49:35 +08:00
Ivan Grokhotkov
22fbcd276c
Merge branch 'feature/amazon_freertos_compat_v2' into 'master'
...
Changes for Amazon Freertos compatibility
See merge request idf/esp-idf!2123
2018-04-20 14:55:47 +08:00
Yulong
2c7182c59f
component/bt: For unity, Change all the associat & associa to abbreviated form(assoc).
2018-04-20 02:16:33 -04:00
Ivan Grokhotkov
6185e722c3
Revert "Merge branch 'feature/vfs_select' into 'master'"
...
This reverts merge request !2074
2018-04-20 11:51:41 +08:00
Yulong
b940abca0e
component/bt: Change the cache 'associat' name for unify.
2018-04-19 22:56:33 -04:00
Mahavir Jain
441b4a9742
esp32: fix few components with dependency on networking stack
...
* Move smartconfig to its component directory, it should be possible to override
this as whole component
* Fix few header includes related to lwIP networking stack
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Mahavir Jain
43a12894ea
driver/spi: add _ISR counterparts if invoked from interrupt for critical section
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Mahavir Jain
c65a08d2fb
freertos: portCLEAN_UP_TCB should be performed before freeing tcb memory
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Mahavir Jain
24ad64bfe4
pthread: implement local storage using pvTaskGetThreadLocalStoragePointer
...
If static task cleanup option is enabled, then before invoking application
defined `vPortCleanUpTCB` hook, pthread specific cleanup is performed.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
2d598d6fb7
esp_timer: use _ISR version of port{ENTER,EXIT}_CRITICAL from ISR
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
41ae0fe52b
newlib: define _REENT_INIT_PTR correctly for ESP_PLATFORM
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
573ea385b4
multi_heap: use portENTER/EXIT_CRITICAL instead of taskENTER/EXIT_CRITICAL
2018-04-19 18:28:55 +05:30
Ivan Grokhotkov
f65870566a
crosscore_int: use _ISR version of portENTER/EXIT_CRITICAL in ISR
2018-04-19 18:28:55 +05:30
Jiang Jiang Jian
5d3b26e8d0
Merge branch 'feature/mesh' into 'master'
...
mesh: update mesh libs
See merge request idf/esp-idf!2244
2018-04-19 20:24:16 +08:00
Ivan Grokhotkov
6f504deed0
nvs: run all test by default, exclude long tests by tag
...
Reduces the chance of new tests being skipped in CI
2018-04-19 15:08:08 +08:00
Ivan Grokhotkov
f8cb95d0b8
nvs: print progress in nvs API tests, reduce number of iterations
2018-04-19 15:08:08 +08:00
Ivan Grokhotkov
88d0d6ffb0
Merge branch 'feature/vfs_select' into 'master'
...
Allow VFS file descriptors in select()
See merge request idf/esp-idf!2074
2018-04-19 15:06:02 +08:00
Ivan Grokhotkov
b297b72abb
Merge branch 'bugfix/fix_gpio_install_isr_service_check_value' into 'master'
...
driver(gpio): modify return value when gpio ISR service already exists.
See merge request idf/esp-idf!2125
2018-04-19 15:01:50 +08:00
Ivan Grokhotkov
fbb3610c0b
Merge branch 'feature/bootloader_refactoring_common' into 'master'
...
bootloader: Refactoring
See merge request idf/esp-idf!2251
2018-04-19 14:58:00 +08:00
Ivan Grokhotkov
bc4c201e20
Merge branch 'bugfix/fix_github_reported_1841_and_1845' into 'master'
...
Fix few minor github reported issues
See merge request idf/esp-idf!2252
2018-04-19 12:59:37 +08:00
Yulong
ece6bd9b82
component/bt: Change the btc gattc callback function with the compile error.
...
1. Change all the gattc API && bta gattc layer.
2. Debug the code and change the btc_ble_gattc_get_db method.
3. Change the gatt read API interface.
4. Reconstruction the BTA_gattc_cache code.
5. Change back the bluedroid_get_status to marco.
6. Change the gattc docs format.
7. Change the docs format.
8. fix the read char value bug.
9. change the gattc_get_attr_count method.
10. Change back the bta_gattc write ccc code.
11. Change the gattc api docs format
12. Change the gattc API docs.
13. Change the prepare write descriptor method to avoid the exection.
14. modify gatt clinet demo with new API
15. Change the p_src_data->read.p_value to avoid exection.
16. Change the bugfix of gattc unreg for the notify.
component/bt: Added the serch service res start_handle & end_handle to the result.
component/bt: Added the bta_gattc_cache_write when gatt discovery complete.
component/bt: Added the bta_gattc_cache_write declaration.
component/bt: Added the comments for esp_ble_gattc_cache_refresh API.
component/bt: Change the spelling errors & some comment error.
component/bt: fix bug of get gattc cache address list error.
1. Change the esp_bluedroid_get_status to macro;
2. added the malloc & free for the get_addr_list
component/bt: Added the addr_info->ass_addr == NULL Judgment to prevent crashes in the bta_gattc_co_cache_find_src_addr function.
component/bt: Fixed following gattc cache bugs
1. gattc can't refresh the gattc cache in the gatt discover state;
2. remove the nvs_get_blob in the cache address init function;
3. added the nvs_set_blob return value judgment in the cache address save function;
4. added the list_new when ass_address is NULL;
5. Change the ass_address list remove method to fix the ass address can't remove bug.
2018-04-19 12:05:13 +08:00
Angus Gratton
04103e96f5
esp-tls: Log errors for all "connection failed" code paths
2018-04-19 11:34:27 +10:00
Angus Gratton
507ca8196c
esp-tls: Allow esp_tls_conn_delete() to be called with a NULL pointer
2018-04-19 11:34:06 +10:00
Ivan Grokhotkov
cbd7431d94
fatfs/test: increase stack size in read-write unit test
...
2048 byte stack was not sufficient when some error was logged by SD
card driver, leading to stack overflows.
2018-04-18 14:35:21 +08:00
Angus Gratton
fe907bde60
Merge branch 'bugfix/heap_tracing_newlib_allocations' into 'master'
...
heap tracing: Fix tracing of newlib internal allocations
See merge request idf/esp-idf!1992
2018-04-18 12:07:15 +08:00
Ivan Grokhotkov
b76c9ef706
Merge branch 'feature/esp-tls' into 'master'
...
esp-tls: Fix connection failure
See merge request idf/esp-idf!2241
2018-04-18 11:11:49 +08:00
Ivan Grokhotkov
17ab60d642
Merge branch 'bugfix/nvs_failed_crc_assert' into 'master'
...
nvs: don’t expect items with bad CRC to be in cache
See merge request idf/esp-idf!2239
2018-04-18 11:01:21 +08:00
qiyueixa
899f2fa1ed
mesh: update mesh libs
...
1. fix issues on sending beacon caused by too much tx retries on other packets.
2. modify not to scan if rc exists when connect.
3. modify scan dwell time to default 120ms fo root.
2018-04-17 11:49:54 +00:00
Konstantin Kondrashov
86256b3541
bootloader: Refactoring
...
Need to make the bootloader modular so that users can redefine its functional part.
- refactoring and moving functions to the bootloader_support component
- Changed function to `void` bootloader_utility_load_image(...);
TW19596
2018-04-17 16:36:49 +05:00
Roland Dobai
6852d653bd
Allow VFS file descriptors in select()
2018-04-17 11:25:30 +02:00
Sagar Bijwe
9a3c4b7134
nvs: Fix recovery after power-off during erase operation
...
Current code for recovery after power-off do not clean-up partially
erased items for FULL pages. If the erasure was part of modification
operation, this gets luckily cleaned-up because of duplicate detection
logic. For erase-only operation, the problem still exists. This patch
adds the recovery for FULL pages also.
Closes TW<20284>
2018-04-17 12:24:21 +05:30
Jiang Jiang Jian
16ad81c636
Merge branch 'feature/btdm_get_and_set_cod' into 'master'
...
component/bt: Add API: get cod & set cod
See merge request idf/esp-idf!2127
2018-04-17 14:21:18 +08:00
Jiang Jiang Jian
a3cfbdb150
Merge branch 'bugfix/btdm_a2dp_source_cleanup_bug' into 'master'
...
component/bt: Fix bug of a2dp source cleanup bug when connected
See merge request idf/esp-idf!2042
2018-04-17 14:20:15 +08:00
Jiang Jiang Jian
0d55f2cb7b
Merge branch 'bugfix/btdm_add_assert_when_no_device_name' into 'master'
...
component/bt: Fix exception when there is no device name
See merge request idf/esp-idf!2184
2018-04-17 14:19:39 +08:00
Mahavir Jain
60ab582ba6
bt: fix incorrect comments for error codes
...
Closes https://github.com/espressif/esp-idf/issues/1845
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-17 10:44:48 +05:30
Mahavir Jain
959c677025
rtc_module: fix build failure if assertions are disabled
...
Closes https://github.com/espressif/esp-idf/issues/1841
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-04-17 10:44:48 +05:30
Konstantin Kondrashov
6a4033b8a7
nvs: fix nvs_get_stats unit test
...
Changed check for the returned parameter from ESP_ERR_NVS_PART_NOT_FOUND to ESP_ERR_NVS_NOT_INITIALIZED.
2018-04-16 13:28:45 +00:00
He Yin Ling
c36687aac6
Merge branch 'test/fix_ci_test_fail_in_jap_case' into 'master'
...
test: fix CI fail when join AP
See merge request idf/esp-idf!2245
2018-04-16 19:02:46 +08:00
Ivan Grokhotkov
2c3644a09f
nvs: don’t expect items with bad CRC to be in cache
...
When erasing a variable length item with an incorrect CRC32, the span
value of the item can not be trusted, so the item will be erased with
span = 1. Subsequent entries represent the data of the variable
length item, and these will be treated as separate items. For each
entry CRC32 is checked, the check most likely fails (because the
entry contains arbitrary data, and not a proper NVS item), and the
entry is erased. Erase function assumed that every item should be
present in cache, but it is not the case for the entries which are
just parts of item’s payload. This change allows for the item to be
not found in the hashlist, if the CRC32 check fails.
2018-04-16 09:36:17 +00:00
Ivan Grokhotkov
fc1e944f59
Merge branch 'bugfix/nvs_stat_test' into 'master'
...
NVS: fix nvs_get_stats unit test
See merge request idf/esp-idf!2248
2018-04-16 14:45:43 +08:00
Ivan Grokhotkov
d3fd00c049
Merge branch 'bugfix/spi_miso_on_input_only_pins' into 'master'
...
fix(spi): allow to use MISO on GPIO34-39.
See merge request idf/esp-idf!2136
2018-04-16 14:39:02 +08:00
Ivan Grokhotkov
20405fbbcc
nvs: make nvs_flash_deinit useable from unit tests
2018-04-16 14:06:52 +08:00
Ivan Grokhotkov
fa3bd16d75
nvs: deinit NVS in nvs_stats unit test
...
This fixes the failure when this test runs after another test which
leaves NVS initialized.
2018-04-16 12:50:57 +08:00
Ivan Grokhotkov
d0d314d8f8
Merge branch 'bugfix/nvs_page_selection' into 'master'
...
nvs: Fix page selection algo to consider free entry counts as well
See merge request idf/esp-idf!2240
2018-04-16 10:32:01 +08:00
Ivan Grokhotkov
5029eb4b3b
Merge branch 'feature/nvs_get_count_used_entries' into 'master'
...
NVS: add API to get used entries count
See merge request idf/esp-idf!1982
2018-04-16 10:25:01 +08:00
He Yin Ling
7cfd08deca
test: fix join AP fail during AP power on
2018-04-16 09:27:46 +08:00
Angus Gratton
8b3fda99f5
Merge branch 'feature/uart_add_api_get_cmd_position' into 'master'
...
driver(uart): Add API to get the position of cmd_char
See merge request idf/esp-idf!2177
2018-04-16 08:03:25 +08:00
Ivan Grokhotkov
9c7207ed3c
Merge branch 'bugfix/soc_clk_out_fields' into 'master'
...
soc/io_mux: make CLK_OUT fields compatible with REG_SET/GET_FIELD
See merge request idf/esp-idf!2133
2018-04-13 19:42:20 +08:00
Jitin George
0d0445103b
esp-tls: Fix connection failure when esp-tls config is empty
2018-04-13 16:58:19 +05:30
Jiang Jiang Jian
c17b59ebe1
Merge branch 'feature/mesh' into 'master'
...
mesh: update mesh libs
See merge request idf/esp-idf!2218
2018-04-13 18:55:39 +08:00
Sagar Bijwe
7e79471ece
nvs: Fix page selection algo to consider free entry counts as well
...
Current page selection algorithm selects a page for compaction based on just erased counts
and gives up when it does not find any page with erased count greater than 0. This is
problematic since the current allocation procedure skips the active page if there is not
enough room for the item in that page leaving free chunks on the pages. This change modifies
the algorithm to consider both erased as well as free counts on the candidate pages.
Closes TW<20297>
2018-04-13 14:49:05 +05:30
konstantin
c93626db3f
nvs:Add functions for calculating used/free entries
...
Users needs functions to count the number of free and used entries.
1. `nvs_get_stats()` This function return structure of statistic about the uspace NVS.
(Struct: used_entries, free_entries, total_entries and namespace_count)
2. `nvs_get_used_entry_count()` The second function return amount of entries in the namespace (by handler)
3. Added unit tests.
Closes TW<12282>
2018-04-13 10:34:13 +05:00
Wang Jia Lin
6c44fc70bc
Merge branch 'feature/gpio_add_hold_support' into 'master'
...
driver(gpio): Add api support digital pad hold function
See merge request idf/esp-idf!2186
2018-04-13 12:18:44 +08:00
qiyueixa
92fd4c42e1
mesh: update mesh libs
...
1. fix a bug in initliazing map beacon interval.
2. fix not send MESH_EVENT_ROUTING_TABLE_REMOVE when MESH_NWK_CHILD_DISCONNECTED.
3. fix a bug in returning roots ie len.
2018-04-13 11:52:31 +08:00
Michael (Xiao Xufeng)
45f8bcf3f8
fix(spi): allow using MISO on GPIO34-39
...
Breaking Changes: arguments of ``spicommon_bus_initialize_io`` are changed.
Closes https://github.com/espressif/esp-idf/issues/1736 .
2018-04-12 17:01:38 +08:00
Michael (Xiao Xufeng)
77629129c0
chore(spi): update the return value of spi init functions
2018-04-12 17:01:38 +08:00
Michael (Xiao Xufeng)
dceb3452c7
doc(spi_master): format the documentation of several fields and macros in spi_master.h
2018-04-12 17:01:37 +08:00
Angus Gratton
234723c061
Merge branch 'feature/pcnt_add_isr_manage_apis' into 'master'
...
Driver(pcnt) : Add new feature that each unit can has it's own interrupt handler.
See merge request idf/esp-idf!2086
2018-04-12 09:06:56 +08:00
Angus Gratton
c626a8fe74
Merge branch 'feature/build_out_of_tree_srcs' into 'master'
...
make: Build out of tree component srcs under component build dir
See merge request idf/esp-idf!2190
2018-04-12 08:49:56 +08:00
Jiang Jiang Jian
12dbe4dac5
Merge branch 'feature/btdm_add_set_local_icon_api' into 'master'
...
Component/bt: add set gap icon API
See merge request idf/esp-idf!2129
2018-04-11 20:48:13 +08:00
Jiang Jiang Jian
6b7ad6b707
Merge branch 'bugfix/btdm_do_not_update_conn_params_when_have_key_in_slave' into 'master'
...
Component/bt: do not update connection params when already have keys in slave
See merge request idf/esp-idf!2176
2018-04-11 20:47:27 +08:00
kooho
2236249555
driver(pcnt): Add some APIs to support each unit can have it's own interrupt handler.
2018-04-11 16:15:09 +08:00
Ivan Grokhotkov
bdadd95dd7
Merge branch 'feature/wwrite_string_for_idf' into 'master'
...
Enable -Wwrite-strings when compiling IDF's own C files
See merge request idf/esp-idf!2193
2018-04-11 14:59:08 +08:00
Ivan Grokhotkov
bae9709a79
Merge branch 'feature/sdio_master' into 'master'
...
SDIO master driver
See merge request idf/esp-idf!2008
2018-04-11 12:38:42 +08:00
Ivan Grokhotkov
c6829fa5b8
sdmmc: improve error handling during SPI mode init
...
- In SPI mode, the card will respond to the initial SDIO reset (done
using CMD52) with “invalid command” error. Handle this correctly.
- sdmmc_card_init had a hack where GO_IDLE_STATE (CMD0) command was
sent twice. Add explanation why this is done, and don’t expect
correct response from the card on first CMD0.
- improve logs printed at debug level by adding CMD index
2018-04-11 11:11:17 +08:00
Ivan Grokhotkov
ee600784c5
sdmmc: add SDIO support
...
- Add SDIO support at protocol layer (probing, data transfer, interrupts)
- Add SDIO interrupts support in SDMMC host
- Add test (communicate with ESP32 in SDIO download mode)
2018-04-11 11:07:13 +08:00
Ivan Grokhotkov
5f97e6bebb
sdmmc: fill as many DMA descriptors as possible
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
20a8c3318a
sdmmc: do expect CMD_DONE interrupt after response timeout
...
Existing code assumed that response timeout is not followed by CMD_DONE,
which was not true, in fact. Host datasheet states that CMD_DONE is sent
after an RTO.
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
01cd2fce73
sdmmc: print error status only once
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
5fc6fb58ea
sdmmc: don't whitelist the opcodes when handling response timeout
...
All the commands which do not have a response must have their flags set
accordingly. Therefore the host will not send RTO interrupt if response
is not expected. It is a bug in the code logic if it happens otherwise.
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
f02cff13cc
sdmmc: set highest possible host clock divider
...
SDMMC host suffers from an issue that it outputs data near the rising
edge of the card clock, which is the edge used by the card to sample
data. If sampling time constraint is not satisfied, card may read data
after the transition.
The phases of output/input data can, in fact, be adjusted. However this
adjustment happens in the clock generation block outside of the host.
So the maximum phase change which can be created this way is equal to
half of the host clock period. So if the host clock is set to the lowest
possible frequency (for the given card frequency), then the phase offset
(and hence the hold time) will be the highest. This change modifies the
logic used to determine clock dividers accordingly.
sdmmc host: set correct dout phase and print correct frequency
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
84d6793f77
sdmmc: don't set data_expected on SET_BUS_WIDTH command
...
SET_BUS_WIDTH is not a data transfer command. Extensive search in the
host datasheet and SD card spec did not reveal the origin of this hack
or 'feature'. Further testing showed that removing this does not lead to
regressions.
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
42de5fb76d
sdmmc: send init sequence before CMD0
2018-04-11 11:06:50 +08:00
Ivan Grokhotkov
907fc1167a
gpio: add special GPIO signal values
2018-04-11 11:06:50 +08:00
huchaoru
f409a33653
test: update ci test case
2018-04-10 14:08:10 +00:00
Hrishikesh Dhayagude
9c41c93f5f
components/bt: Correct the enquiry mode name
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-04-10 17:58:11 +05:30
Ivan Grokhotkov
2522c1b2f9
Merge branch 'bugfix/rtc_clk_fixes' into 'master'
...
Power management and RTC fixes
See merge request idf/esp-idf!2131
2018-04-10 18:17:02 +08:00
baohongde
52dbcef908
component/bt: Fix exception when there is no device name
2018-04-10 17:55:33 +08:00
Roland Dobai
744c2dcdd9
Resolve problems found by enabling -Wwrite-strings compilation flag
2018-04-10 08:53:43 +02:00
Angus Gratton
f7b7b4ef59
Merge branch 'bugfix/mdns_fixes' into 'master'
...
MDNS: Fix some issues when hostname is not set or services are removed
See merge request idf/esp-idf!2179
2018-04-10 13:43:02 +08:00
Angus Gratton
2914111c8c
Merge branch 'bugfix/heap_fragmentation_on_split_pr1761' into 'master'
...
heap: Try to merge tail with next block when splitting
See merge request idf/esp-idf!2147
2018-04-10 12:14:57 +08:00
Hrishikesh Dhayagude
284f332f06
components/bt: Add NULL value check in bta_gattc_get_service_with_uuid()
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-04-10 09:34:03 +05:30
kooho
ccf09c3b39
driver(gpio): Add api support digital pad hold function.
2018-04-10 11:31:59 +08:00
Ing. Jaroslav Safka
801632d68b
bt: Add option to ena/dis BLE service change registration
...
Add option to enable/disable automatic registration of BLE Gattc
service change notify. Which sends in parralel
(with user message flow) commands to BLE server which
sometime leads to GATT_BUSY.
(BLE server is able to handle only one command at time)
Closes https://github.com/espressif/esp-idf/issues/1575
Merges https://github.com/espressif/esp-idf/pull/1673
2018-04-10 12:27:33 +10:00
Angus Gratton
2bfef060ba
Merge branch 'bugfix/small_fixes_from_github' into 'master'
...
Bugfix/small fixes from github
See merge request idf/esp-idf!2200
2018-04-10 09:19:19 +08:00
Angus Gratton
58ed6cc9af
Merge branch 'bugfix/wifi_ps_modem' into 'master'
...
wifi: Add WIFI_PS_MODEM for backwards compatibility with V3.0 API
See merge request idf/esp-idf!2203
2018-04-10 09:18:53 +08:00
baohongde
789edc0b52
component/bt: Add API: get cod & set cod
...
In response to: https://github.com/espressif/esp-idf/issues/1565
2018-04-09 19:25:26 +08:00
Angus Gratton
97a382077f
wifi: Add WIFI_PS_MODEM for backwards compatibility with V3.0 API
2018-04-09 16:55:38 +10:00
me-no-dev
421c6f154b
Fix exception when service is removed while there are pending packets that depend on it
2018-04-09 09:40:08 +03:00
Tian Hao
1bde34c1f1
component/esp32 : remove pm gpio dbg
2018-04-09 14:33:48 +08:00
Ivan Grokhotkov
b11209b070
Merge branch 'feature/esp-tls' into 'master'
...
feature/add simplified TLS socket APIs
See merge request idf/esp-idf!1951
2018-04-09 14:25:21 +08:00
Anton Maklakov
046ff2e628
Make error codes looks like literals in the code of them (easy for searching). Minor fixes, typos
2018-04-09 13:54:18 +10:00
Ing. Jaroslav Šafka
3d89c8ba74
rmt: Fix LoadProhibited on RX END
...
Fixes exceptions LoadProhibited, when rmt tries read variable p_rmt on RX END which can be 0.
It happens after esp_reset() (OTA) and the rmt is not probably stopped by it.
In other words the routine rmt_driver_isr_default was called before second rx channel was registered.
scenario:
register tx channel
register rx channel
reboot
register tx channel
-> exception (because rx channel is accessed)
Merges https://github.com/espressif/esp-idf/pull/1671
2018-04-09 12:29:05 +10:00
Mixerito
9f39411e80
esp32: get_chip_info_esp32() return correct model number
...
out_info->model was zeroed by memset
Merges https://github.com/espressif/esp-idf/pull/1760
2018-04-09 12:28:23 +10:00
Fredrik
97c6a94a03
Bugfix GPIO_DIS_OUTPUT to work with pin 32 and up
...
Merges https://github.com/espressif/esp-idf/pull/1796
2018-04-09 12:28:23 +10:00
Jitin George
b09c3e9878
mbedtls integration in esp-tls
2018-04-06 17:16:27 +05:30
Jitin George
30b50cbfb3
esp-tls header file name change
2018-04-06 17:16:27 +05:30
Jitin George
e29294b49a
Resolved Issues
2018-04-06 17:16:27 +05:30
Jitin George
8a1dcc0765
CA Certificate verification
2018-04-06 17:16:27 +05:30
Kedar Sovani
8211a16207
Use esp-tls in the http2 example
2018-04-06 17:16:27 +05:30
Kedar Sovani
070884fc2e
Include error log in case of error
2018-04-06 17:13:14 +05:30
Kedar Sovani
433bd8c91c
Minor fixes
2018-04-06 17:13:14 +05:30
Kedar Sovani
1c72c8d126
Supports TLS with HTTP2 client
2018-04-06 17:13:14 +05:30
Kedar Sovani
eb051fe72f
Minor fixes
2018-04-06 17:13:14 +05:30
Anuj Deshpande
adbcaf8938
Cast to remove warnings
2018-04-06 17:13:14 +05:30
Kedar Sovani
e45024e088
Don't use 'port' number for DNS query
...
- In some cases where the HTTP URL contains the port number
(http://hostname:334 ), the DNS querier fails to resolve the hostname.
- Hence we have to populate the port number ourselves.
- This can only be done based on whether we get an IPv4 or IPv6
address.
2018-04-06 17:13:14 +05:30
Kedar Sovani
306d59d32c
Make read/write function pointers
...
as per Ivan's feedback
2018-04-06 17:13:14 +05:30
Kedar Sovani
7f35c4ff3e
esp-tls: Basic structure
...
Purpose:
1. TLS calls can be too many, and require a user to know the expected behaviour. A simple TLS socket wrapper that can be used in any higher level protocol.
2. Uses OpenSSL compatibility layer, so applications using esp-tls can be built on the host, and it should just work on ESP
2018-04-06 17:13:14 +05:30
Angus Gratton
5b05a1f822
make: Build out of tree component srcs under component build dir
...
Strips leading ../ when generating object file paths, keeps these in sync with the source files
otherwise.
This prevents object files landing in other directories, including outside the build directory, if
the component_srcdirs start with ../
2018-04-06 13:10:19 +10:00
Xia Xiaotian
e727582180
Fix two WiFi and LWIP typos
...
1. close github issue: https://github.com/espressif/esp-idf/issues/1792
2. close github issue: https://github.com/espressif/esp-idf/issues/1781
2018-04-05 11:46:42 +08:00
qiyueixa
2984cdbbe3
add mesh feature
2018-04-04 22:57:45 +08:00
Jiang Jiang Jian
c842725be0
Merge branch 'bugfix/pm_coex_minor_things' into 'master'
...
Bugfix/pm coex minor things
See merge request idf/esp-idf!2180
2018-04-04 17:54:40 +08:00
Ivan Grokhotkov
1a302cbac1
Merge branch 'bugfix/open_uart_non_blocking' into 'master'
...
Make UART non-blocking when the file descriptor was opened with the O_NONBLOCK flag
See merge request idf/esp-idf!2153
2018-04-04 14:43:31 +08:00
Angus Gratton
53234ef2bc
Merge branch 'refactor/rtc_split_module' into 'master'
...
bugfix(rtc): make sure peripherals (DAC, HALL) are turned off before conversion.
See merge request idf/esp-idf!1848
2018-04-04 09:00:58 +08:00
Tian Hao
58e7464dc0
component/esp32 : clear some minor thingsw about PM and coexistence
2018-04-03 20:13:49 +08:00
Ivan Grokhotkov
595ddfd825
Merge branch 'feature/build_ssc_in_multiple_ci_jobs' into 'master'
...
CI: support build SSC in multiple jobs
See merge request idf/esp-idf!1622
2018-04-03 18:20:38 +08:00
Ivan Grokhotkov
139d49894c
Merge branch 'feature/deactivate_wakeup_trigger' into 'master'
...
esp32: Add deactivation of wake up trigger for different sources
See merge request idf/esp-idf!2079
2018-04-03 15:19:10 +08:00
Angus Gratton
3ccb12530b
heap: Change test_multi_heap_on_host multi-config to bash script not Makefile
...
Hopefully fix some CI building issues with parallel builds.
2018-04-03 16:34:02 +10:00
kooho
305c788c60
driver(uart): Add API to get the position of cmd_char
2018-04-03 12:34:16 +08:00
Deomid Ryabkov
4b7eb1792e
Try to merge tail with next block when splitting
...
When splitting a memory block, check if the next block is free.
If it is, then just extend it upwards instead of creating a new block.
This fixes a bug where when shrinking existing allocations would result in irreversible free space fragmentation.
When testing on the host, test all the poisoning configurations.
2018-04-03 12:30:52 +10:00
Jiang Jiang Jian
393f3da37c
Merge branch 'feature/btdm_add_get_local_used_addr_API' into 'master'
...
Component/bt: add esp_ble_gap_get_local_used_addr() API
See merge request idf/esp-idf!2137
2018-04-02 22:28:00 +08:00
Jiang Jiang Jian
7133e14eee
Merge branch 'feature/wifi_bt_new_coex' into 'master'
...
Feature/wifi bt new coex
See merge request idf/esp-idf!2087
2018-04-02 22:20:31 +08:00
zhiweijian
a6c79cfe0f
Component/bt: do not update connection params when already have keys in slave
2018-04-02 19:44:09 +08:00
He Yin Ling
3b3ad875c4
test: use SSC_BLE_WIFI to test NVS cases
2018-04-02 18:13:52 +08:00
Ivan Grokhotkov
aca0008694
Merge branch 'bugfix/sdspi_init_v1_card' into 'master'
...
sdspi: compatibility fixes for SD v1.0 cards
See merge request idf/esp-idf!1927
2018-04-02 13:48:46 +08:00
island
9b7454de0c
support wifi&bt coexist (v0.9.1)
...
1. refactor wifi modem sleep
2. refactor wifi and bt phy enable/diable coexistence
3. support wifi&bt coexist (v0.9.1)
3. add coex pause resume
4. fix bt library interrupt reaction slowly
5. make a2dp more smooth when coex
6. add coexist preference option
7. Make CI do not check libcoexist.a printf/ets_printf
8. disable Wifi RX AMPDU when software coexistence enable && update wifi lib
9. bluetooth call modem sleep api
2018-04-02 13:44:48 +08:00
Ivan Grokhotkov
d6b1d0bb3d
fatfs/test: enable tests on SD card
2018-04-02 10:57:45 +08:00
Jiang Jiang Jian
8eaae96658
Merge branch 'bugfix/flash_mapp' into 'master'
...
spi_flash: add api to get valid mmu table pages number
See merge request idf/esp-idf!2070
2018-03-30 19:32:35 +08:00
Jiang Jiang Jian
f46ad1fec8
Merge branch 'bugfix/btdm_fix_get_PID_key_error' into 'master'
...
Component/bt: fix get PID key error
See merge request idf/esp-idf!2156
2018-03-30 19:26:31 +08:00
Ivan Grokhotkov
e20e64ace9
fatfs/test: use 16k cluster size to speed up formatting
2018-03-30 18:49:42 +08:00
Ivan Grokhotkov
4a2489b99a
sdspi: fix compatibility issue in multi block read
...
SDSPI driver optimized polling of the response tokens by requesting
two extra bytes on top of the block size (512) and CRC (2), and
checking whether these bytes contained the data response token or
not. In case the token was there, further polling would not need to
happen, thereby reducing latency between two consecutive blocks
transferred. However this caused compatibility issues when these two
extra bytes were sent after reading the final block. When
STOP_TRANSMISSION command was sent, these extra two bytes were
treated as part of the command, causing an invalid command error.
This fixes the logic by only requesting extra two bytes if the block
being read is not the final block. In addition to that, more strict
error checking is implemented for command response tokens.
2018-03-30 18:49:42 +08:00
Ivan Grokhotkov
229f67b816
sdspi: handle delayed R1 responses for data read commands
2018-03-30 18:49:42 +08:00
Ivan Grokhotkov
bbbdec24d9
sdspi: handle error flags for R3/R7 responses
...
Previously error flags were only handled for R1 responses. This change
moves error handling into a separate function and calls it for R1/R3/R7.
2018-03-30 18:49:42 +08:00
zhiweijian
99872beb6a
Component/bt: add set gap icon API
2018-03-30 09:21:53 +00:00
Jiang Jiang Jian
e6d6deebc7
Merge branch 'bugfix/btdm_fix_connect_fail_when_remote_addr_is_random' into 'master'
...
Component/bt: modify open API params
See merge request idf/esp-idf!2116
2018-03-30 17:00:19 +08:00
Jiang Jiang Jian
21099c10f4
Merge branch 'feature/support_enrollee_feature_in_APSTA_mode' into 'master'
...
feature/support WPS enrollee in APSTA mode
See merge request idf/esp-idf!2120
2018-03-30 16:14:43 +08:00
Jiang Jiang Jian
6ffd089c97
Merge branch 'bugfix/btdm_fix_no_set_rand_addr_event_callback' into 'master'
...
Component/bt: fix no set rand add callback
See merge request idf/esp-idf!2140
2018-03-30 16:05:32 +08:00
Jiang Jiang Jian
b26ab188af
Merge branch 'bugfix/btdm_fix_service_change_event_param_error' into 'master'
...
Component/bt: fix service change event params error
See merge request idf/esp-idf!2150
2018-03-30 14:57:13 +08:00
Jiang Jiang Jian
8b9f237cb9
Merge branch 'feature/i2s_add_expand_function' into 'master'
...
add a new i2s feature to expand the original i2s width
See merge request idf/esp-idf!1617
2018-03-30 14:51:23 +08:00
Jiang Jiang Jian
fc5b15173e
Merge branch 'bugfix/btdm_add_some_comment' into 'master'
...
Component/bt: add some comments
See merge request idf/esp-idf!1949
2018-03-30 14:07:30 +08:00
Jiang Jiang Jian
713529e464
Merge branch 'bugfix/btdm_xQueueGenericSend_assertion' into 'master'
...
component/bt: Fix xQueueGenericSend assertion
See merge request idf/esp-idf!2130
2018-03-30 14:02:24 +08:00
zhiweijian
109a93bf8c
Component/bt: fix get PID key error
2018-03-30 11:31:15 +08:00
zhiweijian
e6262375a3
Component/bt: fix connect fail when remote addr type is random
2018-03-29 20:55:31 +08:00
Roland Dobai
c55987a3e9
vfs: consider O_NONBLOCK flag while opening UART FD
2018-03-29 14:20:14 +02:00
zhiweijian
aa236809ad
Component/bt: fix no set rand add callback event
2018-03-29 20:17:14 +08:00
zhiweijian
8a78860b16
Component/bt: add esp_ble_gap_get_local_used_addr() API
2018-03-29 19:47:08 +08:00
He Yin Ling
48e3e3efca
test: change SSC binary path
2018-03-29 19:40:07 +08:00
Tian Zhong Xing
49a236dae0
fix CI failed when flash chip size if 2MBytes
2018-03-29 17:48:59 +08:00
zhiweijian
f5d581421e
Component/bt: fix service change event params error
2018-03-29 16:11:16 +08:00
Alex Lisitsyn
cffab50ac3
esp32: Deactivate wakeup trigger after first wakeup
...
The files updated according to code review discussions.
In the sleep_modes.c removed immidiate disable of ULP mode and leave just trigger deactivation.
The esp_sleep.h is updated to have the same defines for source as esp_sleep_wakeup_cause_t.
Updated documentation in sleep_modes.rst file to include cross references and address esp_sleep_wakeup_cause_t type.
The get_time_ms() is updated to explicitly use fabs(dt) instead of abs(dt) in test_sleep.c.
Some other minor changes in test_sleep.c unit test.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-29 11:24:59 +05:00
kooho
8e1f930582
driver(gpio): Modified the GPIO_CHECK's return value when ISR service already installed
2018-03-29 09:58:31 +08:00
Angus Gratton
da27816314
Merge branch 'feat/add_efuse_cpu_freq_rating' into 'master'
...
efuse/add cpu freq rating
See merge request idf/esp-idf!1994
2018-03-29 05:59:52 +08:00
Angus Gratton
a17d12d94f
Merge branch 'bugfix/make_error_codes_unique' into 'master'
...
Make error codes globally unique
See merge request idf/esp-idf!1935
2018-03-29 05:57:04 +08:00
Jiang Jiang Jian
6b8ca31bc9
Merge branch 'bugfix/btdm_slow_interrupt_reaction' into 'master'
...
component/bt : fix interrupt slow reaction cause assert(interrupt wdt)
See merge request idf/esp-idf!2143
2018-03-28 21:49:19 +08:00
baohongde
e1b419fb6d
component/bt: Fix xQueueGenericSend assertion
2018-03-28 20:25:57 +08:00
Ivan Grokhotkov
1a157279e0
Merge branch 'doc/adc1_channel_config' into 'master'
...
adc: Add doc details about configure not needed before each read
See merge request idf/esp-idf!2132
2018-03-28 19:11:44 +08:00
Michael (Xiao Xufeng)
cef8baf424
bugfix(rtc): make sure peripherals (DAC, HALL) are turned off before conversion.
...
refactor structure of ``rtc_module.c`` to make it more clearly.
Closes https://github.com/espressif/esp-idf/issues/1517
2018-03-28 17:10:01 +08:00
Tian Hao
3843bff97b
component/bt : fix interrupt slow reaction cause assert(interrupt wdt)
...
Some application lock interrupt(portENTER_CRITICAL) too long time,
it will cause bluetooth cannot react interrupt in time, then t will
cause some assert, assert info following:
1. ld_acl.c 1900
2. ld_fm.c 340
3. other assert reference to this.
2018-03-28 12:04:16 +08:00
Angus Gratton
4507b3fde6
adc: Add doc details about configure not needed before each read
2018-03-28 11:52:41 +11:00
Tian Hao
4b1ef083ee
component/bt : add bluetooth controller library compile version
2018-03-27 16:35:00 +08:00
Ivan Grokhotkov
2935e958fc
Merge branch 'bugfix/adc2_cct' into 'master'
...
fix(adc2): fix cct and xpd configurations to improve precision of ADCs
See merge request idf/esp-idf!2020
2018-03-27 16:23:43 +08:00
Jiang Jiang Jian
3eb43c9ece
Merge branch 'bugfix/no_link_key_notify_on_repairing' into 'master'
...
component/bt: bugfix for no link key notification event on repairing
See merge request idf/esp-idf!2118
2018-03-27 14:51:25 +08:00
Roland Dobai
7c4b3d50f8
Make error codes globally unique
2018-03-27 08:12:54 +02:00
Ivan Grokhotkov
892f3907fa
Merge branch 'bugfix/i2c_ack_error_bug' into 'master'
...
driver(i2c): Fixed i2c interrupt wdt timeout bug
See merge request idf/esp-idf!2049
2018-03-27 12:29:23 +08:00
Ivan Grokhotkov
b007b89b84
soc/io_mux: make CLK_OUT fields compatible with REG_SET/GET_FIELD
2018-03-27 12:10:18 +08:00
Ivan Grokhotkov
2e7613b656
Merge branch 'feature/use_esp_err_to_name' into 'master'
...
Use esp_err_to_name in examples & optionally disable it in Kconfig
See merge request idf/esp-idf!2013
2018-03-27 11:50:21 +08:00
Ivan Grokhotkov
9d69d11067
Merge branch 'feature/spi_dummy_bit' into 'master'
...
feat(spi_master): allow output high speed data when dummy bits are not used.
See merge request idf/esp-idf!2113
2018-03-27 11:28:58 +08:00
wangmengyang
fd8c484b33
component/bt: bugfix for no link key notification event on repairing for initiating side of simple pairing
...
In response to: https://github.com/espressif/esp-idf/issues/1275
2018-03-27 11:22:47 +08:00
Ivan Grokhotkov
db44a719fb
pm: add unit test for configuration changes
2018-03-27 11:20:55 +08:00
Ivan Grokhotkov
94014a9a51
pm: handle the case of 2MHz frequency
...
It is not possible to generate 1 MHz REF_TICK from 2 MHz APB clock
(this is a limitation of REF_TICK divider circuit). Since switching
REF_TICK frequency is something we would like to avoid (to maintain
UART output even with DFS), 2 MHz frequency has been marked as
unsupported.
2018-03-27 11:20:55 +08:00
Ivan Grokhotkov
839c665c92
pm: fix initialisation only done in dual core mode
...
Introduced in 9377d4ac
. Accidentally put the new code block under an
2018-03-27 11:20:54 +08:00
Ivan Grokhotkov
fe5d294f6c
pm: handle changes to the PM_MODE_ACTIVE frequency
...
The issue would manifest itself in cases when switching from PM
configuration like {active=160MHz, idle=80MHz} to {active=80MHz,
idle=80Mhz}. After the configuration was changed, PM logic would
think that current frequency was 80MHz and would not do any further
switching. In fact, frequency was still 160MHz.
2018-03-27 11:20:54 +08:00
Ivan Grokhotkov
1517aeda6c
pm: fix calculation of maximum of two frequencies
...
The old code calculated MAX() of two enum values, but CPU frequency
enum values are not ordered (2MHz goes after 240MHz). This caused
incorrect configuration to be set.
2018-03-27 11:20:53 +08:00
Ivan Grokhotkov
43b5fdd5c9
soc/rtc: fix switching between 80/160 and 240MHz
...
Previous code contained a check for PLL frequency to be 240MHz, while
in fact 240MHz was a CPU frequency; corresponding PLL frequency is
480MHz. Fixed the comparison and replaced integer MHz values with an
enum.
2018-03-27 10:55:59 +08:00
Michael (Xiao Xufeng)
7563510758
feat(spi_master): allow output high speed data when dummy bits are not used.
2018-03-26 21:24:32 +08:00
michael
28e832c37e
fix(adc2): fix cct and xpd configurations to improve precision of ADCs
2018-03-26 12:02:26 +00:00
kooho
37db055cff
driver(i2c): Fixed ack_err interrupt can't exit bug.
2018-03-26 16:31:17 +08:00
Ivan Grokhotkov
4667d9c804
Merge branch 'bugfix/rtc_xtal_unit_test' into 'master'
...
Fix 32k RTC XTAL unit test failures
See merge request idf/esp-idf!2124
2018-03-26 15:41:25 +08:00
Ivan Grokhotkov
af3ffec446
Merge branch 'feat/add_FatFs_encoding_options_in_menuconfig' into 'master'
...
fatfs/add menuconfig options for different encodings
See merge request idf/esp-idf!2112
2018-03-26 14:14:48 +08:00
Tian Zhong Xing
fa68774344
spi_flash:
...
1. add test code for new api
2. resolve some comments
2018-03-26 10:24:42 +08:00
Ivan Grokhotkov
48d55e22e7
soc/rtc: run 32k XTAL startup test only in PSRAM config
...
PSRAM tests run on ESP-WROVER-KIT boards, which have the 32k XTAL
installed.
2018-03-26 10:14:13 +08:00
Deng Xin
6c3bdd45cf
feature/support WPS enrollee in APSTA mode
...
Add the feature WPS enrollee in APSTA mode
close github issue: https://github.com/espressif/esp-idf/issues/1608
2018-03-23 15:41:59 +08:00
Darian Leung
99b8ae34c9
fatfs/add menuconfig options for different encodings
...
This commit adds character encoding configurations in for the fatfs component.
The FF_LFN_UNICODE definition in ffconf.h can now be changed to accept UTF-8 or
UTF-16 encoded filernames. Test cases using UTF-8 encoded file paths and names in
FatFs have also been added.
Closes #1183
2018-03-23 14:06:56 +08:00
Ivan Grokhotkov
27bf18ad6b
Merge branch 'test/wifi_stop_deinit' into 'master'
...
test(wifi): add test for wifi stop and deinit.
See merge request idf/esp-idf!2022
2018-03-23 13:45:20 +08:00
Zhang Zhao Xiang
f48ecb8613
Add a new i2s feature to expand the original i2s width
2018-03-22 18:52:55 +08:00
Jiang Jiang Jian
0a83733d2d
Merge branch 'bugfix/btdm_spp_handle_error' into 'master'
...
component/bt: Fix bug of SPP handle error
See merge request idf/esp-idf!2026
2018-03-22 10:08:47 +08:00
Jiang Jiang Jian
ca3e4ef5ca
Merge branch 'bugfix/btdm_fix_error_when_close_SMP_for_master' into 'master'
...
Component/bt: fix build error when close SMP
See merge request idf/esp-idf!2110
2018-03-22 10:07:57 +08:00
Ivan Grokhotkov
887b6e2925
Merge branch 'bugfix/rtc_clk_32k_bootstrap' into 'master'
...
bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC
See merge request idf/esp-idf!2085
2018-03-21 18:38:49 +08:00
Konstantin Kondrashov
f7df532ec0
bugfix/rtc_clk_32k_bootstrap: Fix starting 32k RTC
...
1. External 32kHz crystal is started for too long or it may not start at all. It is often observed at the first start.
2. At the first start, it is possible that the crystal did not start. And the recorded period was recorded as 0. Which led to a division error by zero during the transition to the deep sleep mode (Maybe somewhere else).
3. Added a unit test to test a new method of oscillation an external crystal.
4. Added a new method of oscillating of an external crystal. The legs of the crystal are fed with a 32 kHz frequency.
The new method eliminates these errors.
Added unit test: `\esp-idf\components\soc\esp32\test\test_rtc_clk.c`: `make TEST_COMPONENTS=soc`
- 8 Test starting external RTC crystal. Will pass.
`Bootstrap cycles for external 32kHz crystal` - is specified in the file Kconfig by default 100.
QA tested a new method of oscillation the crystal on 25 boards. The supply of square waves on the crystal showed a 100% result in contrast to the previous method of launching the crystal. After the tests, the old method was deleted.
Closes TW19143
2018-03-21 13:27:56 +05:00
zhiweijian
064c274bd6
Component/bt: fix build error when close SMP
2018-03-21 15:21:30 +08:00
Jiang Jiang Jian
8478823039
Merge branch 'bugfix/dfs_rtc_fixes' into 'master'
...
DFS related fixes
See merge request idf/esp-idf!2102
2018-03-21 12:02:48 +08:00
Jiang Jiang Jian
aa3c77ec60
Merge branch 'bugfix/wifi_lwip_set_ip_post_wrong_event' into 'master'
...
Fix the bug that incorrect event is posted when setting static ip of softap and ethernet
See merge request idf/esp-idf!2095
2018-03-21 11:45:24 +08:00
XiaXiaotian
0470f28055
Fix the bug that incorrect event is posted when setting static ip of softap and ethernet
2018-03-21 11:04:22 +08:00
Ivan Grokhotkov
5bc724d3f9
Merge branch 'feature/configure_pthread_behaviour' into 'master'
...
pthread: Allow configuration of priority and stacksize
See merge request idf/esp-idf!1978
2018-03-21 00:41:20 +08:00
Kedar Sovani
7a0cab0a5b
pthread: Allow configuration of priority and stacksize
...
The expected usage is:
esp_pthread_set_cfg(cfg);
pthread_create()
If the inherit flag is set, then all subsequent threads forked by this
thread will also inherit this configuration. This avoids having to
change/prefix this for each and every pthread_create() call.
2018-03-20 18:06:32 +05:30
Jiang Jiang Jian
c45170cb66
Merge branch 'bugfix/btdm_fix_reconnect_fail_in_smp_v30' into 'release/v3.0'
...
Component/bt: fix reconnect fail in smp for v3.0
See merge request idf/esp-idf!2075
(cherry picked from commit 7f2a9f0359
)
d0e55335
Component/bt: fix reconnect fail in smp
2018-03-20 18:49:22 +08:00
Jiang Jiang Jian
0f6f762be0
Merge branch 'bugfix/btdm_add_char_descr_uuid_error' into 'master'
...
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
See merge request idf/esp-idf!2065
2018-03-20 18:43:42 +08:00
Ivan Grokhotkov
1618dbc9a5
soc/rtc: wait for frequency switch to complete
...
The fast path of CPU frequency switch function, used in DFS, was not
waiting for the frequency switch to complete when switching from XTAL
to PLL. This resulted in incorrect reads from peripherals on APB,
where two consecutive reads could return the same value. For example,
in esp_timer, read of FRC_COUNT_REG would return same value as the
preceding read of FRC_ALARM_REG, causing time to jump by the value of
FRC_ALARM_REG / apb_freq_mhz.
2018-03-20 18:27:32 +08:00
Jiang Jiang Jian
8ab17d7ccf
Merge branch 'bugfix/btdm_avrc_remote_bda_error_when_disconnect' into 'master'
...
component/bt: Fix bug: AVRC remote_bda error when disconnect
See merge request idf/esp-idf!2093
2018-03-20 18:24:01 +08:00
Ivan Grokhotkov
7167ad45ab
pm: improve debug output from esp_pm_dump_locks
...
- separate mode stats from lock stats by an extra comment line
- add CPU frequency column to the mode stats
- don’t print a row for light sleep if light sleep is not enabled
2018-03-20 18:08:19 +08:00
Ivan Grokhotkov
9377d4acd4
pm: fix incorrect configuration at startup
...
s_cpu_freq_by_mode array was statically initialised with 80MHz CPU
frequency in CPU_MAX and APB_MAX modes, but sdkconfig setting for the
CPU frequency could have been different. For the case of 240MHz CPU
frequency, this would cause a frequency switch between 240MHz and
80MHz to happen, even though such switch is not supported in the fast
path switching functions used by the DFS implementation.
This fixes the issue by moving initialisation into esp_pm_impl_init,
which is called at startup before the first mode switch can happen.
Fixes https://github.com/espressif/esp-idf/issues/1729 .
2018-03-20 18:06:58 +08:00
Liu Zhi Fu
21c0b59315
esp32: optimize WiFi TX
...
1. Optimize TX retry counter
2. Optimize TX timeout
2018-03-20 15:24:32 +08:00
Alex Lisitsyn
1e9bb5bb7c
esp32: Deactivate wakeup trigger after first wakeup
...
The files updated according to code review discussions.
In the sleep_modes.c removed immidiate disable of ULP mode and leave just trigger deactivation.
The esp_sleep.h is updated to have the same defines for source as esp_sleep_wakeup_cause_t.
Updated documentation in sleep_modes.rst file to include cross references.
Some minor changes in test_sleep.c unit test.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-20 12:23:32 +05:00
Jiang Jiang Jian
45eb556ddf
Merge branch 'bugfix/wpa2_assert_when_use_sha256_signature' into 'master'
...
bugfix of wpa2 assert when use sha256 do signature
See merge request idf/esp-idf!2089
2018-03-20 15:19:55 +08:00
Jiang Jiang Jian
f2132238b2
Merge branch 'bugfix/tw19041_esp_wifi_stop_not_return' into 'master'
...
esp32: Fix esp_wifi_stop never returns issue
See merge request idf/esp-idf!2059
2018-03-20 15:18:09 +08:00
baohongde
2531975ca0
component/bt: Fix bug: AVRC remote_bda error when disconnect
2018-03-20 15:12:36 +08:00
Deng Xin
bc97b0f380
bugfix of wpa2 assert when use sha256 do signature
...
The order of wpa2_crypto_funcs_t structure mismatch between IDF and wifi libray
close github issue https://github.com/espressif/esp-idf/issues/1297
2018-03-20 11:08:20 +08:00
Ivan Grokhotkov
7e2028d598
Merge branch 'bugfix/gpio_timer_doc_fixes' into 'master'
...
Minor fixes of GPIO and timer group driver docs
See merge request idf/esp-idf!2081
2018-03-20 10:49:36 +08:00
Ivan Grokhotkov
e56897b7a4
Merge branch 'bugfix/docs_updates_from_github' into 'master'
...
Bugfix/docs updates from github
See merge request idf/esp-idf!2057
2018-03-20 09:50:43 +08:00
Angus Gratton
d3b8f1f927
heap tracing: Fix tracing of newlib internal allocations
...
Newlib internal allocations (from newlib ROM code) were not being included in the heap trace.
Ref https://github.com/espressif/esp-idf/issues/1652
2018-03-20 12:03:46 +11:00
zhiweijian
7c777f40aa
Component/bt: add some comment
2018-03-19 21:19:21 +08:00
Liu Zhi Fu
078cd81f10
esp32: Fix wifi stop never return issue
...
Fix esp_wifi_stop() never return issue
2018-03-19 21:16:29 +08:00
Jiang Jiang Jian
5d4c4b19d4
Merge branch 'bugfix/tw19020_force_1.9V_when_flash_is_80M' into 'master'
...
bootloader: force SDIO 1.9V if flash is 80M
See merge request idf/esp-idf!2083
2018-03-19 18:50:36 +08:00
Jiang Jiang Jian
259220f33d
Merge branch 'bugfix/btdm_spp_invalid_handle_path' into 'master'
...
component/bt: Fix bug of SPP invalid handle path
See merge request idf/esp-idf!2056
2018-03-19 18:40:47 +08:00
Ivan Grokhotkov
e784df60cc
Merge branch 'bugfix/fix_param_name_comments_bt' into 'master'
...
components/bt: Fix parameter name and print statements
See merge request idf/esp-idf!2032
2018-03-19 16:59:09 +08:00
Ivan Grokhotkov
85c9164f50
Merge branch 'bugfix/fix_bt_typos' into 'master'
...
components/bt examples/bluetooth: Fix typographical errors
See merge request idf/esp-idf!1950
2018-03-19 16:58:55 +08:00
Liu Zhi Fu
072b353b45
bootloader: force SDIO 1.9V if flash is 80M
...
If the SPI flash frequency is 80M, the voltage of SDIO is 1.9V,
otherwise, it can configured to 1.8V or 1.9V via menuconfig.
2018-03-19 16:39:54 +08:00
Ivan Grokhotkov
b9a8912659
Merge branch 'bugfix/spi_master_const_dev_config_t' into 'master'
...
spi master: use constant dev_config parameter in spi_bus_add_device
See merge request idf/esp-idf!2082
2018-03-19 16:31:19 +08:00
michael
c2a68ae0d3
test(wifi): add test for wifi stop and deinit.
2018-03-19 08:23:52 +00:00
Jiang Jiang Jian
d6946598f6
Merge branch 'bugfix/btdm_fix_gattc_open_API' into 'master'
...
component/bt: fix gattc open api
See merge request idf/esp-idf!2004
2018-03-19 14:26:41 +08:00
Jonathan Kaufmann
a99d4d5a7f
Modified spi_bus_add_device so that it takes a constant *dev_config parameter.
...
Merges https://github.com/espressif/esp-idf/pull/1690
2018-03-19 12:17:45 +08:00
Stefan Tauner
38daa1e716
docs: fix description of timer_get_alarm_value()
...
Replace c&p text with an actual description.
Merges https://github.com/espressif/esp-idf/pull/1740
2018-03-19 11:56:57 +08:00
Stefan Tauner
86a1d579ff
docs: add warning to gpio_get_level()
...
On most microcontrollers I have worked with one can retrieve the
current state of output GPIO pins. On ESP32 this is not the case
if the pad is not explictly configured to route this information into
the port by configuring it as input or i/o.
Thus add a warning to the API documentation of gpio_get_level().
Merges https://github.com/espressif/esp-idf/pull/1740
2018-03-19 11:56:57 +08:00
baohongde
1c48b4f01e
component/bt: Fix bug of SPP invalid handle path
2018-03-19 02:22:45 +00:00
baohongde
b9ea6a2067
component/bt: Fix bug of a2dp source cleanup bug when connected
2018-03-19 02:21:12 +00:00
Angus Gratton
9a6fcab527
Merge branch 'test/spi_speed_fix' into 'master'
...
test(spi_master): test spi master speed performance by median value.
See merge request idf/esp-idf!2048
2018-03-19 06:16:38 +08:00
Alex Lisitsyn
ce09cfd99b
esp32: Deactivate wakeup trigger after first wakeup
...
Added function esp_sleep_disable_wakeup_source() to deactivate wakeup trigger for selected source.
Updated documentation for this function in sleep_modes.rst file.
Updated unit test to check this functionality for light sleep.
The test_sleep.c unit test is updated to add reliability for unit testing.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-16 18:49:24 +05:00
Alex Lisitsyn
2d90da0817
esp32: Deactivate wakeup trigger after first wakeup
...
The timer wakeup function once activated cannot be disabled later using existing api. If user wants to use different wakeup sources after first sleep but it does not work. This change disables timer wakeup trigger in configuration that will be set into appropriate RTC registers in esp_light_sleep_start() function.
Added function esp_sleep_disable_wakeup_source() to deactivate wakeup trigger for selected source.
Updated documentation for this function in sleep_modes.rst file to pass make html.
Updated unit test to check this functionality for light sleep.
The test_sleep.c unit test is updated to add reliability for auto unit testing.
(TW#18952)
Closes https://github.com/espressif/esp-idf/issues/1677
2018-03-16 18:22:02 +05:00
zwj
d1405183a5
component/bt: fix gattc open api
2018-03-16 19:17:55 +08:00
Michael (Xiao Xufeng)
15be0829fa
test(spi_master): test spi master speed performance by median value.
...
also increase the boundary of SPI limit by a little.
2018-03-16 16:37:19 +08:00
Darian Leung
f4b03d553c
bugfix/Fix BLK3_RESERVED_FLAG register and other minor bugs
...
This commit fixes an incorrect register definition for BLK3_RESERVED_FLAG.
Other bugs include a missing conditional check, and updated comments
on modifying eFuse checking behavior.
2018-03-16 15:51:36 +08:00
Tian Zhong Xing
7555031553
add api get valid mmu table pages number
2018-03-16 10:40:55 +08:00
Jiang Jiang Jian
7e268adaf5
Merge branch 'bugfix/btdm_mem_leak_of_bt_dynamic_memory' into 'master'
...
component/bt: Fix bug of bt dynamic memory
See merge request idf/esp-idf!2053
2018-03-15 17:01:20 +08:00
Jiang Jiang Jian
dc66940f82
Merge branch 'bugfix/btdm_a2dp_disc_rsn_error_when_as_master' into 'master'
...
component/bt: Fix bug: a2dp disc_rsn error when as master
See merge request idf/esp-idf!1995
2018-03-15 15:28:11 +08:00
Jiang Jiang Jian
488268d58b
Merge branch 'bugfix/btdm_a2dp_sink_cleanup_bug' into 'master'
...
component/bt: Fix bug of a2dp sink cleanup bug when connected
See merge request idf/esp-idf!2041
2018-03-15 15:04:39 +08:00
baohongde
3ee5b49575
component/bt: Fix bug of bt dynamic memory
2018-03-15 14:36:49 +08:00
Yulong
c802ea842d
component/bt: Change the char_uuid to descr_uuid in the add descriptor callback params.
2018-03-15 02:29:11 -04:00
Jiang Jiang Jian
047870fd80
Merge branch 'bugfix/btdm_string_to_bdaddr_error_when_opening_nano' into 'master'
...
component/bt: Fix bug: string_to_bdaddr() error when opening nano
See merge request idf/esp-idf!1981
2018-03-15 14:14:47 +08:00
Liu Zhi Fu
8f61716647
esp32: Fix esp_wifi_stop never returns issue
...
esp_wifi_stop may never return when run esp_wifi_start/stop repeatly.
2018-03-15 11:25:13 +08:00
XuanZe
5a31c1e5b1
fix : cpp:type. Merges https://github.com/espressif/esp-idf/pull/1700
2018-03-14 22:04:47 +01:00
baohongde
c0eadc514f
component/bt: Fix bug of a2dp sink cleanup bug when connected
2018-03-14 06:27:26 +00:00
Ivan Grokhotkov
a58a2b6f6d
Merge branch 'bugfix/wl_encryption_size' into 'master'
...
Bugfix/wl encryption size
See merge request idf/esp-idf!2037
2018-03-14 14:12:29 +08:00
Ivan Grokhotkov
36098f3cac
Merge branch 'bugfix/make_MEMMAP_SMP_config_dependent' into 'master'
...
bugfix/remove MEMMAP_SMP config
See merge request idf/esp-idf!1988
2018-03-14 13:02:55 +08:00
Angus Gratton
bd09a83062
Merge branch 'feature/esptool_v23' into 'master'
...
Update esptool to v2.3.1
See merge request idf/esp-idf!1989
2018-03-14 08:11:59 +08:00
Roland Dobai
f891eac827
ESP32: Optionally disable lookup-tables for esp_err_to_name
2018-03-13 14:26:54 +01:00
Jiang Jiang Jian
12b4e416e6
Merge branch 'bugfix/wpa2_assert_when_suddenly_disconnect' into 'master'
...
Bugfix of wpa2 task assert when suddenly disconnect
See merge request idf/esp-idf!2043
2018-03-13 20:59:39 +08:00
Ivan Grokhotkov
7a1e3265fe
Merge branch 'bugfix/docs_small_corrections' into 'master'
...
Bugfix/docs small corrections
See merge request idf/esp-idf!2025
2018-03-13 17:43:00 +08:00
Xu Chun Guang
973913b151
feat: Adjust log level about UART
...
There are too many log when UART baud is around 2Mbps if not use hard flow control.
2018-03-13 16:01:37 +08:00
Deng Xin
768d6e09ab
Bugfix of wpa2 task assert when suddenly disconnect
2018-03-12 21:41:24 +08:00
Dmitry
5cbb1943ac
Structure size alligned by compiler.
2018-03-12 15:34:16 +03:00
Dmitry
743969f333
Size of structure made latform independent.
2018-03-12 08:34:23 +03:00
Dmitry
560753cfb1
Size updated.
2018-03-12 07:49:50 +03:00
Dmitry
09704fe7ca
Size of structure ware updated.
2018-03-12 07:30:35 +03:00
Hrishikesh Dhayagude
9831eca4b2
components/bt: Fix parameter name and print statement
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-03-09 13:53:27 +05:30
Dmitry
816d63211f
Structure size updated to the 16 bytes * N
2018-03-09 09:17:32 +03:00
Dmitry
7f0b00ef9b
Compiler dependency included for tests.
2018-03-09 08:40:24 +03:00
Dmitry
97539334a9
Remove error from tests.
2018-03-09 07:58:01 +03:00
baohongde
d082316507
component/bt: Fix bug of SPP handle error
2018-03-09 11:46:30 +08:00
Jiang Jiang Jian
77eae33a7e
Merge branch 'bugfix/esp_timer_overflow' into 'master'
...
component/esp32: fix esp_timer bug
See merge request idf/esp-idf!1877
2018-03-09 10:05:22 +08:00
Jiang Jiang Jian
1d49c0953e
Merge branch 'bugfix/close_socket_when_tcp_connecting' into 'master'
...
Close socket request will abort tcp write/connect
See merge request idf/esp-idf!1687
2018-03-08 20:34:40 +08:00
Jiang Jiang Jian
a54b413367
Merge branch 'bugfix/btdm_clear_start_stop_adv_callback_when_complete' into 'master'
...
Component/bt: clear start/stop adv callback when complete
See merge request idf/esp-idf!1938
2018-03-08 20:22:10 +08:00
Jiang Jiang Jian
702b46108c
Merge branch 'bugfix/btdm_fix_set_error_channel_map_in_adv_params' into 'master'
...
Component/bt: fix set error params and return callback when start adv
See merge request idf/esp-idf!1943
2018-03-08 20:18:30 +08:00
Jiang Jiang Jian
d3d3a6fc39
Merge branch 'feature/btdm_blufi_add_custom_data_cmd' into 'master'
...
Component/bt: blufi add custom data cmd
See merge request idf/esp-idf!2017
2018-03-08 20:15:27 +08:00
Jiang Jiang Jian
db690e3f85
Merge branch 'bugfix/btdm_add_param_check_in_gap_set_prefer_conn_params' into 'master'
...
Component/bt: add_params_check_in_prefer_conn_params()
See merge request idf/esp-idf!1944
2018-03-08 20:08:33 +08:00
Jiang Jiang Jian
bcfbb6154c
Merge branch 'bugfix/btdm_fix_get_attr_value_error_after_prepare_write' into 'master'
...
Component/bt: fix get attr value error after prepare write
See merge request idf/esp-idf!1976
2018-03-08 20:06:47 +08:00
zhiweijian
b1d8ea84c3
Component/bt: blufi add custom data cmd
2018-03-08 17:38:44 +08:00
XuanZe
573876700b
fix : esp_partition_find missing `
`
...
Signed-off-by: krzychb <krzychb@gazeta.pl>
2018-03-08 09:39:20 +01:00
Darian Leung
8b1277c55f
efuse/add cpu freq rating
...
This commit adds support for CPU max freqeuency rating
bits in CPU. Bootloader will now print an error if attempting
to 160MHz rated ESP32 at 240MHz.
EFUSE_CHIP_VER_RESERVE has been replaced by the
frequency rating bits. Dependancies on EFUSE_CHIP_VER_RESERVE
have been changed to use EFUSE_CHIP_VER_PKG
2018-03-07 12:16:51 +08:00
Jiang Jiang Jian
983e9f854d
Merge branch 'bugfix/btdm_error_log' into 'master'
...
component/bt: remove some error logs which are not error
See merge request idf/esp-idf!1826
2018-03-06 19:37:16 +08:00
Dmitry
7b287c25b1
Bugfix for write size. The write size for encryption have to be rounded to 16 bytes.
...
A wl_config structure size now ounded to 16.
Flash Emulator updated to work with defined minimum size.
Tests are updated.
2018-03-06 10:26:21 +03:00
baohongde
3824f0eb8f
component/bt: Fix spp lock error
2018-03-06 14:57:08 +08:00
baohongde
f1d3f689e8
component/bt: Fix bug: a2dp disc_rsn error when as master
2018-03-06 14:11:28 +08:00
baohongde
569b9d592e
component/bt: remove some error logs which are not error
2018-03-05 19:22:21 +08:00
Jiang Jiang Jian
17e8d49f26
Merge branch 'bugfix/btdm_update_pktLen_have_no_callback' into 'master'
...
component/bt: Fix bug:update pktlen have no callback
See merge request idf/esp-idf!1913
2018-03-05 16:14:48 +08:00
Jiang Jiang Jian
275fa2cc36
Merge branch 'bugfix/btdm_add_lock_for_spp_without_VFS' into 'master'
...
component/bt: Add lock for SPP slot
See merge request idf/esp-idf!2002
2018-03-05 16:06:16 +08:00
baohongde
c4cdb66947
component/bt: Add lock for SPP slot
2018-03-02 18:11:47 +08:00
zhiweijian
1e6f52fb6f
Component/bt: fix build ble server error with BT_BLE_DYNAMIC_ENV_MEMORY option
2018-02-28 16:44:05 +08:00
Tian Hao
127d213b29
component/esp32: fix esp_timer bug
...
1. fix the bug that cause esp_timer_get_time is not accuracy(the max margin may be 106s).
2. fix the bug that causes esp timer come too early.
2018-02-28 10:49:45 +08:00
Angus Gratton
bd306bb519
esptool: Update to v2.3.1
2018-02-28 10:17:14 +11:00
Darian Leung
33aee51727
bugfix/remove MEMMAP_SMP config
...
This commit removes the MEMMAP_SMP config option.
Dependencies on this config will now depend on !FREERTOS_UNICORE
2018-02-27 17:56:44 +08:00
Ivan Grokhotkov
d1559732b0
Merge branch 'feature/ignore_no_psram' into 'master'
...
Add option to continue running (with less ram) if psram is enabled but not detected
See merge request idf/esp-idf!1911
2018-02-26 20:33:28 +08:00
baohongde
54320d5f7b
component/bt: Fix bug: string_to_bdaddr() error when opening nano
2018-02-26 15:09:03 +08:00
Angus Gratton
dbaea72062
Merge branch 'bugfix/revisit_pthread_once' into 'master'
...
pthread: fix pthread_once behavior, if mux (handle) is in external PSRAM
See merge request idf/esp-idf!1972
2018-02-26 08:52:06 +08:00
Angus Gratton
aedb807a02
Merge branch 'bugfix/esp_ping_ms_pr1638' into 'master'
...
esp_ping - Document that timeout units are in milliseconds
See merge request idf/esp-idf!1968
2018-02-26 08:00:44 +08:00
Ivan Grokhotkov
04ad0f79c0
Merge branch 'adc_calibration_update' into 'master'
...
ADC Calibraiton - Support new new calibration methods and eFuse functionality
See merge request idf/esp-idf!1846
2018-02-26 06:15:06 +08:00
Ivan Grokhotkov
c8ba6cf156
Merge branch 'feature/rtc_gpio_isolate' into 'master'
...
Add rtc_gpio_isolate function, use it in deep sleep examples
See merge request idf/esp-idf!1936
2018-02-26 06:09:08 +08:00
Ivan Grokhotkov
a9ae4e2696
Merge branch 'bugfix/config_minor_missing_deps' into 'master'
...
Kconfig: esp32/freertos: add some missing dependencies
See merge request idf/esp-idf!1966
2018-02-26 05:57:27 +08:00
zhiweijian
6a9c99a414
Component/bt: fix get attr value error after prepare write
2018-02-24 16:39:00 +08:00
Jiang Jiang Jian
165e3edd49
Merge branch 'bugfix/btdm_mem_leak_of_bt' into 'master'
...
component/bt: Fix mem leak of bt
See merge request idf/esp-idf!1924
2018-02-24 10:25:13 +08:00
Mahavir Jain
48e8171114
pthread: fix pthread_once behavior, if mux (handle) is in external PSRAM
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-02-23 14:51:05 +05:30
Angus Gratton
2abba13172
Merge branch 'feature/heap_task_tracking_pr1498' into 'master'
...
heap: Add task tracking features (PR 1498)
See merge request idf/esp-idf!1960
2018-02-23 06:12:17 +08:00
Angus Gratton
ab82ce3da4
Merge branch 'bugfix/partition_md5_backward_compatibility' into 'master'
...
partition_table: Optionally disable the MD5 checksum in partition tables
See merge request idf/esp-idf!1958
2018-02-23 06:11:44 +08:00
Angus Gratton
da751cc653
Merge branch 'bugfix/fd_zero' into 'master'
...
FD_ZERO: Fix a compilation warning
See merge request idf/esp-idf!1967
2018-02-23 06:10:40 +08:00
Darian Leung
0c9e2c0fba
esp_adc_cal/Remove lookup table
...
This commit removes the lookup table mode due to inferior performance when compared
to linear mode under attenuation 0, 1 and 2. However small portions of the lookup table
are kept for the higher voltages of atten 3 (above ADC reading 2880). That voltage range
in atten 3 has non linear characteristics making the LUT performan better than linear mode.
2018-02-22 20:01:41 +08:00
Piyush Shah
6dbb040890
FD_ZERO: Fix a compilation warning
...
Definition of memset is not found if string.h is not included anywhere
Signed-off-by: Piyush Shah <piyush@espressif.com>
2018-02-22 14:10:04 +05:30
Roland Dobai
4017cf3516
partition_table: Optionally disable the MD5 checksum in partition tables
2018-02-22 07:46:41 +01:00
Angus Gratton
63ddae5087
Merge branch 'bugfix/i2s_driver' into 'master'
...
i2s: add support fixed_mclk configuration
See merge request idf/esp-idf!1600
2018-02-22 12:03:26 +08:00
Angus Gratton
e99b6ed79c
Merge branch 'bugfix/doc_spi_flash' into 'master'
...
spi_flash: Update docs
See merge request idf/esp-idf!1961
2018-02-22 11:09:17 +08:00
Tuan PM
7cda34c626
i2s: add support fixed_mclk configuration
2018-02-22 09:00:23 +07:00
Angus Gratton
30637c8885
Merge branch 'bugfix/docs_esp_sleep_wakeup_cause_t' into 'master'
...
Fix esp_sleep_wakeup_cause_t docs. Merges https://github.com/espressif/esp-idf/pull/1634
See merge request idf/esp-idf!1965
2018-02-22 07:31:03 +08:00
Angus Gratton
b52b4ea2cc
spi_flash: Update docs
2018-02-22 10:28:26 +11:00
Angus Gratton
68dc422cb5
Merge branch 'bugfix/apptrace_down_buf_handling' into 'master'
...
esp32: Fixes apptrace down buffer management
See merge request idf/esp-idf!1953
2018-02-22 07:27:17 +08:00
Alexey Gerenkov
4e544f82bb
esp32: Fixes apptrace down buffer management
2018-02-21 10:13:25 +03:00
Mahavir Jain
bf31afd2c3
Kconfig: esp32/freertos: add some missing dependencies
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-02-21 12:31:10 +05:30
Daniël van Eeden
bd0b3a7d6b
Fix esp_sleep_wakeup_cause_t docs. Merges https://github.com/espressif/esp-idf/pull/1634
...
value and description didn't match
2018-02-20 20:22:14 +01:00
Ivan Grokhotkov
3ede9f011b
Merge branch 'feature/openssl_cacert' into 'master'
...
OpenSSL API addition
See merge request idf/esp-idf!1932
2018-02-21 02:58:00 +08:00
Jitin George
f0ebf613f4
OpenSSL API addition
2018-02-20 12:32:12 +05:30
Angus Gratton
6cfc7af049
Merge branch 'bugfix/i2s_intr_alloc_flags_pr1589' into 'master'
...
i2s: fix type mismatch of intr_alloc_flags
See merge request idf/esp-idf!1954
2018-02-20 07:33:25 +08:00
Stephen Casner
bc2879a956
heap: Add task tracking option for heap usage monitoring
...
Add back a feature that was available in the old heap implementation
in release/v2.1 and earlier: keep track of which task allocates each
block from the heap. The task handle is conditionally added as
another word in the heap poisoning header under this configuration
option CONFIG_HEAP_TASK_TRACKING.
To allow custom monitoring and debugging code to be added, add helper
functions in multi_heap.c and multi_heap_poisoning.c to provide access
to information in the block headers.
Add esp_heap_debug_dump_totals() to monitor heap usage
esp_heap_debug_dump_totals() dumps into a user-provided data structure
a summary of the amound of heap memory in region type that is used by
each task. Optionally it will also dump into another data structure
the metadata about each allocated block for a given list of tasks or
for all tasks (limited by available space).
Address change requests on PR #1498
This set of changes fixes the files in e3b702c to just add the
CONFIG_HEAP_TASK_TRACKING option without adding the new function
heap_caps_get_per_task_info() in case that is the only portion of the
PR that will be accepted. Part of the change is to remove the new .c
and .h files containing that function and to remove the line to
compile it from components/heap/component.mk since it should not have
been included in e3b702c. One or more additional commits to add the
new function will follow.
The other changes here:
- uint32_t get_all_caps() moves to heap_private.h
- replace "void* foo" with "void *foo"
- add braces around single-line "if" blocks
- replace tab characters with spaces
Address change requests on PR #1498 , part 2
This set of changes fixes the files in cdf32aa to add the new function
heap_caps_get_per_task_info() with its new name and to add the line to
compile it in components/heap/component.mk. This does not address all
the suggested changes because there are some needing further
discussion.
This commit does not include the suggested change to move the
declaration of the new function into esp_heap_caps.h because the new
function references TaskHandle_t so esp_heap_caps.h would have to
include freertos/FreeRTOS.h and freertos/task.h, but FreeRTOS.h
includes esp_heap_caps.h through two other header files which results
in compilation errors because not all of FreeRTOS.h has been read yet.
Change heap_caps_get_per_task_info() to take struct of params
In addition to moving the large number of function parameters into a
struct as the single parameter, the following changes were made:
- Clear out the totals for any prepopulated tasks so the app code
doesn't have to do it.
- Rather than partitioning the per-task totals into a predetermined
set of heap capabilities, take a list of <caps,mask> pairs to
compare the caps to the heap capabilities as masked. This lets the
caller configure the desired partitioning, or none.
- Allow the totals array pointer or the blocks array pointer to be
NULL to indicate not to collect that part of the information.
- In addition to returning the total space allocated by each task,
return the number of blocks allocated by each task.
- Don't need to return the heap capabilities as part of the details
for each block since the heap region (and therefore its
capabilities) can be determined from the block address.
- Renamed heap_task_info.h to esp_heap_task_info.h to fit the naming
convention, and renamed the structs for totals and block details to
better fit the revised function name.
- Provide full Doxygen commenting for the function and parameter
structs.
Add copyright header to new files
Merges https://github.com/espressif/esp-idf/pull/1498
2018-02-20 10:32:06 +11:00
Chris Morgan
86bf8798b2
esp_ping - Document that timeout units are in milliseconds
...
Remove 1000 multiplier from esp_ping_set_target() parameters that define time
2018-02-18 18:47:46 -05:00
Stephen Casner
a76d5a33c9
heap: Correct the sense of a comment
2018-02-19 09:42:40 +11:00
h3ndrik
dcc466a673
i2s: fix type mismatch of intr_alloc_flags
...
Merges https://github.com/espressif/esp-idf/pull/1589
2018-02-16 16:20:12 +11:00
Roland Dobai
4322e31c98
Make it easier to look up error messages
...
tools/gen_esp_err_to_name.py generates
components/esp32/esp_err_to_name.c for lookup of the error codes from
all of the IDF project and easily identify all codes in one place
2018-02-15 14:19:03 +01:00
Angus Gratton
7d13e3fa6a
Merge branch 'bugfix/docs_prs_from_github' into 'master'
...
Small documenation and API fixes from GitHub
See merge request idf/esp-idf!1952
2018-02-14 09:45:09 +08:00
Ivan Grokhotkov
22ae5adb95
Merge branch 'bugfix/ethernet_mdc_mdio_config' into 'master'
...
Ethernet: set direction of SMI pins MDC and MDIO correctly
See merge request idf/esp-idf!1939
2018-02-14 01:16:05 +08:00
Ing. Jaroslav Šafka
475e3cc43e
Fix function name typo. Closes https://github.com/espressif/esp-idf/issue/1572
2018-02-13 15:05:56 +01:00
Darian Leung
73cdfbfe79
esp_adc_cal/Add eFuse functionality
...
This commit updates the esp_adc_cal ocmponent to support new calibration methods
which utilize calibratoin values stored in eFuse. This commit includes LUT mode
2018-02-13 21:22:48 +08:00
Hrishikesh Dhayagude
4a7d445301
components/bt examples/bluetooth: Fix typographical errors
...
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-02-13 13:25:33 +05:30
zhiweijian
b09d681da6
Component/bt: add_params_check_in_prefer_conn_params()
2018-02-12 17:43:38 +08:00
zhiweijian
4056878c69
Component/bt: fix set error params and add callback in adv params
2018-02-12 16:34:30 +08:00
Jeroen Domburg
dc864c4108
Add option to continue running (with less ram) if psram is enabled but not detected
2018-02-12 13:44:11 +08:00
Jiang Jiang Jian
ca3faa6186
Merge branch 'bugfix/btdm_fix_example_log_missing_bug' into 'master'
...
component/bt: Fix BLE printf missing problem
See merge request idf/esp-idf!1912
2018-02-12 12:05:01 +08:00
Ivan Grokhotkov
363c096f2b
Merge branch 'test/adc2_with_wifi_reopen' into 'master'
...
test(adc2): re-enable the adc2 test.
See merge request idf/esp-idf!1926
2018-02-11 22:32:18 +08:00
Ivan Grokhotkov
44c3b0a1ba
Merge branch 'bugfix/console_example_stack_overflow' into 'master'
...
Increase event task stack size to fix console example stack overflow
See merge request idf/esp-idf!1879
2018-02-11 16:45:05 +08:00
Frank Sautter
cb3f09485d
Set direction of SMI pins MDC and MDIO correctly.
...
Merges https://github.com/espressif/esp-idf/pull/1594
2018-02-11 16:11:14 +08:00
zhiweijian
b5c2356528
Component/bt: clear start/stop adv callback when complete
2018-02-11 15:21:51 +08:00
Ivan Grokhotkov
f45622ff17
driver/rtc: add rtc_gpio_isolate helper function to disconnect RTC IO
2018-02-11 13:18:51 +08:00
Ivan Grokhotkov
b3be1b5190
tcpip_adapter: make log output at debug level less noisy
...
At debug log level, tcpip_adapter would print logs for each function
call scheduled onto the tcpip task. These logs contained pointers which
idf_monitor decoded, adding even more noise and useless vertical space
in logs. This change moves these log statements to verbose level.
2018-02-11 13:06:01 +08:00
Ivan Grokhotkov
a5f9563ef7
esp32: increase default event task stack size by 256 bytes
...
At debug log level, default event task stack size was not sufficient,
the stack was overflown by 232 bytes when WiFi connection happened.
2018-02-11 13:06:01 +08:00
Ivan Grokhotkov
bf53c8abb1
fatfs: check allocated workbuf pointer
2018-02-11 13:03:36 +08:00
Ivan Grokhotkov
59859fa53c
fatfs: add configuration of allocation unit size
...
Closes https://github.com/espressif/esp-idf/issues/1382 .
2018-02-11 13:03:36 +08:00
Ivan Grokhotkov
e381c6adde
Merge branch 'bugfix/fix_i2s_adc_mode' into 'master'
...
driver(i2s): fix broken i2s adc mode
See merge request idf/esp-idf!1653
2018-02-11 12:58:58 +08:00
Angus Gratton
a5eb369126
Merge branch 'bugfix/realloc_corruption_bug' into 'master'
...
heap: Fix bug when realloc moves data between heaps
See merge request idf/esp-idf!1931
2018-02-09 19:19:29 +08:00
Angus Gratton
b7fc067c8c
heap: Fix bug when realloc moves data between heaps
...
When realloc-ing to a smaller buffer size which ends up allocated in a different heap, the heap
structure is corrupted. This can only happen:
* If heap checking is Comprehensive (meaning buffers are never shrunk in place) and the heap the buffer was originally allocated in is full.
* Calling heap_caps_realloc() to deliberately move a buffer to a different capabilities type, and shrink it at the same time.
Probable fix for https://github.com/espressif/esp-idf/issues/1582
Probably the same issue:
https://www.esp32.com/viewtopic.php?f=2&t=4583
https://www.esp32.com/viewtopic.php?f=13&t=3717
2018-02-09 16:10:52 +08:00
Ivan Grokhotkov
417ef19084
Merge branch 'feature/tls_support' into 'master'
...
FreeRTOS TLS support
See merge request idf/esp-idf!1902
2018-02-09 12:34:20 +08:00
Ivan Grokhotkov
62f924544d
Merge branch 'test/spi_performance' into 'master'
...
test(spi_master): add performance display for spi master.
See merge request idf/esp-idf!1923
2018-02-08 22:59:40 +08:00
baohongde
0519a73334
component/bt: Fix mem leak of bt
2018-02-08 16:26:12 +08:00
michael
687d6aa2cd
test(adc2): re-enable the adc2 test.
2018-02-08 13:48:25 +08:00
Angus Gratton
16de6bff24
Merge branch 'bugfix/redirect_psram_muxes_to_single_mux' into 'master'
...
Fake S32C1I operation for muxes in PSRAM
See merge request idf/esp-idf!1688
2018-02-08 11:30:43 +08:00
Jiang Jiang Jian
3756e0c37f
Merge branch 'bugfix/tw18291_fix_wifi_deinit_causes_assert' into 'master'
...
esp32: fix esp_wifi_deinit causes assert
See merge request idf/esp-idf!1916
2018-02-08 11:28:24 +08:00
Alexey Gerenkov
f8c42369f1
freertos: Adds C11 TLS support
2018-02-07 18:46:57 +03:00
Jeroen Domburg
35de8d703e
Merge branch 'bugfix/spi_gpio0' into 'master'
...
fix(spi): several fixes about maros (flags) and GPIO0.
See merge request idf/esp-idf!1666
2018-02-07 18:50:13 +08:00
Michael (Xiao Xufeng)
a151767426
test(spi_master): add performance display for spi master.
2018-02-07 17:50:13 +08:00
Wangjialin
451f69cc2e
driver(i2s): fix broken i2s adc mode
...
1. Move i2s reset code from i2s_stop to i2s_start.
2. add RTC API to set sw mode for ADC
3. add description for adc_power_always_on()
4. add lock for i2s dma and RTC ADC functions.
5. add ADC read task in example
reported from bbs: https://esp32.com/viewtopic.php?f=13&t=3490&p=17522#p17522
reported from github: https://github.com/espressif/esp-idf/issues/1333
2018-02-07 17:17:20 +08:00
Angus Gratton
7e870aefdb
Merge branch 'bugfix/sdmmc_line_control' into 'master'
...
bugfix(sdmmc_host): fix some issue with bit width config .
See merge request idf/esp-idf!1900
2018-02-07 16:29:07 +08:00
Angus Gratton
75f564d7b5
Merge branch 'bugfix/ESP_ERR_PING_BASE_collision' into 'master'
...
Change ESP_ERR_PING_BASE because of collision with ESP_ERR_TCPIP_ADAPTER_BASE
See merge request idf/esp-idf!1918
2018-02-07 16:27:09 +08:00
michael
2551a7343d
test(sdmmc_host): add new test to probe over SD (1-bit).
2018-02-07 12:05:05 +08:00
Michael (XIAO Xufeng)
e14e1508cb
fix(sdmmc_host): fix the issue when slot and host flag are not compatible.
2018-02-07 12:05:05 +08:00
Michael (XIAO Xufeng)
8abbb17401
feat(sdmmc_host): force pull-up DAT3 for SD 4-bit mode so that slave will not fall into SPI mode.
2018-02-07 12:05:05 +08:00
Angus Gratton
e2cbcd5bc7
Merge branch 'feature/aws_iot_thing_shadow_settings' into 'master'
...
aws iot: Expose Thing Shadow settings in menuconfig
See merge request idf/esp-idf!1765
2018-02-07 10:52:33 +08:00
Liu Zhi Fu
5497c5ed9a
esp32: fix esp_wifi_deinit causes assert
...
Update wifi lib to fix esp_wifi_deinit causes system assert issue
2018-02-06 13:01:51 +00:00
Roland Dobai
f44cbe9033
Change ESP_ERR_PING_BASE because of collision with ESP_ERR_TCPIP_ADAPTER_BASE
2018-02-06 12:34:12 +01:00
He Yin Ling
532107c958
Merge branch 'test/ut_script' into 'master'
...
test: use the tiny-test-fw to run the unit test in CI
See merge request idf/esp-idf!1558
2018-02-06 18:03:22 +08:00
Jiang Jiang Jian
22dcdce949
Merge branch 'bugfix/btdm_scan_result_of_adv_type_wrong' into 'master'
...
component/bt: Fix bug:scan result of adv type is wrong
See merge request idf/esp-idf!1897
2018-02-06 15:50:29 +08:00
baohongde
acdad3237c
component/bt: Fix bug:update pktlen have no callback
2018-02-06 14:54:05 +08:00
island
4ee6f73a2e
component/bt: Fix BLE printf missing problem
2018-02-06 14:35:39 +08:00
Michael (Xiao Xufeng)
5214a0600c
test(adc2): temporary ignore adc2 unit test (with WiFi) to pass the CI.
...
the issue is introduced in commit 17f01eb718
.
2018-02-06 11:59:40 +08:00
Ivan Grokhotkov
8173d42581
Merge branch 'feature/partition_table_md5' into 'master'
...
Partition table md5 check
See merge request idf/esp-idf!1891
2018-02-05 20:58:52 +08:00
Roland Dobai
cf7a4cc650
Protect partition table by MD5 checksum
2018-02-05 11:36:03 +01:00
Angus Gratton
eaff702df1
aws iot: Expose Thing Shadow settings in menuconfig
...
Closes https://github.com/espressif/esp-idf/issues/1340
Ref TW#16817
2018-02-05 14:38:23 +08:00
Angus Gratton
11bf72aace
Update cJSON to v1.7.1
...
* Fix buffer overflow issue in cJSON 1.6.0
* Change cJSON structure to git submodule
Closes https://github.com/espressif/esp-idf/issues/1577
2018-02-05 14:15:26 +08:00
baohongde
79fd3f4f10
component/bt: Fix bug:scan result of adv type is wrong
2018-02-02 19:17:39 +08:00
Jeroen Domburg
70ab924dbb
Especially when internal memory fills up, some FreeRTOS structures (queues etc) get allocated in psram. These structures also contain a spinlock, which needs an atomic-compare-swap operation to work. The psram hardware, however, does not support this operation. As a workaround, this patch detects these spinlocks and will, instead of S32C1I, use equivalent C-code to simulate the behaviour, with an (internal) mux for atomicity.
2018-02-02 17:11:06 +08:00
wangmengyang
a31d07ba25
move rodata segment of libphy.a to dram
...
1. rodata segment of libphy.a(about 1200B) can be accessed by ISRs, so put it into DRAM
2018-02-02 13:00:11 +08:00
Ivan Grokhotkov
ed1dfe9009
Merge branch 'bugfix/cxx_guards_test_singlecore' into 'master'
...
unit tests: make static init guard test single core compatible
See merge request idf/esp-idf!1615
2018-02-02 10:38:43 +08:00
Jiang Jiang Jian
9ecd718f72
Merge branch 'bugfix/btdm_modify_set_mtu_call_handler' into 'master'
...
Component/bt: modify set mtu call handler
See merge request idf/esp-idf!1850
2018-02-01 20:19:52 +08:00
Jiang Jiang Jian
afe9a5d3ae
Merge branch 'bugfix/btdm_fix_adv_pending_in_smp' into 'master'
...
Component/bt: fix stop adv failed in smp
See merge request idf/esp-idf!1881
2018-02-01 20:17:02 +08:00
Jiang Jiang Jian
dc11c88a57
Merge branch 'bugfix/btdm_ble_mutil_connect_performance_optimiz' into 'master'
...
component/bt: Fixed the bug of ble multi connection not stable issue.
See merge request idf/esp-idf!1868
2018-02-01 20:11:51 +08:00
Ivan Grokhotkov
50892efc5c
Merge branch 'bugfix/spiffs_obj_name_len_check' into 'master'
...
SPIFFS: fix issues with formatting and page size limit
See merge request idf/esp-idf!1866
2018-02-01 12:18:39 +08:00
Ivan Grokhotkov
f51880f8ac
Merge branch 'test/enlarge_https_bin_size_threshold' into 'master'
...
test: enlarge https bin size threshold
See merge request idf/esp-idf!1886
2018-02-01 12:17:24 +08:00
Jiang Jiang Jian
6595d5392e
Merge branch 'bugfix/btdm_alarm_free' into 'master'
...
component/bt: free timer resources after using them
See merge request idf/esp-idf!1863
2018-02-01 11:01:08 +08:00
Jiang Jiang Jian
0f7d9cf7d3
Merge branch 'bugfix/btdm_a2dp_task_stack_size' into 'master'
...
component/bt: make A2DP source and sink task size configurable through menuconfig
See merge request idf/esp-idf!1825
2018-02-01 10:58:40 +08:00
He Yin Ling
63a401057c
test: enlarge https bin size threshold:
...
use performance matrix to tracking bin size is not convenient. bin size
do change for a lot reasons.
we'll implement a new method to track it. before that, set a large
enough threshold, so we can still keep tracking it.
2018-02-01 09:57:00 +08:00
zhiweijian
e64d78dc57
Component/bt: fix stop adv failed in smp
2018-01-31 16:06:22 +08:00
Jiang Jiang Jian
17f01eb718
Merge branch 'feature/wifi_throughput_optimization' into 'master'
...
lwip/esp32/examples: wifi throughput optimization
See merge request idf/esp-idf!1861
2018-01-31 15:44:43 +08:00
Ivan Grokhotkov
1103e1baba
spiffs: fix esp_spiffs_format not working if partition is not mounted
...
Fixes https://github.com/espressif/esp-idf/issues/1547 .
2018-01-31 14:29:13 +08:00
zhiweijian
b06ea40f66
Component/bt: modify set mtu call handler
2018-01-31 11:28:05 +08:00
Ivan Grokhotkov
7b32aaa151
spiffs: reformat Kconfig to 80 character wide lines
...
Some help strings looked odd in mconf.
2018-01-31 11:14:56 +08:00
Ivan Grokhotkov
594d5c1436
spiffs: check if OBJ_NAME_LEN + OBJ_META_LEN is within limits
...
The limit was mentioned in spiffs_config.h but was not checked.
Fixes https://github.com/espressif/esp-idf/issues/1546
2018-01-31 11:14:56 +08:00
Ivan Grokhotkov
507a3a6391
spiffs: add Kconfig option for logical page size
2018-01-31 11:14:56 +08:00
Angus Gratton
d8c80509bc
Merge branch 'feature/io_mux_register_names' into 'master'
...
soc/esp32: Add IO_MUX_GPIOxx register names to match iomux names used in TRM
See merge request idf/esp-idf!1875
2018-01-31 10:50:41 +08:00
Angus Gratton
2e33dbf766
Merge branch 'bugfix/esp_log_level_set_strcmp' into 'master'
...
Fix esp_log_level_set string matching (github PR 1557)
See merge request idf/esp-idf!1872
2018-01-31 09:58:21 +08:00
Angus Gratton
4297c337f9
esp32: Add IO_MUX_GPIOxx register names to match iomux names used in TRM
...
The TRM describes IOMUX registers are IO_MUX_x_REG for x in GPIO0-39.
Until now ESP-IDF describes them as PERIPHS_IO_MUX_(pinname)_U
This commit adds additional IOMUX register names which match the ones used in the TRM.
2018-01-30 17:09:37 +08:00
Liu Zhi Fu
2242bf9b37
lwip/esp32/examples: wifi throughput optimizations
...
1. Put some lwip udp rx/tx relating functions to IRAM
2. Put some wifi rx/tx relating functions to IRAMa
3. Reduce wifi dynamic malloc from 4 to 1 for each ebuf
4. Update iperf example accordingly
5. Update libphy.a to v383
2018-01-30 16:27:49 +08:00
wangmengyang
00db39ee1b
component/bt: make A2DP source and sink task size configurable through menuconfig
...
1. use different set of parameters for A2DP source/sink tasks
2. make the task stack size configurable through menuconfig
2018-01-30 14:26:53 +08:00
michael
be96e1db95
fix(spi): fix typo of LSBFIRST macro.
...
Closes https://github.com/espressif/esp-idf/issues/1480 , Closes https://github.com/espressif/esp-idf/issues/1464
2018-01-29 17:44:37 +08:00
michael
8900200147
fix(spi_master): fix the variable command and address flag issue.
...
Closes https://github.com/espressif/esp-idf/issues/1549
2018-01-29 17:44:36 +08:00
michael
60469c500a
fix(spi): fix pin issue with GPIO0 (other pins than CS).
2018-01-29 17:44:36 +08:00
Ivan Grokhotkov
0f22a53fc2
Merge branch 'bugfix/sysview_timer_1core' into 'master'
...
sysview: fix compilation in 1 core mode, refactor timer choices
See merge request idf/esp-idf!1822
2018-01-29 17:28:59 +08:00
Ivan Grokhotkov
d3d2c077f9
Merge branch 'bugfix/log_invalid_comparison' into 'master'
...
log: fix preprocessor comparison against an enum value
See merge request idf/esp-idf!1865
2018-01-29 17:26:43 +08:00
Wangjialin
3da8f2eda1
bugfix(touch): change the default value for sar_touch_enable register.
...
Reported from github: https://github.com/espressif/esp-idf/issues/1236
All the touch channels are enabled by default in hardware. This would interfere other RTC function on Touch IOs.
Disable touch function in touch_pad_init().
2018-01-29 15:40:21 +08:00
yulong
06dcca0fcd
component/bt: Fixed the bug of ble multi connection not stable issue.
2018-01-29 14:27:03 +08:00
Ivan Grokhotkov
00da9c1cab
Merge branch 'bugfix/esp_console_header_guards' into 'master'
...
console: Add C++ guards to header
See merge request idf/esp-idf!1867
2018-01-29 14:15:12 +08:00
Angus Gratton
1249659931
Merge branch 'bugfix/system_restore_duplicate' into 'master'
...
esp32: remove duplicate definition of system_restore
See merge request idf/esp-idf!1864
2018-01-29 14:02:02 +08:00
Angus Gratton
2536d50d2e
console: Add C++ guards to header
...
As reported on forum https://esp32.com/viewtopic.php?f=2&t=4478&p=19659
2018-01-29 09:22:04 +08:00
David Ashley
750c8c00c8
This is a fix for the esp_log_level_set function. The problem is when this
...
function is called but NOT withe the same 'c' string constant that the LOG*
calls used in each module, the cache check doesn't match, so the cached
entry won't get updated. There's no point in optimizing this function
anyway because it is only called rarely.
2018-01-28 16:47:07 -06:00
Ivan Grokhotkov
527be440f8
log: fix preprocessor comparison against an enum value
...
Fix `#if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO)` which is always false and
produces a warning with -Wundef.
Use same pattern to compare LOG_LOCAL_LEVEL with ESP_LOG_INFO as is used
in definition of `ESP_LOG_BUFFER_HEX_LEVEL` and
`ESP_LOG_BUFFER_CHAR_LEVEL`.
Also reformat existing definitions for better readability.
Closes https://github.com/espressif/esp-idf/issues/1526
2018-01-28 19:45:25 +08:00
Ivan Grokhotkov
1979235df2
esp32: remove duplicate definition of system_restore
...
Fixes https://github.com/espressif/esp-idf/issues/1520 .
2018-01-28 19:26:37 +08:00
wangmengyang
90c9ffa975
component/bt: free timer resources after using them
...
Bluedroid use a set of timer function pairs such as btu_start_timer/btu_stop_timer, btu_sys_start_timer/btu_sys_stop_timer for use, in a lack of timer release functions. Thus the timers may be exhausted after some event sequence such as repetition of connection/reconnection with different devices. The maximum timer number used in bluedroid is given by ALARM_CBS_NUM which is 30 for now. This bugfix borrowed some update from bluedroid in Andoroid 7.0, which add timer release functions which promote the recycle of timer resources.
2018-01-27 19:03:06 +08:00
Jiang Jiang Jian
daa8cfa800
Merge branch 'bugfix/btdm_fix_stop_adv_no_callback_when_adv_has_been_stoped' into 'master'
...
Component/bt: fix stop adv no callback when adv has already stoped
See merge request !1838
2018-01-26 20:37:12 +08:00
Jiang Jiang Jian
4cbc0198a0
Merge branch 'bugfix/btdm_fix_BT_load_boned_in_smp' into 'master'
...
Component/bt: fix bt load boned in smp
See merge request !1854
2018-01-26 20:34:24 +08:00
wangmengyang
95af1c22b5
components/phy: add IRAM_ATTR attribute to the two APIs used in phy calibration
...
1. the two APIs used in phy calibration are called in bluetooth baseband ISR, so locate the them in IRAM
2018-01-26 17:12:59 +08:00
zhiweijian
41f338d23c
Component/bt: fix bt load boned in smp
2018-01-26 14:38:54 +08:00
Jiang Jiang Jian
5b1f869880
Merge branch 'feature/btdm_bluedroid_env_dynomic_malloc_enable' into 'master'
...
This MR added the bluedroid env variable can dynamic malloc and BT variable use psram malloc supported
See merge request !1698
2018-01-26 10:06:43 +08:00
XiaXiaotian
1bc87e972b
Added two functions in PHY API for disable interrupts and add rfcal data checking to PHY
2018-01-25 17:58:14 +08:00
zhiweijian
d54e188e61
Component/bt: fix stop adv no callback when adv has been stoped
2018-01-25 15:31:17 +08:00
Jiang Jiang Jian
c73ea7a804
Merge branch 'bugfix/wifi_fix_sniffer_rx_misc_data_assert' into 'master'
...
Fix the bug that in sniffer mode it asserts when receive misc data at first
See merge request !1837
2018-01-25 14:09:46 +08:00
Jiang Jiang Jian
b98da5da97
Merge branch 'bugfix/btdm_classicbt_pscan_assert' into 'master'
...
component/bt : fix the bug of pscan when interrupt react slowly
See merge request !1816
2018-01-25 13:52:00 +08:00
Jiang Jiang Jian
62fade9970
Merge branch 'bugfix/btdm_fix_bonded_device_list_error_after_reboot' into 'master'
...
component/bt: fix bonded device list error after reboot
See merge request !1750
2018-01-25 12:05:58 +08:00
XiaXiaotian
cdd7a87674
Fix the bug that in sniffer mode it asserts when receive misc data at first
...
close github issue#1037 WiFi Promiscuous filter breaks w/
WIFI_PROMIS_FILTER_MASK_ALL and issue#1404
esp_wifi_set_promiscuous_filter set WIFI_PROMIS_FILTER_MASK_ALL error
2018-01-24 16:06:53 +08:00
Yulong
63e5cbbd66
component/bt: Added the bluedroid environment variable dynomic malloc support & support to malloc the memory to the psram.
...
component/bt: Added the Macro for the classic BT support.
component/bt: added the bluedroid deinit method.
component/bt: allow more classic BT global variables to use dynamic allocation scheme
1. allocate memory for AVDT, AVCT control blocks when dynamic memory is used
2. allow SBC decoder buffer to use dynamic allocation scheme
component/bt: Remove the wrong changes in bt/Kconfig & Added the GATTS_INCLUDED in the gatt_free function when gatt service close.
component/bt: Shorten the abbreviation BT_ALLOCATION_FROM_SPIRAM_FIRST and BT_BLE_DYNAMIC_ENV_MEMORY two macros.
2018-01-24 15:18:02 +08:00
Angus Gratton
6736908eaf
esptool: Update to v2.2.1
...
Fixes a bug with >230400bps flashing on macOS, possibly other platforms.
Full release notes: https://github.com/espressif/esptool/releases/tag/v2.2.1
2018-01-24 17:45:49 +11:00
Angus Gratton
2a10ffce5f
Merge branch 'feature/dma_attr' into 'master'
...
feat(attr): add new macro `DMA_ATTR` and `STATIC_DMA_ATTR` to help dma buffer declaration.
See merge request !1550
2018-01-24 12:04:03 +08:00
michael
fcfcab7678
feat(attr): add new macro DMA_ATTR
and WORD_ALIGNED_ATTR
to help dma buffer declaration.
2018-01-24 11:28:14 +08:00
Angus Gratton
d89542eb2b
Merge branch 'bugfix/uart_pattern_detect' into 'master'
...
bugfix(uart): patten detect function
See merge request !1235
2018-01-24 06:12:48 +08:00
Jiang Jiang Jian
ce2e4cbc4f
Merge branch 'bugfix/log_hex_buffer_pr1519' into 'master'
...
Fix hexdump comment and array size. See issue #1518 .
See merge request !1832
2018-01-23 22:45:41 +08:00
Ivan Grokhotkov
90ad7b423c
unit tests: make static init guard test single core compatible
2018-01-23 07:56:13 +00:00
Ivan Grokhotkov
ffaf145056
Merge branch 'bugfix/xtal_freq_estimation' into 'master'
...
soc/rtc_clk: fix loss of precision in estimation of XTAL frequency
See merge request !1763
2018-01-23 15:37:47 +08:00
Ivan Grokhotkov
02821571dd
Merge branch 'bugfix/xRingbufferSend_timeout_bug' into 'master'
...
bugfix(ringbuffer): Fix ringbuffer_send timeout bug
See merge request !1823
2018-01-23 15:37:13 +08:00
Angus Gratton
ffd4187883
Merge branch 'feature/esptool_v2_2' into 'master'
...
esptool: Update to v2.2
See merge request !1755
2018-01-23 08:36:52 +08:00
Angus Gratton
84741e85e7
Merge branch 'feature/aws-iot-sdk-v2.2.1' into 'master'
...
AWS IoT SDK: Update version from v2.1.1 to v2.2.1
See merge request !1732
2018-01-23 08:33:38 +08:00
me-no-dev
4fa130ae4f
mdns: Fix case where service is NULL and that will cause exception
2018-01-22 13:56:53 +01:00
me-no-dev
51dde19a76
mdns: Fix issue with some mDNS parsers
...
Some mDNS parser have issue with zero terminated TXT lists. This fix targets to overcome this issue. Found and tested with jmdns.
2018-01-22 13:56:34 +01:00
Jiang Jiang Jian
8af04997f3
Merge branch 'bugfix/dump_other_core_when_int_wdt_happens' into 'master'
...
Dump the frame of the other core when interrupt watchdog happens
See merge request !1787
2018-01-22 19:52:05 +08:00
Jiang Jiang Jian
84b92a4ead
Merge branch 'feature/btdm_add_get_error_enent_for_blufi' into 'master'
...
component/bt: add error report event for blufi
See merge request !1702
2018-01-22 19:48:29 +08:00
kooho
a0a2422541
bugfix(ringbuffer): Fix ringbuffer_send timeout bug
2018-01-22 14:17:58 +08:00
Wangjialin
870efdb9d4
bugfix(uart): patten detect function
...
requirement from github(https://github.com/espressif/esp-idf/issues/805 ): to provide the position in the buffer of the pattern detected.
requirement from AT application: in AT app, when no hardware flow control is enabled, in some situation the rx buffer might be full, and the terminator “+++” might be lost, we can use pattern detect interrupt to avoid missing the terminator. When pattern detect interrupt happens, it will not send a data event at the same time.
1. Add API to get position of detected pattern in rx buffer
2. Modify UART event example
3. Add comments for uart_flush, add alias API uart_flush_input to clear the rx buffer
4. Modify the way rx_buffered_len is calculated
2018-01-22 13:33:51 +08:00
David Antliff
19f10c4960
Fix hexdump comment and array size. See issue #1518 .
...
Closes https://github.com/espressif/esp-idf/pull/1518
Merges https://github.com/espressif/esp-idf/pull/1519
2018-01-22 16:25:09 +11:00
Jack
624828ce83
Dump the frame of the other core when interrupt watchdog happens
2018-01-18 23:10:29 +00:00
zhiweijian
1861d6e137
Component/bt: fix bonded device list error after reboot
2018-01-17 19:54:49 +08:00
Piyush Shah
b66d80ed95
ringbuf: Fix warnings seen when CONFIG_FREERTOS_ASSERT_DISABLE=y
...
Signed-off-by: Piyush Shah <piyush@espressif.com>
2018-01-17 16:30:05 +08:00
Ivan Grokhotkov
c3d8215728
sysview: fix compilation in 1 core mode, refactor timer choices
...
Changes related to DFS have broken compilation of sysview code in 1 core
mode. This change fixes this, and moves choice of the timer used for
timestamp into Kconfig. CCOUNT timer is only available as an option if
1 core mode is used. esp_timer is added as a new option, and is the
only available option if DFS is enabled.
2018-01-17 12:23:28 +08:00
Tian Hao
b617118df3
component/bt : fix the bug of pscan when interrupt react slowly
2018-01-17 11:48:23 +08:00
Ivan Grokhotkov
429371c182
Merge branch 'feature/mdns_again' into 'master'
...
New mDNS implementation
See merge request !1683
2018-01-16 18:38:42 +08:00
Jiang Jiang Jian
f0ed404448
Merge branch 'bugfix/btdm_pair_fail_with_random_address' into 'master'
...
component/bt: Fix bug when pair with random address
See merge request !1784
2018-01-16 18:17:45 +08:00
zhiweijian
cf91ad32dc
Component/bt: add get error event for blufi
2018-01-16 17:29:48 +08:00
me-no-dev
4bddbc031c
Import mDNS changes
2018-01-16 10:58:34 +02:00
Jiang Jiang Jian
f2e51bc08a
Merge branch 'bugfix/btdm_discon_when_upd_conn_params_in_smp' into 'master'
...
component/bt: fix disconnect after connection params update in smp
See merge request !1804
2018-01-16 16:41:18 +08:00
Jiang Jiang Jian
ee0af80843
Merge branch 'bugfix/btdm_fix_conn_params_update_failed_in_SMP' into 'master'
...
component/bt: fix conn params update failed in smp
See merge request !1796
2018-01-16 16:38:22 +08:00
baohongde
088dc40e48
component/bt: Fix bug when pair with random address
2018-01-16 08:35:26 +00:00
Jiang Jiang Jian
0ef0db08d5
Merge branch 'feature/btdm_add_get_wifi_list_for_blufi' into 'master'
...
component/bt: add get wifi list cmd for blufi
See merge request !1708
2018-01-16 16:31:55 +08:00
Angus Gratton
f620a3c4f3
Merge branch 'bugfix/int_wdt_in_ocd_mode' into 'master'
...
panic: prevent INT WDT from re-triggering in OCD mode
See merge request !1764
2018-01-16 15:07:26 +08:00
chensheng
c9607e9753
test: fix BLE update conn param test case errors
2018-01-16 13:39:12 +08:00
Wu Jian Gang
c25be19ebf
Merge branch 'bugfix/multi_ping_crash' into 'master'
...
fix(ping): fix crash when multi-ping
See merge request !1768
2018-01-16 09:05:32 +08:00
zhiweijian
4d2c3edc07
Component/bt: add get wifi list cmd for blufi
2018-01-15 12:16:19 +00:00
Jiang Jiang Jian
cd54a95a7f
Merge branch 'feature/btdm_a2dp_src' into 'master'
...
Feature/btdm a2dp src
See merge request !1190
2018-01-15 18:55:01 +08:00
zhiweijian
0891ec35c7
component/bt: fix disconnect after connection params update in smp
2018-01-15 17:03:56 +08:00
zhiweijian
f165927272
Component/bt: fix update connection params error in smp
2018-01-15 15:38:08 +08:00
Chen Wu
ffc2db0a35
fix(ping): fix crash when multi-ping
...
1. "lwip_socket" should close by "lwip_close_r" other than "lwip_close"
2. for generally compatible, fix all lwip interface to normally socket interface
3. call vTaskDelete when new socket failed in case of task crash
close #https://github.com/espressif/esp32-at/issues/58
2018-01-12 15:54:07 +08:00
kooho
492db0591d
Fix uart fifo overflow bug
2018-01-12 14:42:54 +08:00
Ivan Grokhotkov
2ddee72996
Merge branch 'feature/toolchain-80-g6c4433a' into 'master'
...
Toolchain: Update to version 1.22.0-80-g6c4433a
See merge request !1771
2018-01-11 21:44:42 +08:00
Ivan Grokhotkov
914ab07567
Merge branch 'feature/ulp_i2c_reg' into 'master'
...
soc,ulp: add register definitions of RTC_I2C peripheral
See merge request !1762
2018-01-11 12:08:25 +08:00
Angus Gratton
38e15e6241
build: Remove explict -lstdc++-psram-workaround
...
This is now handled internally to the toolchain.
2018-01-11 10:32:02 +11:00
Jiang Jiang Jian
16391c2748
Merge branch 'bugfix/full_calibration_will_not_use_init_data' into 'master'
...
Fix bug that when we do full calibration init data bin is not used
See merge request !1746
2018-01-10 17:01:53 +08:00
Jiang Jiang Jian
675844c4bb
Merge branch 'bugfix/assert_in_PSRAM_WIFI' into 'master'
...
bug fix of assert happen in PSRAM
See merge request !1745
2018-01-10 16:47:40 +08:00
Angus Gratton
e9ca1dc9b0
Merge branch 'feature/rmt_end_transmission_callback' into 'master'
...
rmt: Adds a simple handler that can be called when transmission ends.
See merge request !1726
2018-01-10 04:59:26 +08:00
wangmengyang
f360fe5b3e
component/bt: implement A2DP source
...
1. Modified symbol names of A2DP sink APIs include:
- esp_a2d_data_cb_t --> esp_a2d_sink_data_cb_t
- esp_a2d_register_data_callback --> esp_a2d_sink_register_data_callback
2018-01-09 20:20:52 +08:00
Deng Xin
337f790fd3
bug fix of assert happen in PSRAM
2018-01-09 20:01:06 +08:00
Jiang Jiang Jian
3452845063
Merge branch 'bugfix/btdm_avrc_connect_state_evt' into 'master'
...
Bugfix/btdm avrc connect state evt
See merge request !1717
2018-01-09 19:33:06 +08:00
Jiang Jiang Jian
6daa52d2ca
Merge branch 'bugfix/update_bt_lib_with_updated_toolchain_for_master' into 'master'
...
component/bt: build libbtdm_app.a with updated toolchain
See merge request !1728
2018-01-09 16:55:45 +08:00
wangmengyang
e07b43e924
component/bt: add AVRC event for remote features indication
...
1. remove the feature mask parameter from AVRC connection state event, as the AVCTP connection can be initiated by remote device before service discovery to remote device is performed. \
In this case, AVRCP connection state event may not be reported after connection initated by remote device is established.
2. remove ESP_AVRC_CT_MAX_EVT
3. add more documentations to AVRC APIs
2018-01-09 16:33:48 +08:00
Jack
11c0daef62
Fix bug that when we do full calibration init data bin is not used
2018-01-09 15:31:34 +08:00
Jiang Jiang Jian
ff726b4c79
Merge branch 'bugfix/btdm_fix_cant_remove_boned_device_if_its_connected' into 'master'
...
Component/bt: fix can not remove boned device if it is connected
See merge request !1758
2018-01-09 11:42:45 +08:00
Jiang Jiang Jian
c147d7b03e
Merge branch 'feature/btdm_bt_spp' into 'master'
...
component/bt: Add bt spp profile
See merge request !1593
2018-01-09 10:44:46 +08:00
Ivan Grokhotkov
8e8cb1a139
panic: prevent INT WDT from re-triggering in OCD mode
...
When INT WDT fires, panicHandler is invoked. In OCD mode, panicHandler
sets a breakpoint on the PC from the exception frame and returns.
However in case of INT WDT, interrupt flag is still set in TIMERG1
peripheral, which causes INT WDT to trigger again. This causes an
endless stream of "Core 0 panic'ed (Interrupt wdt timeout on CPU1)"
messages. OpenOCD also gets terribly confused at this point.
Disable watchdogs when exiting panic handler in OCD mode.
Clear TIMERG1 WDT interrupt flag to prevent re-entry into panic handler.
2018-01-09 01:46:24 +08:00
Ivan Grokhotkov
7c584e80b0
soc/rtc_clk: fix loss of precision in estimation of XTAL frequency
...
RTC_FAST_CLK_FREQ_APPROX is defined as 8500000, so 0.5MHz part was lost
when dividing by MHZ. Since cal_val is 64-bit the parens can be removed.
With 40MHz XTAL for a nominal ESP32 chip, this fixes estimated XTAL
frequency from 38 to 40MHz.
2018-01-08 23:31:21 +08:00
Ivan Grokhotkov
dba291416f
soc,ulp: add register definitions of RTC_I2C peripheral
2018-01-08 21:28:14 +08:00
Jiang Jiang Jian
0cd97cecb2
Merge branch 'bugfix/btdm_error_when_add_device_to_whitelist_twice' into 'master'
...
component/bt: Fix bug when add device to whitelist twice
See merge request !1700
2018-01-08 19:16:34 +08:00
zhiweijian
831b2c0441
Component/bt: fix can not remove boned device if it is connected
2018-01-08 17:55:00 +08:00
Ivan Grokhotkov
f61dcf4d1a
Merge branch 'bugfix/freertos_eventgroup_isr_test' into 'master'
...
freertos/Fix Event Group ISR test case
See merge request !1733
2018-01-08 16:51:27 +08:00
Ivan Grokhotkov
ddf3d92a25
Merge branch 'bugfix/esp_log_local_level' into 'master'
...
Log: fix definition of LOG_LOCAL_LEVEL, fix typos
See merge request !1747
2018-01-08 16:41:42 +08:00
Angus Gratton
da1bf60904
esptool: Update to v2.2
2018-01-08 11:45:09 +11:00
Angus Gratton
f9ad17eee4
Merge branch 'bugfix/BLE_SM_Security_Flags_pr1320' into 'master'
...
bt: Fix ble sm security flags (Github PR 1320)
See merge request !1740
2018-01-08 07:35:19 +08:00
Jiang Jiang Jian
a1b59679f9
Merge branch 'bugfix/btdm_standardize_code' into 'master'
...
component/bt: Standardize code
See merge request !1696
2018-01-05 18:56:08 +08:00
baohongde
d2663c866e
component/bt: Add SPP profile
2018-01-05 16:48:29 +08:00
Jiang Jiang Jian
4d4c055a1a
Merge branch 'bugfix/recompile_with_new_psram_toolchain' into 'master'
...
recompile wifi lib with new toolchain 1.22.0-78-g4b87650
See merge request !1730
2018-01-05 16:40:30 +08:00
Ivan Grokhotkov
3a6962b8ec
log: fix typos in header files
2018-01-05 16:10:58 +08:00
Ivan Grokhotkov
6a5c105753
log: define LOG_LOCAL_LEVEL before using it, don't use type cast
...
LOG_LOCAL_LEVEL is now used in a construct like:
#if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO)
Make sure that LOG_LOCAL_LEVEL is defined, and don't use a type cast in
its definition, because preprocessor can not parse that.
2018-01-05 16:10:58 +08:00
Angus Gratton
2227c44254
rmt: Add void * argument for end-of-transmission callback
...
Ref https://github.com/espressif/esp-idf/pull/1174
2018-01-05 17:31:59 +11:00
Krzysztof Bociurko
1066c74b74
rmt: Adds a simple handler that can be called when transmission ends.
...
Merges https://github.com/espressif/esp-idf/pull/1174
2018-01-05 17:14:02 +11:00
Ivan Grokhotkov
30aacb79d5
Merge branch 'bugfix/uart_semaphore_pr1387' into 'master'
...
uart driver: Remove unnecessary xSemaphoreGive()
See merge request !1739
2018-01-05 11:05:05 +08:00
Angus Gratton
eb659e401d
Merge branch 'feature/esp_intr_set_in_iram' into 'master'
...
Add esp_intr_set_in_iram (Github PR)
See merge request !1629
2018-01-04 06:04:05 +08:00
Angus Gratton
6e23ee704b
Merge branch 'refactor/spi_clk_pre_cal' into 'master'
...
bugfix(spi_master): improve spi time cost for each transfer.
See merge request !1670
2018-01-04 06:03:12 +08:00
Tim Cook
2b24177d2b
n btm_sec_save_le_key() set BTM_SEC_LE_LINK_KEY_KNOWN (and BTM_SEC_LE_LINK_KEY_AUTHED if MITM was used) when process a local Long Term Key (key type BTM_LE_KEY_LENC). This is because these flags share bits with the BTM_SEC_FLAG_LKEY_KNOWN (and BTM_SEC_FLAG_LKEY_AUTHED) flag in btm_api.h. Without this code a link that is encrypted via SM pairing where only the local device exchanges the LTK (peer does not send its LTK) will not allow GATT operations that require encryption (request will be incorrectly rejected with insufficient authentication reason, regardless of if MITM is required).
...
Merges https://github.com/espressif/esp-idf/pull/1320
2018-01-03 14:14:24 +11:00
Tim Cook
5b87177831
set ble_rsp_key member of structure bte_appl_cfg in function bta_dm_co_ble_set_rsp_key_req (function incorrectly uses ble_init_key member).
...
Merges https://github.com/espressif/esp-idf/pull/1320
2018-01-03 14:14:24 +11:00
Alexey Morozov
25b8642835
uart driver: Remove unnecessary xSemaphoreGive()
...
avoid unnecessary call of xSemaphoreGive(p_uart_obj[uart_num]->tx_mux);
Merges https://github.com/espressif/esp-idf/pull/1387
2018-01-03 13:44:19 +11:00
baohongde
2530e0aeb9
component/bt: Standardize code
...
Reported from github:
https://github.com/espressif/esp-idf/issues/1402
https://github.com/espressif/esp-idf/issues/1403
2018-01-03 10:31:30 +08:00
JoveToo
6746d31620
fix typo
...
Merges https://github.com/espressif/esp-idf/pull/1430
2018-01-03 10:50:50 +11:00
Per Malmberg
f7f52414ec
Removed logging in RMT driver which skews the timing. Issue #1345
...
Merges https://github.com/espressif/esp-idf/pull/1450
2018-01-03 10:50:03 +11:00
Darian Leung
9df9e2363e
freertos/Fix Event Group ISR test case
...
This commit fixes and reimplements the Event Group ISR test case. The test
case tests xEventGroupSetBitsFromISR() and xEventGroupClearBitsFromISR()
2018-01-02 18:57:28 +08:00
baohongde
e55b5433aa
component/bt: Fix bug when add device to whitelist twice
2018-01-02 17:20:34 +08:00
Jiang Jiang Jian
c401a74bfb
Merge branch 'bugfix/btdm_aes_encrypt_workaround' into 'master'
...
component/bt: disable Secure Connections to workaround AES encryption issue
See merge request !1719
2018-01-02 16:15:39 +08:00
XiaXiaotian
3fd421ab01
recompile wifi lib with new toolchain 1.22.0-78-g4b87650
2018-01-02 14:23:37 +08:00
Angus Gratton
b16e1d84d0
AWS IoT SDK: Update version from v2.1.1 to v2.2.1
...
Closes https://github.com/espressif/esp-idf/issues/1355
2018-01-02 13:46:58 +11:00
Angus Gratton
e798957d16
Merge branch 'bugfix/ci_log_examples' into 'master'
...
Fix a sporadic bug in building of the examples
See merge request !1723
2018-01-02 07:55:26 +08:00
wangmengyang
ba06683834
component/bt: build libbtdm_app.a with updated toolchain
2017-12-29 15:31:11 +08:00
Ivan Grokhotkov
f82048018b
Merge branch 'bugfix/i2c_regression' into 'master'
...
Bugfix/i2c regression (Github PR 1443)
See merge request !1725
2017-12-29 15:19:38 +08:00
Per Malmberg
f2370b2830
Removed logging from pthread conditional variable which completely drowned out any other logging and also had negative effects on the RMT due to sharing the same log system. Related to #1345 / TW#16842
2017-12-28 15:21:00 +01:00
Per Malmberg
5fb16d9b2b
Fix regression in i2c_master_read() which rejected all data lenths.
2017-12-28 14:54:15 +01:00
Anton Maklakov
301751ede0
build system: Fix undefined variables
...
make/project.mk:315: warning: undefined variable `CC'
make/project.mk:316: warning: undefined variable `LD'
make/project.mk:317: warning: undefined variable `AR'
make/project.mk:62: warning: undefined variable `MAKECMDGOALS'
components/partition_table/Makefile.projbuild:24: warning: undefined variable `quote'
components/bootloader/Makefile.projbuild:123: warning: undefined variable 'BOOTLOADER_DIGEST_BIN'
components/bootloader/Makefile.projbuild:123: warning: undefined variable 'SECURE_BOOTLOADER_KEY'
2017-12-28 19:21:34 +08:00
Ivan Grokhotkov
98dff491c8
Merge branch 'bugfix/static_mem_workaround' into 'master'
...
esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround
See merge request !1704
2017-12-28 18:52:47 +08:00
wangmengyang
1bbd67f7d7
component/bt: disable Secure Connections(Host Supported) of classic Bluetooth to workaround AES encryption issue in controller
...
1. ESP32 is found to suffer from AES encryption start/resume failure with specific device. Therefore temporarily disable BR/EDR Secure Connections for a workaround
2. BR/EDR Secure Connections is a feature for BT Classic introduced in Bluetooth 4.1. This change disables the setting of Secure Connections(Host Supported), and will result in the use of legacy authentication instead of secure authentication, and E0 encryption(legacy) instead of AES-CCM encryption. BLE security procedures are not affected.
2017-12-28 14:51:19 +08:00
michael
2552fdccd1
chore(spi): add log to show native pins or not when configure pins.
2017-12-28 12:03:29 +08:00
michael
f4be6ac84d
fix(spi_master): fix the logic in the ISR to prevent re-config registers when device is not changed.
2017-12-28 12:03:29 +08:00
michael
7a7b8fc182
refactor(spi_master): move the clock calculation from ISR to initialization.
2017-12-28 12:03:28 +08:00
Jiang Jiang Jian
7d0d2854d3
Merge branch 'bugfix/btdm_error_when_white_list_is_full' into 'master'
...
component/bt: Fix bug of adding device to white list has no callback when while list is full
See merge request !1689
2017-12-27 18:03:38 +08:00
Jiang Jiang Jian
566fab02df
Merge branch 'bugfix/btdm_disconnect_fail_during_pairing' into 'master'
...
component/bt: Fix bug of disconnected fail during pairing
See merge request !1672
2017-12-27 18:03:13 +08:00
Ivan Grokhotkov
cbfd162ea8
Merge branch 'bugfix/idle_task_deletes_currently_running_task' into 'master'
...
freertos: prvCheckTasksWaitingTermination bugfix
See merge request !1686
2017-12-27 16:44:06 +08:00
Jiang Jiang Jian
8051ac469a
Merge branch 'cherry-pick-4837f939-2' into 'master'
...
esp_timer:fix three bugs about timer get and timer alarm where overflow is not correct
See merge request !1695
2017-12-27 11:43:52 +08:00
Jiang Jiang Jian
d31b654f3f
Merge branch 'bugfix/btdm_fix_memory_leak_for_SMP' into 'master'
...
component/bt: fix memory leak in SMP
See merge request !1690
2017-12-27 11:43:18 +08:00
Angus Gratton
ec7cac5fe8
Merge branch 'feature/docs_update_rmt_api' into 'master'
...
RMT API docs update, new example
See merge request !1564
2017-12-27 09:23:47 +08:00
Angus Gratton
f8580ea98f
esp32: Change 192KB runtime static limit workaround to a 176KB link time workaround
...
Turns out some app memory around 0x3ffdc000 is also used by APP CPU.
This is a workaround until code to remove the 176KB limit is committed.
2017-12-27 11:59:54 +11:00
kooho
d78be97154
add NACK for the last byte to read
2017-12-26 21:50:18 +08:00
Darian Leung
c41c02872f
freertos: prvCheckTasksWaitingTermination bugfix
...
Bugfix to prevent a self deleting no affinity task's memory from being freed by the
idle task of the other core before the self deleting no affinity task is able to context
switch out. prvCheckTasksWaitingTermination now checks if the task is still on
pxCurrentTCB before freeing task memory.
2017-12-26 19:03:49 +08:00
baohongde
1de63e9d90
component/bt: Fix bug of disconnected fail during pairing
2017-12-25 19:24:06 +08:00
baohongde
f5f8dda8a2
component/bt: Fix bug of adding device to white list has no callback when while list is full
2017-12-25 17:45:12 +08:00
Ivan Grokhotkov
6c2562ceb4
Merge branch 'bugfix/spiram_fails_after_esp_restart' into 'master'
...
Make psram function after an esp_restart as well.
See merge request !1694
2017-12-21 13:40:10 +08:00
Jiang Jiang Jian
a567de1576
Merge branch 'feature/btdm_classic_discovery' into 'master'
...
component/bt: implement Classic Bluetooth GAP APIs for device and service discovery
See merge request !1576
2017-12-20 13:30:31 +08:00
zhiweijian
763406b4cc
Component/bt: fix memory leak in SMP
2017-12-20 10:30:31 +08:00
Jiang Jiang Jian
04e1195f41
Merge branch 'bugfix/btdm_send_data_length_req_after_read_feature_complete' into 'master'
...
component/bt: send data length request by host after read feature complete
See merge request !1639
2017-12-19 20:18:50 +08:00
Jack
0a1f81dc01
esp_timer:fix three bugs about timer get and timer alarm where overflow is not correct
2017-12-19 20:05:55 +08:00
Jeroen Domburg
569bfad2e3
Fix the clock subsystem so it doesn't undo the weird condition spiram_psram.c jams the enable/reset bits of SPI3 in when 80MHz mode is selected anymore
2017-12-19 19:12:58 +08:00
Jiang Jiang Jian
709d19f99e
Merge branch 'feature/eth_set_mac_addr' into 'master'
...
emac:add set_eth_mac api
See merge request !1604
2017-12-19 17:40:36 +08:00
Jiang Jiang Jian
9c2db2ea7a
Merge branch 'bugfix/btdm_optimiz_adv_cb_func' into 'master'
...
Bugfix/btdm optimiz adv cb func
See merge request !1619
2017-12-19 17:35:00 +08:00