Chinmay Chhajed
368ba6b077
component/bt: Added check for NULL valued combination key.
2021-02-09 12:09:32 +05:30
Chinmay Chhajed
fb3a382fe4
Bluedroid: Do not initiate/accept connection with device having same BDADDR.
...
Added BD_ADDR comparison in l2cu_lcp_allocate and removed check from
security connection request handler as it's handled in l2cu_lcp_allocate
for both connection request and create connection.
2021-02-09 12:09:15 +05:30
Chinmay Chhajed
5596f37af1
bt: removed esp_bt_get_mac()
...
There was no need for this function as there is already a way present to
fetch own mac address. Own mac addr can be fetched by calling
controller_get_interface().
2021-02-09 12:09:15 +05:30
Angus Gratton
2c39010b3b
Merge branch 'bugfix/anti_rollback_without_test_app' into 'master'
...
bootloader: Anti-rollback mode doesn't run test_app
See merge request espressif/esp-idf!12225
2021-02-09 14:16:51 +08:00
Marius Vikhammer
04df1f3a42
CI: enable example builds for C3
...
Enables building C3 examples in CI.
Fixes related warnings/errors and disables examples that cannot run.
2021-02-09 12:04:02 +08:00
Angus Gratton
1de3f00012
Merge branch 'bugfix/SECURE_DISABLE_ROM_DL_MODE_does_not_work' into 'master'
...
bootloader: SECURE_ENABLE_SECURE_ROM_DL_MODE cannot be y when SECURE_DISABLE_ROM_DL_MODE=y
See merge request espressif/esp-idf!12288
2021-02-09 11:09:09 +08:00
Angus Gratton
49c442b12f
Merge branch 'feature/efuse_update_description' into 'master'
...
efuse: Updates description of uart_print_control efuse
Closes IDF-2705
See merge request espressif/esp-idf!12236
2021-02-09 11:02:26 +08:00
Xia Xiaotian
b71481093a
esp_wifi: fix some Wi-Fi scan and coexist bugs
...
1. Fix the bug that Wi-Fi performance is impacted by BLE starting scan for a while in some scenarios on ESP32-C3.
2. Fix the bug that Wi-Fi performance is impacted when Bluetooth change state for a while in some scenarios on ESP32-C3.
3. Fix the bug that BLE performance is impacted by Wi-Fi scan on ESP32-C3.
4. Fix the bug that Wi-Fi scan fails when BLE is scanning on ESP32-C3.
5. Fix Wi-Fi ACK and CTS rate when low rate is disabled on ESP32-C3.
2021-02-08 21:20:09 +08:00
wangmengyang
44dd496bea
update esp32c3 btbb lib 21-02-08 and set coexist state when in scan(initiating) mode
2021-02-08 21:19:59 +08:00
KonstantinKondrashov
63d4911cdb
esp_timer: Add ESP_TIMER_ISR dispatch method
...
Using own spinlock for each list (TASK and ISR disp method)
Reduced the dependency of ISR on the TASK dispatch method
2021-02-08 19:10:11 +08:00
KonstantinKondrashov
bcbee89030
esp_timer: Add a Kconfig option to configure the interrupt level
2021-02-08 18:27:10 +08:00
KonstantinKondrashov
43ebb8ea61
efuse: Updates description of uart_print_control efuse
2021-02-08 18:02:55 +08:00
zwj
52909b69b7
fix esp32c3 can't enable adv flow control func
2021-02-08 16:33:20 +08:00
Armando
5427c18781
adc: apply gdma api to adc on esp32c3
2021-02-08 11:41:21 +08:00
Jakob Hasse
916f02164e
[doc]: NVS documentation updates
...
* Move nvs flash README to common doc directory
* correct markup of functions and types in text
from old README
* Better comment of nvs_get_used_entry_count()
* Mention C++ example in API reference
* Used target instead of hard code ESP32
* Note that strings can only span one page
* Reflect that item types have been moved
* Some clarification about nvs_commit()
* Improved reference to the ESP Partition API
* fixed little mistake in documenting-code.rst
* Change of nvs_open_from_part() to
nvs_open_from_partition() reflected in docs
* Corrected documentation of
NVSHandle::get_string(), NVSHandle::get_blob()
and NVSHandle::get_item_size().
* Closes DOC-165
* Closes IDF-1563
* Closes IDF-859
* Closes https://github.com/espressif/esp-idf/issues/6123
2021-02-08 09:31:23 +08:00
Angus Gratton
2ec04b57de
soc esp32: Removes parentheses from RTC_MEM_xyz macros that expand directly to single numbers
...
Not necessary in these cases, and prevents parens from expanding into the
assembly code such as added in 562ab01046
-
a pattern which is accepted by GCC assembler but illegal syntax for LLVM assembler.
As reported https://github.com/espressif/llvm-project/issues/35#issuecomment-726853574
2021-02-08 10:08:01 +11:00
Nachiket Kukade
f9ff3da5d4
wpa_supplicant: Fix error handling in DPP Action Rx
...
1. Fix error handling while receiving DPP Action frames
2. Update wifi lib to avoid forwarding Public action frames
with NULL bss
2021-02-07 23:23:34 +08:00
Omar Chebib
e9996ebd4b
espcoredump: code refactoring and add support for RISC-V implemetation
...
This commit includes the refactoring of the core dump feature. Thanks to
this refactoring, it is easier to integrate the support of RISC-V
architecture for this feature.
Fixes ESP-1758
2021-02-07 19:04:19 +08:00
lly
d3cc004803
ble_mesh: stack: Fix deinit server models with no matching id
2021-02-07 11:12:25 +08:00
Jiang Jiang Jian
d1cc9e98b7
Merge branch 'bugfix/fix_wifi_connect_fail' into 'master'
...
WiFi: fix the bug that wifi connect fail for ESP32C3
See merge request espressif/esp-idf!12308
2021-02-06 02:35:43 +08:00
Jack
2859c7ebd1
fix the bug that wifi connect fail
2021-02-06 00:12:37 +08:00
Michael (XIAO Xufeng)
747ac00f9b
Merge branch 'bugfix/flash_encyption_80Mflash_40Mram' into 'master'
...
flash_encryption/psram: fixed the issue that block when flash_encryption_write
See merge request espressif/esp-idf!12177
2021-02-05 22:00:26 +08:00
Cao Sen Miao
c1b41ece32
flash_encryption: Quick fixed the issue that block when flash_encryption_write, Related https://github.com/espressif/esp-idf/issues/6322 , Related https://github.com/espressif/esp-idf/issues/6254
2021-02-05 20:10:42 +08:00
Michael (XIAO Xufeng)
423a5458dc
Merge branch 'bugfix/support_new_BYflash_chip_boot' into 'master'
...
spi_flash: add external flash support on esp32c3
Closes IDF-2650, IDF-2651, and IDF-2399
See merge request espressif/esp-idf!12121
2021-02-05 20:03:24 +08:00
Jiang Jiang Jian
17257b63ed
Merge branch 'bugfix/modify_coexist_options' into 'master'
...
modify Bluetooth coexistence options on ESP32C3
See merge request espressif/esp-idf!12244
2021-02-05 19:45:40 +08:00
Yann Pomarède
ee400f8b68
bootloader: SECURE_ENABLE_SECURE_ROM_DL_MODE cannot be y when SECURE_DISABLE_ROM_DL_MODE=y
...
Closes: https://github.com/espressif/esp-idf/pull/6442
2021-02-05 18:38:17 +08:00
wangmengyang
2dd730d35c
component/bt: [esp32c3] modify Bluetooth coexistence options
2021-02-05 09:16:29 +00:00
Kapil Gupta
00b1738197
esp_wifi: Fixed crash issue in presence of WEP AP
2021-02-05 09:13:24 +00:00
Jiang Jiang Jian
919e674f6e
Merge branch 'bugfix/bcn_timeout_with_power_down' into 'master'
...
components/coex: Fix bcn timeout with MAC BB power down
See merge request espressif/esp-idf!12285
2021-02-05 17:10:26 +08:00
Michael (XIAO Xufeng)
822a40a6cf
Merge branch 'fix/adc_xpd_calibration' into 'master'
...
adc: fixed the issue that ADC power is left on after the calibration is done
See merge request espressif/esp-idf!12207
2021-02-05 16:28:53 +08:00
baohongde
f8d85768b0
components/coex: Fix bcn timeout with MAC BB power down
2021-02-05 14:30:04 +08:00
Michael (XIAO Xufeng)
351ba5ff9e
adc: fixed the issue that ADC power is left on after the calibration is done
...
Also refactor the locks in the adc_common.c file.
2021-02-05 14:17:52 +08:00
Angus Gratton
fe44643808
Merge branch 'bugfix/doc_freertos_smp_macros' into 'master'
...
docs: Update SMP descriptions for taskENTER_CRITICAL/taskEXIT_CRITICAL
Closes IDFGH-4428
See merge request espressif/esp-idf!12219
2021-02-05 08:14:50 +08:00
Angus Gratton
bc09dda0f4
docs: Update SMP descriptions for taskENTER_CRITICAL/taskEXIT_CRITICAL
...
Closes https://github.com/espressif/esp-idf/issues/6259
2021-02-05 10:18:23 +11:00
Michael (XIAO Xufeng)
09b827b2c8
Merge branch 'feature/spi_slave_double_board_test_for_slave_transaction' into 'master'
...
spi slave: add a double board test for esp32c3 relating to sending/receiving unaligned data
See merge request espressif/esp-idf!11153
2021-02-05 00:51:24 +08:00
Jiang Jiang Jian
3554981c8a
Merge branch 'bugfix/support_esp32c3_rom_eco3' into 'master'
...
esp_wifi: support esp32c3 rom eco3
See merge request espressif/esp-idf!12223
2021-02-04 23:43:04 +08:00
Michael (XIAO Xufeng)
67779e8e25
Merge branch 'docs/spi_mode' into 'master'
...
spi: add explaination to the modes
See merge request espressif/esp-idf!12251
2021-02-04 23:00:28 +08:00
David Čermák
6992084ca7
Merge branch 'feature/ws_client_ping_interval' into 'master'
...
websocket: Add configurable ping interval
Closes IDFGH-4582
See merge request espressif/esp-idf!12101
2021-02-04 21:07:41 +08:00
David Čermák
a2005adf32
Merge branch 'bugfix/disable_software_flow_control_with_small_buffers' into 'master'
...
esp_eth: added option to disable soft flow control when rx buffer is few
Closes WIFI-3362
See merge request espressif/esp-idf!12186
2021-02-04 20:36:04 +08:00
Jiang Jiang Jian
6a7781b92a
Merge branch 'bugfix/fix_a2dp_underun' into 'master'
...
bugfix/component_bt: Fix A2DP Underrun Issue
Closes AUD-2681
See merge request espressif/esp-idf!12093
2021-02-04 19:28:07 +08:00
Michael (XIAO Xufeng)
52a76867d1
Merge branch 'bugfix/spi_lose_last_3_bytes' into 'master'
...
spi_master: fix an issue where master cannot correctly receive data when using DMA in halfduplex mode.
Closes IDFGH-612
See merge request espressif/esp-idf!11354
2021-02-04 18:35:48 +08:00
ChenJianxing
dc350a9c7c
esp_wifi: support esp32c3 rom eco3
2021-02-04 18:28:06 +08:00
Jiang Jiang Jian
c1aacb2efc
Merge branch 'bugfix/btdm_add_ble_connection_params_check' into 'master'
...
Bugfix/btdm add ble connection params check
See merge request espressif/esp-idf!12193
2021-02-04 17:32:42 +08:00
Island
8f28993493
Merge branch 'bugfix/ble_mesh_free_mbedtls_aes_ctx' into 'master'
...
ble_mesh: stack: Fix mbedtls aes ctx not deallocated
See merge request espressif/esp-idf!12253
2021-02-04 17:14:11 +08:00
Cao Sen Miao
b1d3d0ac74
suspend_test: delay more time for erase
2021-02-04 16:47:41 +08:00
Jiang Jiang Jian
27100cc50e
Merge branch 'docs/wifi_doc_update' into 'master'
...
update wifi docs
See merge request espressif/esp-idf!12232
2021-02-04 16:37:31 +08:00
Angus Gratton
018d7c2551
Merge branch 'feature/add_pkg_and_revision_for_c3' into 'master'
...
efuse(esp32c3): Adds getting chip_revision and chip_pkg
See merge request espressif/esp-idf!12060
2021-02-04 16:04:36 +08:00
David Čermák
7b497138ae
Merge branch 'bugfix/netif_add_str_to_ipx' into 'master'
...
esp_netif: Added methods for conversion IP4/IP6 addresses from their string interpretation
Closes IDFGH-3602
See merge request espressif/esp-idf!12143
2021-02-04 16:02:40 +08:00
Jakob Hasse
897e81f765
[doc]: elaborated nvs encryption comments in nvs
2021-02-04 15:27:37 +08:00
negativekelvin
d625310ef4
Fix nvs_flash_generate_keys
...
Merges https://github.com/espressif/esp-idf/pull/6478
2021-02-04 15:27:37 +08:00
Cao Sen Miao
e38326d715
spi_flash: fix the issue that ext flash hold is not controlled properly
2021-02-04 14:44:51 +08:00
Cao Sen Miao
cc1c6c30be
flash: check boya chip support
2021-02-04 14:44:50 +08:00
Cao Sen Miao
8020c46da7
spi_flash: enable ext flash unit-test on esp32c3
2021-02-04 14:44:50 +08:00
Michael (XIAO Xufeng)
a0573f5b9f
spi_flash: make the auto_suspend default y on C3
2021-02-04 14:11:04 +08:00
Michael (XIAO Xufeng)
0700129c5a
soc: merge dac_caps.h into soc_caps.h for C3
2021-02-04 13:15:10 +08:00
Michael (XIAO Xufeng)
fe0c81f67c
Merge branch 'fix/adc_gpio_init_unit_both' into 'master'
...
adc: fixed the issue adc_gpio_init doesn't support ADC_UNIT_BOTH
See merge request espressif/esp-idf!11556
2021-02-04 13:10:22 +08:00
Angus Gratton
6252446b7d
Merge branch 'bugfix/s3_dma_enable_crypto' into 'master'
...
sha: dont enable/disable GDMA when enable/disable SHA module
See merge request espressif/esp-idf!12247
2021-02-04 11:30:10 +08:00
lly
0c6e61d258
ble_mesh: stack: Fix mbedtls aes ctx not deallocated
2021-02-04 11:24:54 +08:00
Island
c8aa7cb960
Merge branch 'bugfix/ble_mesh_misc_fix_for_c3' into 'master'
...
ble_mesh: stack: bugfix for running on esp32c3
See merge request espressif/esp-idf!12245
2021-02-04 10:57:27 +08:00
Michael (XIAO Xufeng)
586dd7d7cd
spi: add explaination to the modes
2021-02-03 21:56:53 +08:00
Michael (XIAO Xufeng)
a2aa349dcc
adc: fixed the issue adc_gpio_init doesn't support ADC_UNIT_BOTH
2021-02-03 20:55:58 +08:00
Ivan Grokhotkov
4edaf134bb
Merge branch 'feature/loadable_elf_c3' into 'master'
...
build-system: add loadable elf support for ESP32-S2 and C3
Closes IDF-2137
See merge request espressif/esp-idf!12217
2021-02-03 19:40:34 +08:00
lly
0d95760fe4
ble_mesh: stack: Fix hw aes no dma channel for c3
2021-02-03 08:45:06 +00:00
lly
bd2d63ff96
ble_mesh: stack: Enable duplicate scan for c3
2021-02-03 08:45:06 +00:00
Jiang Jiang Jian
922194a295
Merge branch 'bugfix/fix_arp_buffer_error_in_smart_config' into 'master'
...
fix issue when router reply arp late and let sendto() return -1
See merge request espressif/esp-idf!12139
2021-02-03 16:33:30 +08:00
Angus Gratton
d54f0e40ba
Merge branch 'bugfix/unaligned_poisoned_memory' into 'master'
...
heap: fix unaligned memory bug when poisoning is enabled.
Closes IDF-2653
See merge request espressif/esp-idf!12132
2021-02-03 13:52:57 +08:00
Jiri Schiebel
d1356bca68
esp-netif: Added methods for conversion IP4/IP6 addresses from their string interpretation
...
Closes https://github.com/espressif/esp-idf/issues/5545
2021-02-02 16:07:32 +01:00
Akihiro YAMAZAKI
9ff9137e7a
websocket: Add configurable ping interval
...
Merges https://github.com/espressif/esp-idf/pull/6399
Signed-off-by: David Cermak <cermak@espressif.com>
2021-02-02 14:01:29 +01:00
morris
e361498a2a
intr_alloc: re-enable unit test
2021-02-02 20:25:50 +08:00
morris
d212e698d7
rtc: fix rtc slow memory layout on esp32s3
2021-02-02 20:03:08 +08:00
Marius Vikhammer
245a2469f6
sha: dont enable/disable GDMA when enable/disable SHA module
...
Enabling and disabling of the GDMA module is done by the GDMA driver.
2021-02-02 19:24:57 +08:00
Marius Vikhammer
fa7aa656d3
build-system: add loadable elf support for ESP32-S2 and C3
2021-02-02 17:21:39 +08:00
Krzysztof Budzynski
d2e6793582
Merge branch 'docs/c3_get_started' into 'master'
...
docs: inital doc update for C3
Closes IDF-2312, IDF-2314, IDF-2551, IDF-2611, and IDF-2317
See merge request espressif/esp-idf!11884
2021-02-02 14:18:23 +08:00
dongyou
fe76c53fec
update wifi docs
2021-02-02 11:42:00 +08:00
Angus Gratton
2b5cbcf852
Merge branch 'feature/fpga_warnings' into 'master'
...
esp_system: Add boot warning when running on FPGA, fix dropped log issue
Closes IDF-2687
See merge request espressif/esp-idf!12209
2021-02-02 09:02:23 +08:00
Ivan Grokhotkov
458308786b
Merge branch 'doc/fix_pxTaskGetStackStart' into 'master'
...
[doc/freertos]: fixed doc of pxTaskGetStackStart()
Closes IDF-1668
See merge request espressif/esp-idf!12159
2021-02-02 07:09:00 +08:00
KonstantinKondrashov
25ac1d4d28
bootloader: Anti-rollback mode doesn't run test_app
...
- Cmake shows an error if the partition table has a test app.
- BOOTLOADER_APP_TEST depends on !BOOTLOADER_APP_ANTI_ROLLBACK.
- Bootloader does not boot the test app if secure version is low.
Closes: https://www.esp32.com/viewtopic.php?f=13&t=19164&p=71302#p71302
2021-02-01 23:24:23 +08:00
Marius Vikhammer
548fd02d10
docs: initial update of programming guide for C3
...
Updates "front page" content, get-started, and api-guides with C3 content
Enable building and publishing of C3 docs in CI
2021-02-01 15:40:02 +08:00
morris
006a87557b
esp_eth: added option to disable soft flow control when rx buffer is few
2021-02-01 14:14:54 +08:00
Omar Chebib
c4dc3acba9
heap: add light poisoning configuration to the tests.
...
Relates to IDF-2653
2021-02-01 11:58:42 +08:00
Omar Chebib
d902b4e7db
heap: fix unaligned memory bug when poisoning is enabled.
...
Poisoned memory is now aligned as requested by the user.
Closes IDF-2653
2021-02-01 11:58:42 +08:00
Angus Gratton
dfda84c2ab
esp_system: Fix some ESP_EARLY_LOG lines not being output fully
...
At least on ESP32, calling esp_rom_uart_set_clock_baudrate() causes the
contents of the UART FIFO to be discarded.
2021-02-01 14:24:38 +11:00
Angus Gratton
8dbb14b469
system: Log a warning when booting bootloader or app configured for FPGA use
...
Such a firmware may appear to work on normal chip, but not everything will function as expected.
2021-02-01 14:24:38 +11:00
Michael (XIAO Xufeng)
c4346abfb7
Merge branch 'feature/i2c_master_cmd_begin_const' into 'master'
...
i2c: modify internal impl to ensure the cmd will not be modified
See merge request espressif/esp-idf!12153
2021-02-01 11:18:02 +08:00
alex.li
a9b0336ac5
Fix wapi authmode in NVS and S3/C3 compability.
2021-01-30 19:14:37 +08:00
Jiang Jiang Jian
7c6dad2a29
Merge branch 'bugfix/fix_some_wifi_bugs_0129' into 'master'
...
esp_wifi: fixed some Wi-Fi bugs
Closes WIFI-3239 and WIFI-969
See merge request espressif/esp-idf!12196
2021-01-30 10:32:04 +08:00
zhangyanjiao
c97279b51c
esp_wifi: fixed some Wi-Fi bugs
...
1. Fixed the MIC comparison logic AES-128-CMAC decryption
2. Fixed issue of setting incorrect log_length of NVS misc log
2021-01-29 19:29:57 +08:00
Ivan Grokhotkov
d653d52e3c
Merge branch 'bugfix/coredump_extra_regs_parsing_error' into 'master'
...
fix(coredump): parse registers values from stack
Closes IDFCI-414
See merge request espressif/esp-idf!12189
2021-01-29 18:31:44 +08:00
zwj
d76d708bc3
add connection parameter check
2021-01-29 15:29:57 +08:00
Fu Hanxi
da73dc8195
fix(coredump): parse registers values from stack
2021-01-29 11:12:21 +08:00
ronghulin
84a1e65495
esp_wifi: fixes some Wi-Fi bugs
...
1. Clear hotspot bss when auth timeout happens.
2. Fix PMK not saved in NVS for SoftAP for PSK mode.
3. Fix the bug for esptouch find hidden AP fail.
4. Fix not connect to open AP when WPA3 auth fail.
2021-01-29 11:02:40 +08:00
Ivan Grokhotkov
bb1f75179b
Merge branch 'bugfix/freertos_systimer_stall_when_cpu_halted' into 'master'
...
freertos: stall systimer while CPU is in debug mode
See merge request espressif/esp-idf!12063
2021-01-29 07:02:30 +08:00
Jiang Jiang Jian
28faf93c51
Merge branch 'feature/esp32c3_power_down' into 'master'
...
esp32c3 : power down MAC and BB only if both Wi-Fi and BT power down
Closes FC3-99
See merge request espressif/esp-idf!12076
2021-01-28 23:27:19 +08:00
baohongde
eef66789d4
Mac BB power down in light sleep
...
components/bt: Do not use feature: timer support isr dispatch method
disable controller after wake up finished.
protect critical section of power down
choose clk in sleep
components/coex: mac bb power down in light sleep
components/coex: Macro changed
components/os: protect reserved interrupt number
update phy to phy_version 300,6e46ba7,Jan 25 2021
some bugfix
2021-01-28 22:28:04 +08:00
Jiang Jiang Jian
3af715ddd8
Merge branch 'bugfix/disable_hardware_encrp_for_s3' into 'master'
...
temporarily disable hardware encryption for esp32s3
See merge request espressif/esp-idf!12187
2021-01-28 22:07:48 +08:00
ChenJianxing
243417c48c
temporarily disable hardware encryption for esp32s3
2021-01-28 21:05:51 +08:00
Mahavir Jain
e712a91488
spi_flash: add config option to enable encrypted partition read/write
...
This feature can be disabled to save some IRAM (approx 1KB) for cases
where flash encryption feature is not required.
2021-01-28 12:19:21 +00:00
Mahavir Jain
8a01cc2c26
Revert "esp_partition: disable encrypted reads/writes if flash encryption is disabled"
...
This reverts commit bf35ef1ce7
.
It has been noticed that there are scenarios where even though firmware is not enabled
with flash encryption config feature, it should be able to write to encrypted partitions.
This revert adds the feature back which was removed around v4.0 timelines, and same
change will be backported to all releases (upto v4.0) for consistency.
2021-01-28 12:19:21 +00:00
Jiang Jiang Jian
9eae54f3be
Merge branch 'bugfix/fix_a2dp_sink_crash_due_to_ble5.0_code' into 'master'
...
fix a2dp sink crash due to ble 5.0 code
Closes BT-1358, BT-1354, and BT-1356
See merge request espressif/esp-idf!12170
2021-01-28 19:41:54 +08:00
wangmengyang
ee480b7776
Refactor Bluetooth init/deinit mechanism
...
free osi_funcs struct memory duiring failure of controller_init when necessary
components/bt: use s_lp_stat.phy_enabled to control the on/off of phy module
clean up style for controller_disable
clean up some empty functions and unnecessary comments
Added async wakeup src "BTDM_ASYNC_WAKEUP_SRC_TMR"
remove use of assert in controller_init, set error code upon some exceptions
move stop esp_timer early to phase0, add state variable wakeup_timer_started
2021-01-28 19:27:17 +08:00
wangmengyang
06ea8a3028
remove use of macro "CONFIG_SPIRAM_USE_MALLOC"
2021-01-28 19:25:03 +08:00
wangmengyang
086b36d737
Refactor Bluetooth sleep mechanism
...
Refactor bluetooth hardware PowerUp/PowerDown functions
component/bt: fix use of a deprecated MACRO "CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE"
component/bt: fix sleep wakeup in controller disable procedure
remove use of s_pm_lock_sem
1. Modified the waking up approach from async to sync: post a message to controller task upon vhci downstream packets or controller disable, and in response, controller task goes through the wake-up procedure
2. Added Controller status check for the esp_vhci APIs
3. Adjust the procedure during controller_init, check the validity of arguments first
Some minor modifications for bluetooth sleep control and configuration
1. use variable flag s_btdm_allow_light_sleep to control the use of s_light_sleep_pm_lock
2. use variable btdm_lpclk_sel to choose bluetooth sleep clock, support only for external 32kHz crystal temporarily
component/bt: improve async_wakeup function
1. check power state first and then decide if wakeup needs to be performed
2. change the meaning of the return value, if wakeup request is posted to controller task, then return true, otherwise return false
put sleep control logics in controller init/deinit/enable/disable together
Use s_lp_cntl struct: replace bool-typed variable sleep_backup_en with s_lp_cntl.mac_bb_pd
Use s_lp_cntl struct: replace bool-typed variable s_btdm_allow_light_sleep with s_lp_cntl.no_light_sleep
Use s_lp_cntl struct: replace global variable btdm_lpclk_sel with s_lp_cntl.lpclk_sel
create semaphore s_wakeup_req_sem only when low power mode is required
Use s_lp_cntl struct: use s_lp_cntl.wakeup_timer_required to control the wakeup timer
use s_lp_stat to replace original state variable sleep_backup_done and s_pm_lock_acquired
one minor change for mac_bb_pd settings init: return error status if memeory allocation failed
2021-01-28 19:23:09 +08:00
Jiang Jiang Jian
4ab76197e9
Merge branch 'bugfix/bta_hf_client_sco_co_out_data' into 'master'
...
bugfix/if bta_hf_client_sco_co_out_data is called, it will crash when sco disconnected
Closes AUD-2714
See merge request espressif/esp-idf!12179
2021-01-28 18:02:25 +08:00
Ivan Grokhotkov
9a20283485
Merge branch 'bugfix/scan_test_missing_build_apps_without_tests' into 'master'
...
ci: bugfix: scan_test missing build apps without tests
See merge request espressif/esp-idf!12138
2021-01-28 17:48:24 +08:00
Mahavir Jain
719aeacb4e
Merge branch 'feature/enable_app_update_tests_for_c3' into 'master'
...
Enable app_update tests for ESP32-C3
Closes IDF-2495
See merge request espressif/esp-idf!12173
2021-01-28 17:41:42 +08:00
wangmengyang
9742aa6f05
component/bt: handle sleep wakeup event in the context of controller task instead of timer task
2021-01-28 16:04:21 +08:00
Angus Gratton
ae165c9b52
Merge branch 'bugfix/esp32s2_rom_address_range' into 'master'
...
soc: Fix SOC_IROM_MASK_HIGH address
Closes IDF-2672
See merge request espressif/esp-idf!12126
2021-01-28 13:49:27 +08:00
Alex Lisitsyn
96b77a28b1
freemodbus: add support for list of area descriptors for each register area
...
add multi register area descriptors into concrete port (initial)
add create/destroy of area descriptors into concrete port
add the list of descriptors in common slave interface structure and init/destroy in concrete slave port
move r/w callback functions into common slave
final update of common slave interface wrappers add override API option in concrete port
update slave examples to check new feature
2021-01-28 12:29:32 +08:00
David Čermák
445b1a6717
Merge branch 'bugfix/deprecate_esp_eth_receive' into 'master'
...
esp_eth: deprecate esp_eth_receive
Closes IDF-1065 and IDFGH-4657
See merge request espressif/esp-idf!12176
2021-01-28 02:14:42 +08:00
Michael (XIAO Xufeng)
9ff04b2e79
Merge branch 'feature/musical_buzzer' into 'master'
...
RMT example: musical buzzer
See merge request espressif/esp-idf!10346
2021-01-28 01:04:24 +08:00
Michael (XIAO Xufeng)
673937087e
Merge branch 'feature/usb_host_hal' into 'master'
...
Add USB Host HAL
Closes IDF-2633
See merge request espressif/esp-idf!11784
2021-01-28 00:58:11 +08:00
Jiang Jiang Jian
20b20eef72
Merge branch 'feature/ftm_support' into 'master'
...
Add FTM support for ESP32-S2 & ESP32-C3
Closes IDFGH-3034 and WIFI-3293
See merge request espressif/esp-idf!10441
2021-01-28 00:28:10 +08:00
suda-morris
0208810eca
esp_eth: fix typo in lan8720 driver
...
Closes https://github.com/espressif/esp-idf/issues/6469
2021-01-27 23:48:10 +08:00
morris
c010f24d8b
esp_eth: deprecate esp_eth_receive
...
Ethernet driver is interrupt driven only, don't support polling mode.
So deprecate esp_eth_receive API.
2021-01-27 23:48:01 +08:00
Nachiket Kukade
8de3b31d2d
FTM support for ESP32-C3 and connectionless mode
...
1. Support for FTM to work without any connection
1. Support for ESP32-C3 chip
3. Fix error case handling if FTM fails
4. Fix asynchronization, re-transmission related issues
2021-01-27 20:49:07 +05:30
Jiang Jiang Jian
24f0bbded9
Merge branch 'bugfix/esp32s3beta2_ble_coexist_status_set' into 'master'
...
bugfix/esp32s3beta2_ble_coexist_status_set
See merge request espressif/esp-idf!12137
2021-01-27 21:37:51 +08:00
Jiang Jiang Jian
67f78569a2
Merge branch 'component_bt/update_bt_demo_and_api_comment' into 'master'
...
component_bt/doc&demo: update bt demo and api comment
See merge request espressif/esp-idf!10461
2021-01-27 21:25:11 +08:00
liaowenhao
e502893f18
bugfix/if bta_hf_client_sco_co_out_data is called, it will crash when sco disconnected
2021-01-27 19:46:13 +08:00
zwj
00fdbfcddc
fix ble connection maximum latency is 499
2021-01-27 16:13:17 +08:00
zwj
b937485ad1
add ble examples default sdkconfig for esp32s3
2021-01-27 15:57:20 +08:00
Martin Vychodil
69096ddce5
Security: ESP32C3 memory protection feature (IRAM0/DRAM0)
...
Software support for PMS module.
Allows controlled memory access to IRAM (R/W/X) and DRAM0 (R/W)
On/locked by default, configurable in Kconfig (esp_system)
Closes https://jira.espressif.com:8443/browse/IDF-2092
2021-01-27 08:44:03 +01:00
Jiang Jiang Jian
d097988608
Merge branch 'bugfix/keep_esp_rtc_time_correct' into 'master'
...
newlib: Keep esp rtc time correct
See merge request espressif/esp-idf!11932
2021-01-27 15:22:43 +08:00
Mahavir Jain
3fa22ffa55
app_update: fix warnings in tests for ESP32-C3 build
2021-01-27 12:50:06 +05:30
Angus Gratton
cc934ea0a1
Merge branch 'feature/esp32c3_tls' into 'master'
...
freertos: add thread local storage support in RISC-V port
Closes IDF-2125
See merge request espressif/esp-idf!12064
2021-01-27 15:19:06 +08:00
Michael (XIAO Xufeng)
baedf7c9bb
Merge branch 'bugfix/potential_cocurrency_issue_in_gdma' into 'master'
...
gdma: fix potential cocurrency issue
Closes IDF-2646
See merge request espressif/esp-idf!12001
2021-01-27 15:07:35 +08:00
Angus Gratton
8d60683b08
Merge branch 'bugfix/fix_context_switch_ra' into 'master'
...
freerots: fix rtos_int_exit writing outside ISR stack
See merge request espressif/esp-idf!12161
2021-01-27 15:05:10 +08:00
zhiweijian@espressif.com
28fd413bf5
fix ble restart faild when enable ble sleep
2021-01-27 14:45:03 +08:00
zwj
bdafdbbf3d
disable bluedroid congest error log print
2021-01-27 14:45:03 +08:00
zhiweijian
90d5413623
fix read multi char failed(GATT_27001)
2021-01-27 14:45:03 +08:00
zwj
081e474baf
fix a2dp sink crash due to ble 5.0 code
2021-01-27 14:45:03 +08:00
wangmengyang
51be1af028
add coexist hook functions and fix bugs for coexistence
2021-01-27 06:37:04 +00:00
weitianhua
c347b0a937
Update bt_discovery demo and README
...
1. Use bt_app_gap_init function
2. Add Security Simple Pair doc
3. Update README
Update SPP demo
1. Add input module for bt_spp_initiator demo to show the security simple pair features
2. Update README of bt_spp_acceptor and bt_spp_initiator demo.
Format comment in esp_a2dp_api.h
Format comment in esp_avrc_api.h
Format comment in esp_spp_api.h
Fix bt_discovery build err
Update HFP API guide error
Remove BTA_AV_DEBUG
Remove Trailing Whitespace & End of Files
2021-01-27 14:17:12 +08:00
Nachiket Kukade
a71976ab54
wifi/ftm: Stability fixes, raw FTM data in event
...
Update wifi lib with below additions -
1. Add FTM frame formation, IEEE definitions, event and IOCTL.
2. Implementation of FTM bursts, Measurements and RTT calculations
3. Fix Watchdog timeout, crashes with better cleanup of timers
4. Included FTM Report raw data in FTM event
Closes https://github.com/espressif/esp-idf/issues/5059
2021-01-27 11:16:35 +05:30
Nachiket Kukade
acb1143409
Add support for FTM operation
...
Add FTM support for below configuration -
1. Station(connected) as Initiator with AP as responder
2. SoftAP as responder with the connected Station
Added Station example with runtime FTM configurations.
2021-01-27 10:57:41 +05:30
Fu Hanxi
e4e375f488
fix: add spi_flash.h for s2, s3, c3 targets in cpu_start.c
...
update s2, s3, c3 ld files spi_flash_attach to esp_rom_spiflash_attach
2021-01-27 12:35:49 +08:00
Angus Gratton
f7a8593a3b
Merge branch 'style/python_isort_double_quote_fixer' into 'master'
...
style: format python files with isort and double-quote-string-fixer
See merge request espressif/esp-idf!12149
2021-01-27 12:25:39 +08:00
Michael (XIAO Xufeng)
da4b4fc565
Merge branch 'bugfix/mcpwm_can_set_two_falut_signal' into 'master'
...
mcpwm: fix second fault line broken issue
Closes IDFGH-4194
See merge request espressif/esp-idf!12119
2021-01-27 11:36:30 +08:00
Michael (XIAO Xufeng)
1d52a0a459
Merge branch 'bugfix/enable_init_priority_test_c3' into 'master'
...
cxx: re-enable cxx init_priority unit test for C3
Closes IDF-2206
See merge request espressif/esp-idf!11972
2021-01-27 11:24:03 +08:00
Angus Gratton
21f5bcd46f
Merge branch 'bugfix/ulp_wakeup_trigger' into 'master'
...
ulp: specify ulp-risc-v as done signal source
Closes IDFGH-4210
See merge request espressif/esp-idf!11970
2021-01-27 07:59:51 +08:00
Michael (XIAO Xufeng)
31955fd7ea
i2c: modify internal impl to ensure the cmd will not be modified
...
related to: https://github.com/espressif/esp-idf/issues/5108
2021-01-27 01:31:49 +08:00
dongyou
d21ae1faa8
fix smartconfig issue when router reply arp late
...
Closes https://github.com/espressif/esp-idf/issues/6443
2021-01-26 19:56:57 +08:00
Marius Vikhammer
4374966d4e
freerots: fix rtos_int_exit writing outside ISR stack
...
rtos_int_exit would store RA at an offset of 4 byte from the SP,
where the offset should be 0.
This caused rtos_int_exit to overwrite variables in bss.
2021-01-26 11:18:39 +00:00
Chen Wu
8207f6ac32
lwip: Fixed ping assert reset when ping interval is 0
2021-01-26 10:48:56 +00:00
Jakob Hasse
fd58ed2f74
[doc/freertos]: fixed doc of pxTaskGetStackStart()
...
Closes IDF-1668
2021-01-26 17:31:11 +08:00
Krzysztof Budzynski
9a5bd86d54
Merge branch 'docs/update_docs_based_on_the_second_batch_of_customer_feedbacks' into 'master'
...
docs: update documents based on doc-855, doc-885, doc-889, doc-897
See merge request espressif/esp-idf!12124
2021-01-26 16:21:26 +08:00
Michael (XIAO Xufeng)
d741b08fe7
Merge branch 'feature/esp32c3_deep_sleep_rtcfastmem' into 'master'
...
esp32c3: Finish deep sleep support
Closes IDF-2560
See merge request espressif/esp-idf!12031
2021-01-26 12:53:34 +08:00
Michael (XIAO Xufeng)
c99e891201
Merge branch 'feature/sync_adc_changes_from_c3_to_master_last' into 'master'
...
adc: sync adc changes from c3 to master (last time)
Closes IDF-2694
See merge request espressif/esp-idf!12134
2021-01-26 12:52:20 +08:00
Jiang Jiang Jian
6938f7b30f
Merge branch 'add_dhcp_option_61' into 'master'
...
lw-ip: add dhcp option 61
Closes WIFI-1290
See merge request espressif/esp-idf!6507
2021-01-26 11:36:05 +08:00
Fu Hanxi
0146f258d7
style: format python files with isort and double-quote-string-fixer
2021-01-26 10:49:01 +08:00
Angus Gratton
b432fc8853
esp_system: Enable deep sleep reset reason test for ESP32-C3
2021-01-25 17:20:04 +00:00
Angus Gratton
d3ffaf4684
esp_system: Add soc_caps guards in esp_sleep.h
2021-01-25 17:20:04 +00:00
Angus Gratton
4026e7b250
esp_system esp32c3: Fix uart flush on entering deep sleep
2021-01-25 17:20:04 +00:00
Angus Gratton
0eb8d7e185
esp_hw_support esp32c3: Add deep sleep rtc crc calculation support
...
Last step to enable deep sleep on ESP32-C3 in all configurations
2021-01-25 17:20:04 +00:00
Jiang Jiang Jian
dc8402ea61
Merge branch 'feature/add_init_and_deinit_evt_for_a2dp' into 'master'
...
feature/ Add A2DP Init and Deinit Complete Evt
See merge request espressif/esp-idf!11458
2021-01-25 23:23:12 +08:00
David Čermák
42c6bcd3c9
Merge branch 'feature/eth_io_cmd_get_duplex' into 'master'
...
esp_eth: Add ioctl command for getting duplex mode
Closes IDFGH-4622
See merge request espressif/esp-idf!12088
2021-01-25 23:16:05 +08:00
Michael (XIAO Xufeng)
2b83418141
adc: add fallback calibration method
...
Also:
1. Separate static configuration into init phase to improve
performance
2. Add a init code config layer to avoid duplicated configuration
3. Add a HW_CALIBRATION_V1 caps
2021-01-25 20:30:42 +08:00
Jiang Jiang Jian
4fb9f5eeeb
Merge branch 'feature/add_dpp_support' into 'master'
...
Add dpp support
Closes WIFI-1054 and WIFI-2627
See merge request espressif/esp-idf!8167
2021-01-25 20:09:31 +08:00
KonstantinKondrashov
3ed226c362
efuse(esp32c3): Adds getting chip_revision and chip_pkg
2021-01-25 19:37:40 +08:00
Wang Fang
7df1cad1d6
docs: This MR does the following updates:
...
1. Provided more information regarding I2S_COMM_FORMAT_STAND_PCM_SHORT and I2S_COMM_FORMAT_STAND_PCM_LONG
2. Added --output flag for partition table read instructions
3. Reordered the header files for esp-ble-mesh
4. Reordered the setup instructions for Ubuntu and CentOS
2021-01-25 11:10:08 +00:00
xueyunfei
617ea86672
Add dhcp option 61
2021-01-25 17:48:15 +08:00
weitianhua
1404879bf4
Fix A2DP Underrun Issue
2021-01-25 17:44:11 +08:00
Jiang Jiang Jian
68916df92c
Merge branch 'optimization/dhcp_key_state_transition_message' into 'master'
...
lw-ip:optimization dhcp key state transition message
Closes WIFI-2037
See merge request espressif/esp-idf!8346
2021-01-25 17:43:34 +08:00
Michael (XIAO Xufeng)
7a20ea5f0e
Merge branch 'feature/support_flash_sus_res_c3' into 'master'
...
spi_flash: Add flash auto-suspend auto-resume mode on esp32c3
Closes IDF-2591
See merge request espressif/esp-idf!11888
2021-01-25 17:41:32 +08:00
Axel Lin
2049aa9f68
esp_eth: Add ioctl command for getting duplex mode
...
Similar to ETH_CMD_G_SPEED, add ETH_CMD_G_DUPLEX_MODE for getting duplex mode.
Merges https://github.com/espressif/esp-idf/pull/6436
2021-01-25 08:40:47 +00:00
weitianhua
bfad85a372
Add init & deinit event for a2dp
2021-01-25 16:30:09 +08:00
Nachiket Kukade
76b2cb28d2
Add DPP Enrollee example
...
1. Add Example for DPP Enrollee
2. Use DPP Supplicant API's to setup connection
3. Add support for multiple channels in Bootstrapping
4. Add Unity testcase for testing Offchannel operations
Closes https://github.com/espressif/esp-idf/issues/5654
2021-01-25 13:26:33 +05:30
Nachiket Kukade
87205dc2f4
Add DPP Enrollee Support
...
1. Modify DPP Protocol modules for our purpose
2. Add DPP supplicant task and modules to handle DPP frames
3. Add DPP Public API's and definitions for DPP
2021-01-25 13:24:21 +05:30
Nachiket Kukade
1ca80b4221
Add support for Remain-on-Channel and Action Tx
...
1. Add API's and structures for Remain-onChannel & Action Tx
2. Handling of events and callbacks for the operations
3. Update WiFi lib with related API support
2021-01-25 13:24:21 +05:30
Jiang Jiang Jian
1614cefd4f
Merge branch 'bugfix/wpa_supplicant_coverity_issue_fixes' into 'master'
...
Fix some issues raised by Coverity static Analyzer.
Closes WIFI-3251
See merge request espressif/esp-idf!11918
2021-01-25 15:52:21 +08:00
Michael (XIAO Xufeng)
3d7da2c8ff
adc: simplify LL on C3
2021-01-25 15:08:55 +08:00
Michael (XIAO Xufeng)
c257daa950
wifi: run adc2 calibration on C3
2021-01-25 15:08:50 +08:00
Darian Leung
1fabfd005b
soc: Fix SOC_IROM_MASK_HIGH address
...
The high address limit IROM on the esp32s2 is incorrect, thus
causing backtrace printing to think valid function PCs are invalid.
2021-01-25 14:54:25 +08:00
Armando
402ccacc10
system: update edma reset in system_api_esp32c3/s3.c
2021-01-25 04:51:40 +00:00
Armando
f5f0461264
tmpsensor: add temp_sensor.h for c3
2021-01-25 04:51:40 +00:00
Armando
f9ec7ddda3
adc: add comment for ADC sampling frequency
2021-01-25 04:51:40 +00:00
Armando
d8a4b247b9
adc_digi: update_adc_api_for_5M_freq_limit
...
The ``adc_digi_config_t`` struct is modified on esp32c3: configuration
of clock divider factors are not provided anymore. The SARADC sampling
frequency is provided instead. In this way, we can handle the frequency
limit better.
2021-01-25 04:51:40 +00:00
Michael (XIAO Xufeng)
56919682be
adc: remove useless adc_ll_set_sar_clk_div in LL
2021-01-25 04:51:40 +00:00
Michael (XIAO Xufeng)
90fc3e7030
adc: update the monitor and filter in the HAL on C3
...
On C3 ADC has no enable bit for monitor and filter. However we can use context variables to implement one
2021-01-25 04:51:40 +00:00
fuzhibo
19fb11549b
driver(adc): update adc ll and hal driver for esp32c3
2021-01-25 04:51:40 +00:00
Armando
5798c22a5c
adc: replace assert with esp check
2021-01-25 04:51:40 +00:00
Armando
271c97149d
rtc_tmpsensor: remove redundant semaphore on c3
2021-01-25 04:51:40 +00:00
Angus Gratton
feb293797f
driver: esp32c3 rtc_tempsensor compile fixes
2021-01-25 04:51:40 +00:00
fuzhibo
33647c7cd4
update temperature Sensor driver for esp32c3
2021-01-25 04:51:40 +00:00
Angus Gratton
a5fb7deda5
driver: Update/cleanup esp32c3 rtc_tempsensor.c
2021-01-25 04:51:40 +00:00
Armando
02600309c8
adc: fix some regression issues
2021-01-25 04:51:40 +00:00
Armando
2b737c1927
adc: fix adc invalid data issue by update adc_reset
2021-01-25 04:51:40 +00:00
Cao Sen Miao
4e6e34e3ad
adc_i2s: solve the i2s_adc issue when using wifi
2021-01-25 04:51:40 +00:00
Ivan Grokhotkov
34408026bb
wifi: add set_xpd_sar override
...
Wi-Fi enables and disables ADC when exiting and entering sleep mode.
Coordinate ADC power state with other modules, using adc_power_acquire
and adc_power_release.
2021-01-25 04:51:40 +00:00
Ivan Grokhotkov
abe94e3b53
adc: add adc_power_acquire/release, deprecate adc_power_on/off
2021-01-25 04:51:40 +00:00
Michael (XIAO Xufeng)
d7d1dee208
system: reset dma when soft reset
2021-01-25 04:51:40 +00:00
Armando
d35173c147
small fix for cherrypick
2021-01-25 04:51:40 +00:00
Armando
b38f4646de
adc_digi: add dma drivers
2021-01-25 04:51:40 +00:00
Jiang Jiang Jian
76bb9565af
Merge branch 'bugfix/fix_wifi_interface_use' into 'master'
...
esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA
See merge request espressif/esp-idf!12050
2021-01-25 12:18:27 +08:00
xueyunfei
b50fca4aa0
optimization dhcp key state transition message
2021-01-25 03:54:20 +00:00
aditi_lonkar
89bf9404a5
esp_http_client: Fix some memory leak issues by coverity static analyzer.
2021-01-25 03:37:47 +00:00
aditi_lonkar
fe7efa8db4
esp_local_ctrl: Fix some memory leak issues by coverity static analyzer.
2021-01-25 03:37:47 +00:00
aditi_lonkar
da313b691d
wifi_provisioning: Fix some memory leak issues by coverity static analyzer.
2021-01-25 03:37:47 +00:00
aditi_lonkar
6e7780421b
fatfs: Fix some memory leak issues by coverity static analyzer.
2021-01-25 03:37:47 +00:00
aditi_lonkar
7bf205162c
tcp_transport: Fix some memory leak issues by coverity static analyzer.
2021-01-25 03:37:47 +00:00
aditi_lonkar
562a5dd215
wpa_supplicant: Fix some memory leak issues by coverity static analyzer.
2021-01-25 03:37:47 +00:00