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
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
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
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
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
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
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
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
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
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
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
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
Ivan Grokhotkov
487210221b
esp_timer: add internal function to adjust time
2018-04-26 18:52:45 +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
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
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
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
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
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
Liu Zhi Fu
2461a780aa
more
2018-04-23 19:09:46 +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
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
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
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
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
f65870566a
crosscore_int: use _ISR version of portENTER/EXIT_CRITICAL in ISR
2018-04-19 18:28:55 +05:30
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
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
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
907fc1167a
gpio: add special GPIO signal values
2018-04-11 11:06:50 +08:00
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
Roland Dobai
744c2dcdd9
Resolve problems found by enabling -Wwrite-strings compilation flag
2018-04-10 08:53:43 +02: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
Angus Gratton
97a382077f
wifi: Add WIFI_PS_MODEM for backwards compatibility with V3.0 API
2018-04-09 16:55:38 +10:00
Tian Hao
1bde34c1f1
component/esp32 : remove pm gpio dbg
2018-04-09 14:33:48 +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
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
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
Tian Hao
58e7464dc0
component/esp32 : clear some minor thingsw about PM and coexistence
2018-04-03 20:13:49 +08:00