Ivan Grokhotkov
0b186bc4e3
Merge branch 'feature/esp_event_loop_examples_wifi' into 'master'
...
examples/wifi,ethernet,system: use esp_event library for event handling
See merge request idf/esp-idf!3765
2019-04-12 13:55:15 +08:00
Ivan Grokhotkov
0bca9d20d8
Merge branch 'feature/esp_event_loop_library_compat_base' into 'master'
...
Implement Wi-Fi, Ethernet, IP event handling based on esp_event library
Closes IDF-37 and IDF-267
See merge request idf/esp-idf!3635
2019-04-12 13:54:18 +08:00
Angus Gratton
f2ce4fc81b
Merge branch 'bugfix/enb_secboot_post_flash_enc' into 'master'
...
Enable secure boot only after encrypting flash
Closes IDF-234
See merge request idf/esp-idf!4709
2019-04-12 13:33:50 +08:00
Angus Gratton
e259f3eb70
Merge branch 'feature/unit_test_tag_leaks' into 'master'
...
Add support a [leaks] tag for UT
Closes IDF-143
See merge request idf/esp-idf!4333
2019-04-12 09:31:23 +08:00
Konstantin Kondrashov
5021129e71
Add support a [leaks] tag for UT
2019-04-12 09:31:23 +08:00
Krzysztof Budzynski
3ec7bec6a7
Merge branch 'doc/review_system_log-index' into 'master'
...
Review log.rst and index.rst files in api-reference/system
See merge request idf/esp-idf!4738
2019-04-11 15:33:39 +08:00
Kirill Chalov
a01ec59f74
Review log.rst and index.rst files in api-reference/system
2019-04-11 15:33:38 +08:00
Ivan Grokhotkov
b4056560c0
examples/wifi: use esp_event library to handle events
2019-04-11 12:32:03 +08:00
Ivan Grokhotkov
11355c4162
examples/system: use esp_event library to handle events
2019-04-11 12:32:03 +08:00
Ivan Grokhotkov
2a48db0f48
examples/ethernet: use esp_event library to handle events
2019-04-11 12:32:03 +08:00
Ivan Grokhotkov
70eda3d221
Merge branch 'feature/gcc8_use_bundled_newlib' into 'master'
...
Use newlib headers and libraries from toolchain when compiling with GCC 8.2
See merge request idf/esp-idf!4450
2019-04-11 12:19:29 +08:00
Ivan Grokhotkov
25784ba87a
wifi: don’t disable event handling for SoftAP
...
Events are needed to initialise the tcpip_adapter and start the DHCP server
2019-04-11 12:05:27 +08:00
Ivan Grokhotkov
74cd8dac9d
esp_event: don’t warn if no handlers are present for specific event
2019-04-11 12:05:27 +08:00
Ivan Grokhotkov
198d7d4754
tcpip_adapter: unregister shutdown handlers, don’t fail on repeated registration
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
b1a722b2ca
system_api: return error on repeated registration of shutdown handler
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
bd309a133f
system_api: add esp_unregister_shutdown_handler
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
b94fcb192e
event: re-add wifi disconnect reason logging ( e621e0af
)
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
6890ea09cd
docs: add event handling API guide
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
a2d59525e5
mdns: use esp_event library to handle events
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
b1d1e37f87
event loop: re-implement based on esp_event library
...
Includes ds2ds unit test fix, iperf example test fix
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
1872e34115
tcpip_adapter: add event declarations
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
c001553027
ethernet: add event declarations
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
8b57fe9515
wifi: add event declarations
2019-04-11 12:04:58 +08:00
Ivan Grokhotkov
e37b0ad648
esp_event: move trailing semicolons out of defines
2019-04-11 12:04:58 +08:00
Jiang Jiang Jian
76b39403ad
Merge branch 'bugfix/wifi_spike_power' into 'master'
...
esp32: fix the issue that the spike transmit power of WiFi is higher than configured when WiFi and Bluetooth coexist
See merge request idf/esp-idf!4611
2019-04-11 11:49:26 +08:00
Angus Gratton
0b59b6069e
Merge branch 'feature/post_events_from_isr' into 'master'
...
Support posting events from ISR
See merge request idf/esp-idf!4283
2019-04-11 09:15:13 +08:00
Anton Maklakov
a567b6c1f6
pthread: Use a definition only if we have the old toolchain
2019-04-10 21:07:10 +07:00
Anurag Kar
62b0d51c02
Enable secure boot only after encrypting flash
...
This prevents a device from being bricked in case when both secure boot & flash encryption are enabled and encryption gets interrupted during first boot. After interruption, all partitions on the device need to be reflashed (including the bootloader).
List of changes:
* Secure boot key generation and bootloader digest generation logic, implemented inside function esp_secure_boot_permanently_enable(), has been pulled out into new API esp_secure_boot_generate_digest(). The enabling of R/W protection of secure boot key on EFUSE still happens inside esp_secure_boot_permanently_enable()
* Now esp_secure_boot_permanently_enable() is called only after flash encryption process completes
* esp_secure_boot_generate_digest() is called before flash encryption process starts
2019-04-10 18:17:58 +05:30
Renz Christian Bagaporo
659f1a1253
esp_event: test posting from interrupt handler
2019-04-10 18:06:05 +08:00
Renz Christian Bagaporo
2b914f2d22
esp_event: allow posting events from ISRs
2019-04-10 18:06:05 +08:00
Renz Christian Bagaporo
c43a83596b
ci: add unit test job
2019-04-10 18:06:05 +08:00
Angus Gratton
a9425cd045
Merge branch 'bugfix/http_client_redirection' into 'master'
...
Fix url redirection issue
See merge request idf/esp-idf!4623
2019-04-10 14:48:22 +08:00
Anton Maklakov
2e6c8cdce3
esp32: disable -Wframe-address
...
Since the behavior is well defined on Xtensa with Window ABI we can
suppress a frame-address warning. Also fix the CMAKE_C*_FLAGS parsing.
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
5719cd6fac
newlib: when compiling with GCC8, use newlib headers and libraries from toolchain
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
05aab5c0b9
newlib: force including IDF locks implementation
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
898b4bdf4d
newlib: when compiling with GCC8, use newlib headers and libraries from toolchain
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
8c2f2867d8
esp_rom: don’t include locale functions when compiling with newlib 3
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
e84b26f531
esp_rom: export newlib functions as strong symbols
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
31b4fc8eb8
pthread: add dummy implementation of pthread_setcancelstate
...
Used by new versions of newlib in stdio functions.
2019-04-10 13:48:57 +08:00
Ivan Grokhotkov
d15e18aa5d
newlib: fixes for compatibility with newlib 3.0
2019-04-10 13:48:57 +08:00
Ivan Grokhotkov
4770acf1cb
newlib: add missing tzset() to the time test
2019-04-10 13:48:57 +08:00
Anton Maklakov
5a203a5371
sysview: fix test case for compatibility with new binutils
...
Since the ‘addr2line’ works correctly in the new version of binutils,
line numbers are different.
2019-04-10 13:48:57 +08:00
Ivan Grokhotkov
7027d2dfe8
spi_master: compile as C11 due to use of stdatomic.h
...
stdatomic.h is available both in newlib and GCC include directories.
Normally (if you invoke the compiler without any flags) GCC include
directories are first on the list, so GCC’s stdatomic.h is used. In
IDF, we used to pass newlib include path as an extra include
directory, so newlib’s stdint.h got included instead.
Newlib 2.2.0 stdatomic implementation is compatible with -std=gnu99
but incompatible with -std=gnu11. And GCC doesn’t support atomic_load
with -std=gnu99 (it’s a C11 feature). So when we used atomic_load
with -std=gnu99, it worked due to newlib’s header.
Since we are no longer going to be including newlib headers into IDF,
GCC stdatomic will be used instead. Hence, add -std=gnu11 for source
files which use atomic features.
2019-04-10 13:48:57 +08:00
Vikram Dattu
a875505546
Fix url redirection issue.
...
Operation:
In `esp_http_client_set_url`, we check for if old_host is same as new_host.
Delete and open new connection if host is different.
Issue:
We just pointed `client->connection_info.host` to `old_host` and reassigned it.
This made old_host and new_host always point to same location and hence, using old_host with new request.
Fix:
Made a separate copy for old_host using strdup.
Closes https://github.com/espressif/esp-idf/issues/2631
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-04-10 05:40:16 +00:00
Angus Gratton
c064e00842
Merge branch 'bugfix/make_bootloader_depends_on_target' into 'master'
...
make bootloader depend on IDF_TARGET
See merge request idf/esp-idf!4704
2019-04-10 13:07:52 +08:00
XiaXiaotian
c580eecf89
esp32_wifi: fix the issue that the spike transmit power of WiFi is higher
...
than configured when WiFi and Bluetooth coexist
2019-04-10 10:19:55 +08:00
Jiang Jiang Jian
83d2ff07c6
Merge branch 'bugfix/increase_block_scan_timeout_value' into 'master'
...
esp_wifi: increase block scan timeout value
Closes WIFI-396
See merge request idf/esp-idf!4695
2019-04-09 20:45:21 +08:00
Angus Gratton
2cf4a69f9b
Merge branch 'bugfix/ws_transport_crash_on_connect_fail' into 'master'
...
transport_ws: Stop connecting when the parent's connect call has failed
See merge request idf/esp-idf!4701
2019-04-09 10:19:47 +08:00
Angus Gratton
911e503a36
Merge branch 'bugfix/prov_fix_conn_id' into 'master'
...
Unified Provisioning: Miscellaneous fixes in BLE
See merge request idf/esp-idf!4691
2019-04-09 09:28:18 +08:00
liu zhifu
005f95e3f3
esp_wifi: increase WiFi block scan timeout value
...
Increase WiFi block scan internal timeout value.
2019-04-09 09:24:34 +08:00