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
f6ef536fe9
examples/power_save: enable modem sleep and DFS by default
2017-10-18 14:37:23 +08:00
Ivan Grokhotkov
062be56c3c
docs: add power management API reference
2017-10-18 14:37:23 +08:00
Ivan Grokhotkov
d503b991b4
bt: lock APB frequency while BT controller is enabled
2017-10-18 14:37:22 +08:00
Ivan Grokhotkov
373d85dd9f
freertos: fix error when including xtensa-timer.h from other components
2017-10-18 14:37:22 +08:00
Ivan Grokhotkov
266d2b3e4f
ethernet: lock APB frequency while ethernet is enabled
2017-10-18 14:37:22 +08:00
Ivan Grokhotkov
5048d38ce7
spi slave: lock APB frequency while driver is in use
2017-10-18 14:37:21 +08:00
Ivan Grokhotkov
e4616588b7
spi master: lock APB frequency while in transaction
2017-10-18 14:19:21 +08:00
Ivan Grokhotkov
330b6bd668
sdmmc: lock APB frequency while in transaction
2017-10-18 14:19:20 +08:00
Ivan Grokhotkov
c2fff997ea
sysview: always use TG as timestamp source
2017-10-18 14:19:20 +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
2b3325b1ab
unit tests: fix ref_clock value obtained due to overflow
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
b03e08dc4e
soc/rtc: add function to convert CPU frequency in MHz to rtc_cpu_freq_t
2017-10-18 14:19:15 +08:00
Ivan Grokhotkov
a242ae6d0b
soc/rtc: add fast paths for switching between PLL and XTAL
2017-10-18 14:19:14 +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
Ivan Grokhotkov
2e8441df9e
Merge branch 'feature/fsync' into 'master'
...
vfs,fat: add fsync to VFS interface, implement it for fatfs
See merge request !1412
2017-10-18 07:17:56 +08:00
Ivan Grokhotkov
07c44d7f01
fatfs: expose some configuration values in Kconfig
...
- _FS_TINY: disables per-file caches
- _FS_TIMEOUT: locking timeout for concurrent access
- _FS_LOCK: prevents operations which are not allowed on open files
Also sets _MAX_SS based on sector size configured for wear_levelling.
This reduces memory usage of FATFS if wear_levelling is using 512 byte
sectors.
2017-10-17 18:43:46 +08:00
Ivan Grokhotkov
d0df8f2811
Merge branch 'feature/update_phy362_rtc230' into 'master'
...
component/esp32 : update phy & rtc
See merge request !1411
2017-10-17 18:20:25 +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
6b8c8bf638
Merge branch 'bugfix/slave_dma_claim' into 'master'
...
fix(spi_slave): enable DMA clock when initialization.
See merge request !1385
2017-10-17 17:41:39 +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
3f4c8f7174
pthreads local storage: add test for unique keys
2017-10-17 15:29:25 +08:00
Angus Gratton
69e92ee320
unit tests: If heap tracing is enabled in sdkconfig, leak trace each test
2017-10-17 15:29:25 +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
502c3d0243
vfs,fat: add fsync to VFS interface, implement it for fatfs
2017-10-17 15:14:53 +08:00
Angus Gratton
6f07e0797d
Unit tests: If a test fails due to corrupting memory, don't print a misleading source file name
2017-10-17 14:46:08 +08:00
Angus Gratton
d20fbffae1
idf_monitor: Demangle C++ names
2017-10-17 14:46:08 +08:00
Angus Gratton
a231ba22f3
cxx: Add a sanity check for C++ exception support
2017-10-17 14:46:08 +08:00
Angus Gratton
86c89ff169
pthread: Add support for pthread thread local storage
...
Refactors LWIP to use this for the LWIP thread local semaphore
2017-10-17 14:46:08 +08:00
Angus Gratton
3234064b6a
freertos: Idle task shouldn't hold xTaskQueueMutex while calling TLS destructors
...
If the callbacks use any blocking call (ie printf), this can otherwise trigger a deadlock.
2017-10-17 14:31:58 +08:00
Angus Gratton
2ccc2ec5ee
cxx tests: Fix race condition w/ leak checker when tearing down test tasks
2017-10-17 14:31:58 +08:00
Angus Gratton
90bf40587e
Merge branch 'feature/sockets_files_shared_fd_space' into 'master'
...
lwip & vfs: POSIX I/O functions operate on sockets and files (first stage, no select() yet)
See merge request !1352
2017-10-17 14:17:09 +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
Gabriel Carstoiu
8128bb95ef
fix(spi_slave): enable DMA clock when initialization.
...
merging in the code updates to the SPI master code done in commit b834fcf78a
.
TW#15670, Closes #1027
2017-10-17 12:20:40 +08:00
michael
88f602a0e0
fix(periph_ctrl): fix reset function in periph_ctrl.c
2017-10-17 12:20:40 +08:00