krzychb
a1ebeed303
Changed initialization sequence of application tracing component on APP CPU so it follows completion of initialization of the same component on PRO CPU. Previously, because of missing locking mechanism, both components were printing logs to UART at the same time. As results logs contained only corrupted characters / were not legible at all. Internal tracking: esp-idf/openocd-esp32, Issue 15
2017-09-14 20:47:43 +02:00
yulong
09a3e4fd58
squesh the commit.
...
component/bt: Change the idf test KnownIssues file.
component/bt: Fixed the bug of gattc mutilple read.
2017-09-14 09:35:36 -04:00
Jiang Jiang Jian
4c97fc04ca
Merge branch 'bugfix/optimize_lwip_loopback_route' into 'master'
...
optimize lwip route when loopback open and in "APSTA" mode
See merge request !1252
2017-09-14 21:07:58 +08:00
Jiang Jiang Jian
5aa52709c2
Merge branch 'bugfix/fix_some_wifi_lib_bugs' into 'master'
...
Fix some wifi lib bugs
See merge request !1255
2017-09-14 20:39:02 +08:00
Jiang Jiang Jian
c74d944edf
Merge branch 'feature/refractor_smartconfig' into 'master'
...
Refractor smartconfig
See merge request !1253
2017-09-14 20:38:30 +08:00
Jeroen Domburg
0460069582
Merge branch 'bugfix/panic_dport_no_mutex' into 'master'
...
Panic: stop dport access handler without trying to use a lock
See merge request !1244
2017-09-14 18:07:06 +08:00
Jiang Jiang Jian
fff90da8d6
Merge branch 'bugfix/btdm_gatt_read_by_type_bug' into 'master'
...
component/bt: Fix gatt read by type response bug
See merge request !1102
2017-09-14 17:24:02 +08:00
zhangyanjiao
164006509f
optimize lwip route when loopback open and in "APSTA" mode
2017-09-14 16:19:05 +08:00
XiaXiaotian
6bfbe6e4ed
Fix some wifi lib bugs
...
1. add adc2 coexistence
2. change NOW() to WDEV_NOW()
3. call ets_timer_done() before calling ets_timer_setfn()
4. fix the bug that api lock is not unlocked when call esp_wifi_stop()
twice
5. more hmac tx buffer limit from 32 to 64.
2017-09-14 15:19:46 +08:00
Jeroen Domburg
6d95934a3c
Make 80MHz PSRAM work as well, add testcase for weirdness reported on esp32 forums, clean up unused define in psram code
2017-09-14 10:47:44 +08:00
Jeroen Domburg
875ae6a134
Add option to allocate external RAM using heap_alloc_caps
2017-09-14 10:47:44 +08:00
Jiang Jiang Jian
574daad1c4
Merge branch 'feature/btdm_update_to_bluedroid7.1_l2cap' into 'master'
...
component/bt: Added the new feature of the l2cap layer from the bluedroid new version 7.1.1
See merge request !1087
2017-09-13 20:39:38 +08:00
Jiang Jiang Jian
33a4a6a510
Merge branch 'feature/add_espnow' into 'master'
...
add ESPNOW feature
See merge request !1061
2017-09-13 20:32:53 +08:00
Jiang Jiang Jian
b70329040d
Merge branch 'bugfix/btdm_gatts_notify_stress_test_crash' into 'master'
...
component/bt: fix bug for gatts notify stress test crash
See merge request !1245
2017-09-13 20:27:17 +08:00
Ivan Grokhotkov
a91b330b49
Merge branch 'bugfix/spiffs_submodule' into 'master'
...
spiffs: Track spiffs submodule in component
See merge request !1251
2017-09-13 18:02:32 +08:00
XiaXiaotian
6753f6cb59
Refractor smartconfig
...
Move code of receiving smartconfig packets and getting password to
wifi lib. Open source code of sending smartconfig ACK to cellphone
in IDF.
2017-09-13 16:55:30 +08:00
Angus Gratton
b687e1a41f
spiffs: Track spiffs submodule in component
...
Will now automatically initialise as part of "make".
2017-09-13 14:54:33 +10:00
Jiang Jiang Jian
f1e3b0df02
Merge branch 'feature/adv_scan_simultaneously' into 'master'
...
component/bt : support adv & scan simultaneously
See merge request !1209
2017-09-13 11:50:57 +08:00
Jiang Jiang Jian
ea7a09c3e4
Merge branch 'bugfix/btdm_sec_config' into 'master'
...
component/bt : fix btc security storage bug
See merge request !1161
2017-09-13 11:46:34 +08:00
zhiweijian
8921a36828
Component/bt: fix bug for gatts notify stress test crash
2017-09-13 11:19:58 +08:00
Jeroen Domburg
9c56d9e75e
Make sure functions that are in ROM in the non-external-ram-workaround version, are in RAM (and not in flash) in the ext-ram workaround version.
2017-09-13 10:36:56 +08:00
Angus Gratton
df888a4f54
Merge branch 'bugfix/openocd_top_used_priority' into 'master'
...
freertos: place uxTopUsedPriority into DRAM
See merge request !1246
2017-09-13 09:02:27 +08:00
Yulong
1759a47060
This is a combination of 4 commits.
...
squash again all the commit.
component/bt: Change all the gattc API && bta gattc layer.
component/bt: Debug the code and change the btc_ble_gattc_get_db method.
component/bt: Change the gatt read API interface.
component/bt: Reconstruction the BTA_gattc_cache code.
component/bt: Change back the bluedroid_get_status to marco.
component/bt: Added the serch service res start_handle & end_handle to the result.
component/bt: Change the gattc docs format.
component/bt: Change the docs format.
component/bt: fix the read char value bug.
component/bt: change the gattc_get_attr_count method.
component/bt: Change back the bta_gattc write ccc code.
component/bt: Change the gattc api docs format
component/bt: Change the gattc API docs.
component/bt: Change the prepare write descriptor method to avoid the exection.
Component/bt: modify gatt clinet demo with new API
component/bt: Change the p_src_data->read.p_value to avoid exection.
compoent/bt: Change the bugfix of gattc unreg for the notify.
Modify gattc security demo
component/bt: Change the log error.
Component/bt: modify gattc_multi_connect demo
componnet/bt: Change the bta_gattc_cache sdp include.
component/bt: Change the start_handle & end_handle not from the service.
component/bt: Change the gattc API docs.
component/bt: Change the return issues.
component/bt: Fixed the include service bug.
component/bt: Modify gattc_multi_connect demo , add scan log
component/bt: Fixed the BTA_GATTC_GetIncludeService start handle & end handle error bug.
component/bt: Fix the invalid handle of the get all char issues.
component/bt: Fix the bug with get_db_size_with_type of the start handle & end_handle not correted issue.
component/bt: Fixed the get secondly service num not correct issue.
component/bt: Fixed the last service handle not correted issue.
2017-09-12 07:36:02 -04:00
Ivan Grokhotkov
b6d82eeceb
Merge branch 'feature/gcov_over_apptrace' into 'master'
...
esp32: Adds gcov over JTAG feature
See merge request !1117
2017-09-12 18:54:26 +08:00
Tian Hao
00a7cdbb0b
component/bt : support adv & scan simultaneously
...
1. Occupy conn[9] for adv. The max connection number of bluetooth controller decrease to 9. (Previously, it is 10)
2. modify the enum of setting BLE TX power corresponding to connection's.
3. fix libbtdm_app.a cwitch jump table
2017-09-12 16:10:30 +08:00
Ivan Grokhotkov
820df6aa27
Merge branch 'bugfix/btdm_nvs_get_str_or_blob' into 'master'
...
fix: Fix bug of function nvs_get_str_or_blob
See merge request !1182
2017-09-12 12:20:42 +08:00
XiaXiaotian
e4ba31a8b9
add ESPNOW feature
...
ESPNOW is a kind of WiFi communication bettween WiFi devices, no
matter they are connected to each other or not. Once two WiFi
devices are paired, they can send data to or receive data from
each other. The data is transmitted in action frame which can
be encrypted with CCMP method. ESPNOW also support mutilcast frame
transmitting.
2017-09-12 12:12:13 +08:00
Ivan Grokhotkov
23f10e1a57
Merge branch 'feature/uart_software_flow_control' into 'master'
...
uart: Add api call to switch on hardware support for 'software' flow control. (github #890 )
See merge request !1215
2017-09-12 12:11:11 +08:00
Ivan Grokhotkov
868b0ce228
Merge branch 'bugfix/list_node_naming' into 'master'
...
Fix "list_node" name conflict in bluedroid & dhcp_server
See merge request !1216
2017-09-12 12:10:54 +08:00
Ivan Grokhotkov
635bd9ac9e
Merge branch 'bugfix/btdm_disable_gatts' into 'master'
...
component/bt: fix build error when GATTS is disabled in menuconfig
See merge request !1232
2017-09-12 12:06:41 +08:00
Ivan Grokhotkov
f4ddaa7a11
Merge branch 'bugfix/crashed_core_dump' into 'master'
...
esp32: Fixes crash during core dump.
See merge request !1239
2017-09-12 11:32:48 +08:00
me-no-dev
dd87deb278
Add SPIFFS Component to IDF
2017-09-11 19:56:40 +03:00
Alexey Gerenkov
4e0c3a0415
esp32: Fixes crash during core dump.
...
Removes piece of debugging code introduced by 8d43859b
.
2017-09-11 17:20:42 +03:00
Ivan Grokhotkov
64bce3ce59
freertos: place uxTopUsedPriority into DRAM
...
When debugging crashes caused by flash cache access errors, OpenOCD may
request the value of uxTopUsedPriority when cache is disabled. Placing
it into IRAM to avoid an error in such case.
2017-09-11 20:15:27 +08:00
Ivan Grokhotkov
1e7c3854d3
Merge branch 'bugfix/warn_on_invalid_xtal_freq' into 'master'
...
soc/rtc: warn if detected XTAL frequency does not match configured one
See merge request !1242
2017-09-11 18:15:11 +08:00
Jeroen Domburg
b3fd494e71
Panic: stop dport access handler without trying to use a lock
2017-09-11 17:24:22 +08:00
Ivan Grokhotkov
de038f502c
Merge branch 'feature/gpio_channel_macro' into 'master'
...
feat(global): add macros for GPIO->channel lookup
See merge request !1170
2017-09-11 12:15:08 +08:00
Ivan Grokhotkov
5a88f90a33
soc/rtc: warn if detected XTAL frequency does not match configured one
...
Since 9a8c0392
, XTAL frequency is set to 40MHz by default, and users
of 26MHz boards need to select 26MHz manually. Most users are not aware
of this change, and existing getting started guides do not mention that
XTAL frequency needs to be set for some boards. So users are left with
garbage output from UART without any clue what to check.
This change adds a warning in case specific XTAL frequency was set, and
it does not match automatically detected one. This should help users
fix the issue.
2017-09-11 11:42:26 +08:00
baohongde
87031f9457
component/bt: fix nvs_get_str_or_blob length output error
2017-09-08 12:02:35 +08:00
baohongde
e1bd51af80
component/bt: fix nvs_get_str_or_blob length output error
2017-09-08 12:02:35 +08:00
baohongde
f3be0395d2
component/bt: fix nvs_get_str_or_blob length output error
2017-09-08 12:02:35 +08:00
Ivan Grokhotkov
e12967297d
Merge branch 'feature/docs_touch_pad_api' into 'master'
...
Touch Pad driver overview
See merge request !1195
2017-09-08 11:55:27 +08:00
wangmengyang
21586063de
component/bt: fix build error when GATTS is disabled in menuconfig
2017-09-08 11:34:59 +08:00
Ivan Grokhotkov
33cb16fd2a
esp32: fix cache error interrupt handler
...
Cache error interrupt would read DPORT registers, which caused DPORT
access protection to kick in. Disable DPORT protection before doing the
reads.
2017-09-08 09:59:09 +08:00
Alexey Gerenkov
891f0db31d
esp32: Adds gcov over JTAG feature
...
Implements function to dump GCOV data to host via JTAG.
The following functionality was added:
- Host file I/O
- GCOV runtime I/O stubs
- GCOV example
2017-09-07 18:13:16 +03:00
Tian Hao
38102f4148
component/bt : fix btc security storage bug
...
1. Remove the bond_device global variable.
2. Fix bond_device add cause memory exception
3. Modify the code location.
4. modify thread security
5. remove esp_ble_clear_bond_device_list() API
6. modify esp_ble_get_gond_device_list() to return list immediately, rather than wait event.
7. modify the gatt_security_server demo to show how to remove all the bonded devices.
8. fix some code bugs may cause something error.
2017-09-07 19:37:49 +08:00
Ivan Grokhotkov
3c470e7c43
Merge branch 'bugfix/rmt' into 'master'
...
RMT 2 fixes: Rename one API and specify wait_time in another API
See merge request !896
2017-09-07 18:03:08 +08:00
Ivan Grokhotkov
5425d8569c
Merge branch 'feature/pthread_api' into 'master'
...
esp32: pthread API
See merge request !1146
2017-09-07 17:49:42 +08:00
Ivan Grokhotkov
40df6546c0
Merge branch 'feature/multi_heap_poisoning' into 'master'
...
Heap tracing & poisoning features
See merge request !749
2017-09-07 17:47:51 +08:00
Ivan Grokhotkov
310269bcdc
Merge branch 'bugfix/tcpip_adapter_ethernet' into 'master'
...
tcpip_adapter: Fix bug which prevents setting a static IP address for Ethernet interface (github #657 )
See merge request !1178
2017-09-07 17:47:20 +08:00
Ivan Grokhotkov
de06a0b8a7
Merge branch 'feature/mbedtls2_6_0' into 'master'
...
Update mbedTLS to version 2.6.0
See merge request !1224
2017-09-07 17:45:45 +08:00
Ivan Grokhotkov
b9dfb437ab
Merge branch 'bugfix/intr_free' into 'master'
...
fix(intr): fix the logic for allocating and freeing interrupts.
See merge request !1124
2017-09-07 17:45:18 +08:00
Angus Gratton
c503a01388
mbedtls: Rename net to net_sockets (in line with 2.4.0 API change)
2017-09-07 18:02:39 +10:00
Angus Gratton
3a08ec7b3d
mbedtls: Re-apply: MBEDTLS_SHA512_ALT also replaces mbedtls_sha512_process()
...
IDF-specific patch.
2017-09-07 18:02:26 +10:00
Angus Gratton
3142997830
mbedtls: Re-apply ECP memory leak fix
...
Fix not yet submitted upstream.
(Previously applied in ffefeef5ea
)
2017-09-07 18:02:26 +10:00
Angus Gratton
736db688a8
mbedtls: Re-apply MBEDTLS_BIGNUM_ALT & related macros for custom bignum functions
...
(IDF-specific patch.)
2017-09-07 18:02:26 +10:00
Angus Gratton
ae382b3bfa
mbedtls: Update to 2.6.0 release (without IDF-specific patches)
2017-09-07 18:02:26 +10:00
Angus Gratton
f8339fc1bd
newlib: Avoid deprecation warning calling system_get_time() from system_relative_time()
2017-09-07 16:32:05 +10:00
Angus Gratton
73b3ae8a2d
lwip: Use hardware RNG for LWIP_RAND(), use LWIP_RAND() for random port assignment
2017-09-07 16:32:05 +10:00
Angus Gratton
72995bfcec
doc: Add docs for heap trace & poisoning
2017-09-07 16:32:05 +10:00
Angus Gratton
ec498ad86d
libgcc: Place assembly functions (including __xtensa_libgcc_window_spill) in IRAM
2017-09-07 16:32:05 +10:00
Angus Gratton
1c7b8aa3a5
Heap tracing support
2017-09-07 16:32:05 +10:00
Angus Gratton
5c417963eb
multi_heap: Add heap poisoning features
2017-09-07 16:32:05 +10:00
Angus Gratton
5222428dde
unit tests: Check heap integrity after each test, check for obvious leaks
2017-09-07 16:32:05 +10:00
Angus Gratton
1cb0f30933
heap_caps: Add heap_caps_check_integrity() function
2017-09-07 16:32:05 +10:00
Ivan Grokhotkov
63e1e4e502
Merge branch 'test/modify_mtu_cases' into 'master'
...
test: update BLE GATT MTU cases
See merge request !1223
2017-09-07 14:27:41 +08:00
chensheng
ac5e1f65b2
test:update BLE GATT MTU cases
2017-09-07 13:46:13 +08:00
Jiang Jiang Jian
5146289eea
Merge branch 'feature/update_wifi_lib_for_some_feature_and_bugfix' into 'master'
...
esp32: update wifi lib for a bunch of small feature and bugfix
See merge request !1222
2017-09-07 13:24:24 +08:00
Ivan Grokhotkov
8f5e4bacf3
Merge branch 'bugfix/spi_cache_disable_adjustments_iram' into 'master'
...
Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code
See merge request !1208
2017-09-07 11:02:21 +08:00
Liu Zhi Fu
a568ad2c9d
esp32: update wifi lib for a bunch of small feature and bugfix
...
1. Update RTC V229: add BT AGC saturation protection
2. Update PHY V359: (1). esp_init_data_v2.bin -- modify WIFI and BT RX gain table Setting
(2). modify phy_close_rf()
(3). noisefloor add limit and no print
3. WiFi supports modem sleep dynamic frequency switch
4. Fix disabling AMPDU cause esp_wifi_init fail issue
5. Fix sniffer mode cause WiFi can't connect issue
6. Optimize an internal rx buffer full issue
7. Rollback the internal wifi init flag when wifi init fail
2017-09-07 11:01:12 +08:00
michael
08b9fbc242
feat(global): add macros for GPIO->channel lookup
...
including: macros for dac, adc, touch, rtc_gpio, uart and clk_out.
TW#13970
2017-09-07 10:40:25 +08:00
Angus Gratton
4809c70899
Merge branch 'feature/register_heaps_runtime' into 'master'
...
heap: Support adding new heap regions at runtime
See merge request !1159
2017-09-07 10:18:21 +08:00
Angus Gratton
dcd2f71d11
Merge branch 'bugfix/http_to_https_url_changes' into 'master'
...
Mass replacement of http with https urls, fixed broken urls
See merge request !1221
2017-09-07 10:16:43 +08:00
Tian Hao
b8b2816f67
component/bt : fix unloaded memory(0x3fff0000 overwrite) bug
2017-09-06 21:45:18 +08:00
Jeroen Domburg
b24d2c4cf3
Make sure cache is disabled/enabled when *both* CPUs are running inside the iram guard code
2017-09-06 16:34:36 +08:00
Yulong
371c55138e
component/bt: Added the new feature of the l2cap layer from the bluedroid new version 7.1.1
2017-09-06 04:25:57 -04:00
michael
73ba29e6df
refactor(intr): remove useless tags in the debug log.
2017-09-06 15:20:04 +08:00
michael
c82e51cf79
fix(intr): always assign the same intr to a same source, disable the source only when all the handlers disabled.
...
also document handlers sharing a same source.
TW#13454, https://github.com/nodemcu/nodemcu-firmware/issues/1874
Breaking change: handles assigned to a same source should have the same flag now.
2017-09-06 15:20:01 +08:00
krzychb
672390c458
Mass replacement of http with https urls, fixed broken urls
2017-09-06 08:16:01 +02:00
Alexey Gerenkov
5dea0fca15
esp_pthread_init constructor attr was removed
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
5094965e98
According to comments
2017-09-06 10:30:23 +08:00
Ivan Grokhotkov
e3b86e7bdb
pthread: handle statically initialized mutexes
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
20942421c3
According to review comments
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
8859dab10c
Cleanup
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
bf8ff8c98b
1) Thread detach functionality added
...
2) Recursive mutexes support
3) C++ test updated
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
c631c6b358
1) Mux API was added
...
2) C++ test for threading and mux functions
2017-09-06 10:30:23 +08:00
Alexey Gerenkov
0b09c7006d
pthread: Initial version of thread API
2017-09-06 10:30:23 +08:00
Jeroen Domburg
604308f4ab
Merge branch 'bugfix/soft_reboot_psram' into 'master'
...
Fix rebooting when external RAM is active
See merge request !1207
2017-09-05 15:43:30 +08:00
Angus Gratton
74d5f85c53
Merge branch 'feature/build_warn_undefined_vars' into 'master'
...
Add --warn-undefined-variables to MAKEFLAGS (github #138 )
See merge request !1214
2017-09-05 15:39:48 +08:00
Angus Gratton
9471ce9135
dhcpserver: Move DHCP option names to a separate header
...
Avoids naming conflicts. Resolves TW13826.
2017-09-05 17:28:40 +10:00
Angus Gratton
48333aea48
bluedroid: Move fixed_queue.h to implementation of hci_layer.c
...
Avoids pulling types like list_node into the public interface.
Closes https://github.com/espressif/esp-idf/issues/948
2017-09-05 17:14:40 +10:00
Angus Gratton
1be6bf6790
dhcpserver: Move list_node to implementation not public interface
...
Was unused in the public interface.
Closes https://github.com/espressif/esp-idf/issues/948
2017-09-05 17:14:23 +10:00
Alex Burr
93cc3a77cb
uart: Add api call to switch on hardware support for 'software' flow control.
...
Cherry-picks https://github.com/espressif/esp-idf/pull/890
2017-09-05 16:30:21 +10:00
krzychb
ba42c46cb3
Touch Pad driver overview
2017-09-05 08:28:44 +02:00
Deomid Ryabkov
1ea082a053
Expand vars before splitting fields
...
This allows making entire partition table line a variable.
Merges https://github.com/espressif/esp-idf/pull/841
2017-09-05 16:23:54 +10:00
Angus Gratton
f17bbff4b5
Merge branch 'feature/tcp_msl_menuconfig' into 'master'
...
components/lwip: Expose TCP_MSL in menuconfig. (github #783 )
See merge request !1175
2017-09-05 14:18:36 +08:00
Angus Gratton
8670844acf
build system: Restore ifdef/ifndef in Makefiles, clean up examples build
2017-09-05 16:11:03 +10:00
Deomid Ryabkov
9903ea1c11
Add --warn-undefined-variables to MAKEFLAGS
...
Fix warnings where undefined vars are used.
Make Kconfig emit "FOO=" for unset bool options
To ensure make variables are always defined, even if empty.
When writing auto.conf, include symbols disabled by dependency to make sure all make variables are always defined.
Fixes espressif/esp-idf#137
Cherry-picked from https://github.com/espressif/esp-idf/pull/138
2017-09-05 16:10:46 +10:00
Angus Gratton
167f2cf9e1
Merge branch 'bugfix/nvs_item_crc_check' into 'master'
...
nvs: check CRC of items on full pages
See merge request !1200
2017-09-05 12:09:40 +08:00
Angus Gratton
5361c08989
heap: Support adding new heap regions at runtime
...
To facilitate this, the list of registered heap regions is now a linked list
(allowing entries to be appended at runtime.)
2017-09-05 14:07:02 +10:00
Ivan Grokhotkov
8433fed7f4
Merge branch 'bugfix/core_dump_loop' into 'master'
...
esp32: Fixes infinite loop caused by exception during core dumping
See merge request !1210
2017-09-05 11:40:31 +08:00
Angus Gratton
74a017e1e4
Merge branch 'bugfix/mbedtls_net_failures' into 'master'
...
mbedtls: Don't assign ctx->fd until connect() or bind() has succeeded
See merge request !1211
2017-09-05 11:28:43 +08:00
Ivan Grokhotkov
9362d66812
Merge branch 'feature/adc_calibration' into 'master'
...
Bugfix/ added esp_adc_cal include guards
See merge request !1192
2017-09-05 11:23:05 +08:00
Ivan Grokhotkov
c007213fed
Merge branch 'bugfix/deep_sleep_wakeup_stub' into 'master'
...
deep sleep: don't use protected DPORT access in wake stub
See merge request !1194
2017-09-05 11:22:52 +08:00
Alexey Gerenkov
fb8b0c534a
esp32: Fixes infinite loop caused by exception during core dumping
2017-09-05 11:15:27 +08:00
Ivan Grokhotkov
51e8f439b8
Merge branch 'bugfix/cpu_clk_disable_spi' into 'master'
...
spi_master, sdmmc: fix regressions due to peripherals being disabled by default
See merge request !1193
2017-09-05 10:41:51 +08:00
Angus Gratton
d531b56d93
Merge branch 'bugfix/spinlock_performance' into 'master'
...
freertos: Reduce CPU spinlock (portmux) overhead
See merge request !497
2017-09-05 09:16:10 +08:00
Angus Gratton
8ce09c2c1c
mbedtls: Don't assign ctx->fd until connect() or bind() has succeeded
...
Avoid leaking closed file descriptors via ctx->fd
Reported: https://esp32.com/viewtopic.php?f=13&t=2910&sid=8568b1fd93a4c8d5760628a638efc48b#p13620
2017-09-05 11:08:35 +10:00
Angus Gratton
11a87ca811
Merge branch 'bugfix/bootloader_ota_sel' into 'master'
...
Fix bootloader OTA regression
See merge request !1205
2017-09-05 07:25:08 +08:00
Ivan Grokhotkov
e93c33050e
ethernet: enable EMAC module clock on initialization
2017-09-04 22:43:52 +08:00
Ivan Grokhotkov
b38186dc43
sdmmc: use periph_ctrl to enable peripheral when initializing the host
2017-09-04 22:43:52 +08:00
Ivan Grokhotkov
956a28a95c
driver: add periph_ctrl support for SDMMC, SDIO slave, CAN, EMAC
2017-09-04 22:43:51 +08:00
michael
b834fcf78a
fix(spi_master): this fix the SPI MOSI output missing bug.
2017-09-04 22:43:51 +08:00
Jiang Jiang Jian
f254555a41
Merge branch 'feature/btdm_add_set_local_MTU_API_for_gatt' into 'master'
...
component/bt: add set local MTU API
See merge request !1152
2017-09-04 21:32:23 +08:00
Alexey Gerenkov
cf29dd47a9
apptrace lock acquire function was re-designed to minimize waiting time with disabled IRQs
2017-09-04 20:44:11 +08:00
Jeroen Domburg
0e74ec67be
Fix rebooting when PSRAM is active
2017-09-04 19:00:47 +08:00
Ivan Grokhotkov
9da1bf1a45
Merge branch 'bugfix/lwip_send_timeout' into 'master'
...
match sys tick with lwip_send_timeout
See merge request !1203
2017-09-04 18:19:59 +08:00
Angus Gratton
a19aaf2072
esp32: Update wifi lib to use new spinlock implementation
2017-09-04 19:11:51 +10:00
Angus Gratton
4486d4cb10
portmux: Add vPortCPUAcquireMutexTimeout() function
...
Refactor app_trace locking to use this function.
2017-09-04 19:11:51 +10:00
Angus Gratton
397c0bfb4b
freertos scheduler test: Free timer group interrupt handle when test finishes
2017-09-04 19:11:51 +10:00
Angus Gratton
5c996a1b29
freertos: Inline vPortCPUAcquireMutex/vPortCPUReleaseMutex into implementations
...
Further improves performance:
No contention -> 134 cycles
Recursion -> 117 cycles
Contention -> 323 cycles
2017-09-04 19:11:51 +10:00
Angus Gratton
db58a2732b
freertos: vPortCPUReleaseMutex() no longer returns a value
...
Unlocking a never-locked mutex is an assertion failure in debug mode.
In release mode, this further improves performance:
No-Contention -> 153 cycles
Recursion No-Contention -> 138 cycles
Contention -> 378 cycles
2017-09-04 19:11:51 +10:00
Angus Gratton
4d42b2d100
freertos spinlock/portmux: Reduce spinlocking overhead
...
Ref TW7117
Microbenchmarks in unit tests:
(All numbers in cycles per benchmarked operation):
Release mode
No lock contention lock/unlock - 301 -> 167 (-45%)
Recursive no contention lock/unlock - 289 -> 148 (-49%)
Lock contention two CPUs (lock/unlock) 699 -> 400 (-43%)
Debug mode
No lock contention lock/unlock - 355 -> 203 (-43%)
Recursive no contention lock/unlock - 345 -> 188 (-46%)
Lock contention two CPUs (lock/unlock) 761 -> 483 (-36%)
2017-09-04 19:11:51 +10:00
Angus Gratton
f2952de3a5
freertos spinlocks/portmux: Add combination unit tests & microbenchmarks
2017-09-04 19:11:51 +10:00
Angus Gratton
f487bb19d7
Merge branch 'bugfix/ci_build_examples_more' into 'master'
...
CI build_examples: Fix build flakiness
See merge request !1191
2017-09-04 16:02:12 +08:00
Angus Gratton
c275ad4ca4
build system: Add dependencies to component clean steps
...
Build directory must exist, component_project_vars.mk must be generated if it is going to be.
2017-09-04 17:40:15 +10:00
Angus Gratton
3dfcc312c8
ota_ops: Fix get_selected_boot_partition() in case there is no factory partition
...
get_selected_boot_partition() now follows the same basic logic as the bootloader to find the
default boot partition.
2017-09-04 17:37:28 +10:00
Angus Gratton
1cd2ce2471
bootloader: Fix regression preventing OTA updates
...
Regression introduced in 43e231c
.
Thanks to @yanbe for pointing out issue in https://github.com/espressif/esp-idf/pull/955
This is a different fix, tries to keep the behaviour that 43e231c
was aiming to correct (unnecessarily testing an
invalid slot more than once.)
2017-09-04 17:37:28 +10:00
zhangyanjiao
547b7b0246
match sys tick with lwip_send_timeout
2017-09-04 14:52:16 +08:00
Ivan Grokhotkov
c0269bc1cd
nvs: check CRC of items on full pages
...
Previously NVS did check CRC values of key-value pairs on the active
page, but the check for full pages was missing. This adds the necessary
check and a test for it.
2017-09-04 14:37:33 +08:00
Jeroen Domburg
c0510c4266
Merge branch 'feature/psram_in_address_space' into 'master'
...
Feature/psram in address space
See merge request !1069
2017-09-04 14:18:23 +08:00
Jeroen Domburg
153275b743
Merge branch 'bugfix/uart_5mbaud' into 'master'
...
Fix off-by-one in 5MBaud arg checking; propagate errors better
See merge request !1184
2017-09-04 12:06:33 +08:00
Jeroen Domburg
34372a091c
Add initial SPI RAM support. This adds support for an ESP-PSRAM32 chip connected to the default flash pins and GPIO 16 and 17. The RAM is mapped to address 0x3F800000, but otherwise ignored by esp-idf as of yet.
2017-09-04 12:05:49 +08:00
zhiweijian
f1c4eda373
Component/bt: add set local MTU API
...
- add esp_ble_gatt_set_local_mtu( ) API
- modify esp_ble_gattc_config_mtu(esp_gatt_if_t gattc_if, uint16_t conn_id)
- modify gattc demo
2017-09-01 21:55:28 +08:00
Jiang Jiang Jian
3a1de7dba3
Merge branch 'bugfix/btdm_fix_connection_parameters_update' into 'master'
...
component/bt: fix connection parameters update
See merge request !1099
2017-09-01 20:15:30 +08:00
Ivan Grokhotkov
b9ff771e2c
deep sleep: don't use protected DPORT access in wake stub
2017-09-01 18:35:42 +08:00
Jeroen Domburg
518edac42f
Add GD chip into qio data, so (at least my) ESP-WROVER uses QIO mode succesfully.
2017-09-01 16:53:05 +08:00
Ivan Grokhotkov
5666fc0a56
Merge branch 'feature/esp_timer_improvements' into 'master'
...
esp_timer improvements
See merge request !1172
2017-09-01 16:14:01 +08:00
Jeroen Domburg
fe140fe347
Fix off-by-one in 5MBaud arg checking; propagate errors better
2017-09-01 12:15:28 +08:00
Darian Leung
4fbeaba77f
Bugfix/ added esp_adc_cal include guards
2017-09-01 12:07:37 +08:00
Ivan Grokhotkov
f31efb697c
newlib: rename esp_setup_time_syscalls to esp_set_time_from_rtc
...
This function no longer sets up syscalls, and new name reflects its
purpose better.
2017-09-01 10:36:14 +08:00
Ivan Grokhotkov
d2acf1ce77
sleep: add light sleep, factor out APIs common for deep/light sleep
2017-09-01 10:36:14 +08:00
Ivan Grokhotkov
65b046f17f
dport access: introduce pause/resume instead of deinit
2017-09-01 10:36:14 +08:00
Ivan Grokhotkov
f8b719d911
soc/rtc: add sleep flag to control powerdown of VDD_SDIO
2017-09-01 10:36:14 +08:00
Ivan Grokhotkov
06af8cd086
esp_timer: return signed timestamp (int64_t)
...
Since timestamps are 64-bit, loosing one bit of range due to sign does
not present an issue, however for applications doing calculations on
timestamps, signed return type is more convenient.
2017-09-01 10:34:36 +08:00
Ivan Grokhotkov
c5632d3012
esp32: use ref_clock in esp_timer and delay tests
2017-09-01 10:34:36 +08:00
Ivan Grokhotkov
1af6384349
esp_timer: lock-free implementation of esp_timer_get_time
...
The implementation of esp_timer_get_time used a critical section, which
resulted in a call time of ~1.8us. To make esp_timer_get_time more
useable as a high-resolution time source, this change replaces the lock
with polling. Call time is reduced to ~0.7us.
2017-09-01 10:34:36 +08:00
Ivan Grokhotkov
c743bdac88
soc/rtc: round APB clock frequency to nearest MHz
2017-09-01 10:34:36 +08:00
Ivan Grokhotkov
d24e0dcc2c
Merge branch 'bugfix/ci_build_examples' into 'master'
...
ci: fix example builds and unit tests
See merge request !1188
2017-09-01 10:33:38 +08:00
Ivan Grokhotkov
d4e950d311
Merge branch 'feature/cxx_exceptions' into 'master'
...
Partial support for C++ exceptions
See merge request !930
2017-09-01 00:27:41 +08:00