Ivan Grokhotkov
1613044aef
Merge branch 'bugfix/restart_reconfigure_flash_pins' into 'master'
...
esp32: reconfigure SPI flash pins in esp_restart
See merge request !1492
2017-11-07 12:08:52 +08:00
Ivan Grokhotkov
a45e9c806d
Merge branch 'bugfix/new_task_watchdog_API_false_trigger' into 'master'
...
feat/New Task Watchdog API
See merge request !1380
2017-11-07 10:43:56 +08:00
Ivan Grokhotkov
5f6be9b4ce
esp32: reconfigure SPI flash pins in esp_restart
2017-11-06 16:44:26 +08:00
Jiang Jiang Jian
abacf8d2a0
Merge branch 'bugfix/rtc_and_restart_fixes' into 'master'
...
rtc_clk and esp_restart fixes
See merge request !1458
2017-11-04 01:34:38 +08:00
Liu Zhi Fu
13621852dd
esp32: add wifi lib which is compiled with psram gcc
...
Add psram wifi lib because it doesn't impact the WiFi throughput once the psram is not enabled in IDF menuconfig
2017-11-03 23:02:35 +08:00
Wangjialin
cea7dfbe90
psram: improve clock signal generation, increase drive strength
...
Also check the chip type when initializing.
2017-11-03 16:30:10 +08:00
Ivan Grokhotkov
a02b30ccda
efuse: add package definitions for PICOD2/D4
2017-11-03 15:49:10 +08:00
Ivan Grokhotkov
fb9c106bcb
soc/rtc: add function to get/set VDDSDIO configuration
...
Also consider case of VDDSDIO force powered on in rtc_sleep.
2017-11-03 15:49:09 +08:00
Darian Leung
9d63e1da4a
New Task Watchdog API (Revert of Revert)
...
This commit reverts the revert on the new task watchdog API. It also
fixes the following bug which caused the reversion.
- sdkconfig TASK_WDT_TIMEOUT_S has been reverted from the unit of ms back to the
unit of seconds. Fixes bug where projects using the new API without rebuilding sdkconfig
would cause the old default value of 5 to be interpreted in ms.
This commit also adds the following features to the task watchdog
- Updated idle hook registration to be compatible with dual core hooks
- Updated dual core hooks to support deregistration for cpu
- Legacy mode has been removed and esp_task_wdt_feed() is now replaced by
esp_task_wdt_reset(). esp_task_wdt_feed() is deprecated
- Idle hooks to reset are now registered/deregistered when the idle tasks are
added/deleted from the Task Watchdog instead of at Task Watchdog init/deinit
- Updated example
2017-11-02 16:47:51 +08:00
XiaXiaotian
27b52dfd18
fix some phy bugs
...
1. V366, fix a problem which initialize current can reach 800mA.
2. V365, fix a problem for pll_cap tracking in Coexist (BT & WIFI)
mode. The problem will make Coexist (BT & WIFI) WIFI AP mode TX
Fail in high temperature(>70).
3. V364, fix a bug of BT and Wifi coexist (hung in function of
force_wifi_mode())
2017-11-02 15:53:17 +08:00
XiaXiaotian
42cefc173f
refractor WiFi clock setting
...
Do not set WiFi clock in PHY initializing function, move it to WiFi
start/stop function.
2017-11-02 15:24:21 +08:00
wangmengyang
bd6394db92
component/bt: clean up WIFI_CLK_EN_REG settings for Bluetooth
...
1. move settings of WIFI_CLK_EN_REG for bluetooth into controller init/deinit APIs
2. modify the bit mask used in phy_rf init/deinit to use WIFI-BT shared bits
2017-11-02 15:24:21 +08:00
XiaXiaotian
50b6912bf8
Increase maximum number of WiFi dynamic transmitting buffer
2017-10-31 15:18:20 +08:00
XiaXiaotian
87d3986b87
Fix the return value of esp_now_send()
2017-10-31 15:18:20 +08:00
Deng Xin
ccfbecd25f
Wifi: bugfix of get wrong ap information in all channel scan
...
fix the issue get wrong ap information in all channel scan
2017-10-31 11:35:11 +08:00
Liu Zhi Fu
1195ced75c
esp32: reduce default wifi static tx buffer
...
Modify the the default WiFi static tx buffer from 32 to 16
2017-10-28 12:15:40 +08:00
Ivan Grokhotkov
eb5752c635
esp_restart: fix possible race while stalling other CPU, enable WDT early
...
Previously esp_restart would stall the other CPU before enabling RTC_WDT.
If the other CPU was executing an s32c1i instruction, the lock signal
from CPU to the arbiter would still be held after CPU was stalled. If
the CPU running esp_restart would then try to access the same locked
memory pool, it would be stuck, because lock signal would never be
released.
With this change, esp_restart resets the other CPU before stalling it.
Ideally, we would want to reset the CPU and keep it in reset, but the
hardware doesn't have such feature for PRO_CPU (it is possible to hold
APP_CPU in reset using DPORT register). Given that ROM code will not use
s32c1i in the first few hundred cycles, doing reset and then stall seems
to be safe.
In addition to than, RTC_WDT initialization is moved to the beginning of
the function, to prevent possible lock-up if CPU stalling still has any
issue.
2017-10-26 19:53:53 +08:00
Angus Gratton
2c2e7f6303
Merge branch 'bugfix/optmize_ipv6_event' into 'master'
...
bugfix: add netif info in event message when got ipv6 address
See merge request !959
2017-10-23 17:00:10 +08:00
Tian Zhong Xing
55e95b04bd
bugfix: add netif info in event message when got ipv6 address
2017-10-23 13:50:43 +08:00
Ivan Grokhotkov
59b7d98fec
Merge branch 'feature/dfs' into 'master'
...
Dynamic frequency scaling
See merge request !1189
2017-10-22 12:34:11 +08:00
Ivan Grokhotkov
b6f37bda97
Merge branch 'feature/i2s_built_in_adc' into 'master'
...
feature(I2S-ADC): add ADC mode for I2S.
See merge request !1077
2017-10-20 15:52:56 +08:00
Ivan Grokhotkov
90bbcbcdc0
unit tests: fix warnings, build with -Werror
...
- libsodium: silence warnings
- unit tests: fix warnings
- spiram: fix warnings
- ringbuf test: enable by default, reduce delays
2017-10-19 21:35:23 +08:00
Ivan Grokhotkov
ae7404972c
sleep: don't power down VDD_SDIO in light sleep if SPIRAM is enabled
2017-10-19 21:35:23 +08:00
Ivan Grokhotkov
d55ddfe56d
update libstdc++.a built with pSRAM workaround
2017-10-19 21:35:22 +08:00
Ivan Grokhotkov
cc67500d3e
unit test: adapt tests to single core configuration
2017-10-19 21:35:21 +08:00
He Yin Ling
1fc2ac8b09
unit-test: esp timer use same name as ets timer
...
We will use case name to select test cases in UT jobs.
Same case name is not allowed.
2017-10-19 21:35:21 +08:00
Ivan Grokhotkov
8e01b4aef8
Merge branch 'docs/esp32_hooks' into 'master'
...
docs/Added documentation about esp32 hooks
See merge request !1417
2017-10-19 12:32:36 +08:00
Ivan Grokhotkov
54d2dc7681
Merge branch 'bugfix/fix_some_wifi_bugs' into 'master'
...
esp32: fix some wifi bugs
See merge request !1414
2017-10-18 16:20:09 +08:00
Darian Leung
461f8da704
docs/Added documentation about esp32 hooks
...
This commit adds documentation about the esp32 Idle and Tick Hooks
2017-10-18 15:19:35 +08:00
Angus Gratton
78f70d4e79
Merge branch 'bugfix/cxx_exceptions' into 'master'
...
Full C++ Exception Support option (& reclaim memory when exceptions disabled)
See merge request !1353
2017-10-18 15:08:10 +08:00
Deng Xin
80b14fc77f
esp32: fix some wifi bugs
...
1. Fix WiFi timer enable twice issue
2. Fix a softAP compatibility issue
3. Fix ebuf alloc counter issue
4. remove nvs_flash_init() in esp_wifi_init()
5. Fix scan only find few APs after set bssid
6. Fix can not connect to hidden SoftAP
7. Remove group key entry before connecting ot AP
2017-10-18 14:53:19 +08:00
Ivan Grokhotkov
fba9678c56
uart: add support for REF_TICK
2017-10-18 14:19:20 +08:00
Ivan Grokhotkov
bfeecd2b56
freertos: deprecate XT_CLOCK_FREQ
...
- freertos: add deprecated definition for XT_CLOCK_FREQ
- flash_ops: don't use XT_CLOCK_FREQ
- unity: don't use XT_CLOCK_FREQ
- hw_random: don't use XT_CLOCK_FREQ
- core_dump: don't use XT_CLOCK_FREQ
- app_trace: don't use XT_CLOCK_FREQ
- xtensa_init: init xt_tick_divisor
2017-10-18 14:19:19 +08:00
Ivan Grokhotkov
df3c857a30
esp32: add power management hooks for WiFi library
2017-10-18 14:19:19 +08:00
Ivan Grokhotkov
eb0c34e5c9
esp_timer: add support for frequency scaling
2017-10-18 14:19:18 +08:00
Ivan Grokhotkov
3f818f4862
pm: support for tracing using GPIOs
2017-10-18 14:19:18 +08:00
Ivan Grokhotkov
535695f0b9
freertos: add frequency switching hooks to ISR and idle task
2017-10-18 14:19:17 +08:00
Ivan Grokhotkov
42d51a4224
esp32: initialize PM at startup, add Kconfig options
2017-10-18 14:19:17 +08:00
Ivan Grokhotkov
68e1751b78
pm: initial implementation for ESP32
2017-10-18 14:19:16 +08:00
Ivan Grokhotkov
47e3c9dd4b
pm: initial version of power management APIs
2017-10-18 14:19:16 +08:00
Ivan Grokhotkov
4798b7d775
unit tests: add test to dump esp_timer stats
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
3788b35f87
unit tests: more robust esp_timer test
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
37e9bc715c
esp_clk.h: make public, add getters for RTC time, CPU/APB freq
2017-10-18 14:19:14 +08:00
Ivan Grokhotkov
f13623d97d
make esp_timer.h public
2017-10-18 12:31:38 +08:00
Ivan Grokhotkov
566f018996
crosscore_int: add support for FREQ_SWITCH event
2017-10-18 12:31:38 +08:00
Tian Hao
09862b5918
component/esp32 : update phy & rtc
...
RTC V230
add BT AGC saturation protection, replace RTC V229.
PHY V362
Power up print: "phy_version: 362.0, 61e8d92, Sep 8 2017, 18:48:13"
1. esp_init_data_v3.bin
modify TX target power
modify WIFI & BT RX gain table
2. modify phy_close_rf()
3. add phy_set_most_tpw()
4. 26M crystal work OK
5. noise_check_loop ok
2017-10-17 18:02:42 +08:00
Ivan Grokhotkov
7babc74fce
Merge branch 'feature/reduce_min_num_of_wifi_static_tx_buffer' into 'master'
...
Reduce minimum number of WiFi static tx buffer
See merge request !1398
2017-10-17 17:40:14 +08:00
Angus Gratton
9c7477ef34
cxx: Add KConfig option for C++ exceptions, disable by default
...
Fixes https://github.com/espressif/esp-idf/issues/1072
(Additional 20KB is still used if C++ exception support is enabled in
menuconfig.)
2017-10-17 15:29:25 +08:00
Ivan Grokhotkov
6e7dd5962b
Merge branch 'bugfix/add_mutex_for_dual_core_hooks' into 'master'
...
freertos/Add mutex for dual core hooks
See merge request !1406
2017-10-17 14:15:09 +08:00
Ivan Grokhotkov
08d6ca4f70
Merge branch 'bugfix/ets_timer_iram' into 'master'
...
wifi/bt coexistence: Fix disabled cache access race when writing to flash
See merge request !1409
2017-10-17 14:12:43 +08:00