Commit Graph

13485 Commits

Author SHA1 Message Date
Wang Meng Yang
f0ffeb1c65 Merge branch 'bugfix/a2dp_no_audio_transmitted' into 'master'
bugfix/fix wrong clock_id in function `time_now_us`

Closes IDFGH-5862

See merge request espressif/esp-idf!15315
2021-10-08 05:59:57 +00:00
laokaiyao
f4705f8eb4 touch sensor: update copyright notice 2021-10-08 11:45:57 +08:00
laokaiyao
a1cadba191 touch_sensor: apply general check 2021-10-08 11:32:12 +08:00
fuzhibo
589646a31e update touch with review advice 2021-10-08 10:39:46 +08:00
fuzhibo
3ca9da0386 update touch sensor examples 2021-10-08 10:39:46 +08:00
fuzhibo
057b9d61b5 driver(touch): support touch sensor for esp32s3 platform 2021-10-08 10:39:46 +08:00
Ivan Grokhotkov
95ee8104bf build system: add COMPILER_SAVE_RESTORE_LIBCALLS option
Add new Kconfig option to enable -msave-restore flag for RISC-V
targets. This option can be used to reduce binary size by replacing
inlined register save/restore sequences with library calls.
2021-10-07 15:01:35 +08:00
David Cermak
2a2b95b9c2 mdns: Update copyright header 2021-10-06 20:39:18 +08:00
David Cermak
e7dabb14f7 mdns: Fix potential null dereference identified by fuzzer tests 2021-10-06 20:39:18 +08:00
isha pardikar
09800028e1 Wifi_prov_mgr:Fix for ios device needs to do forget device 2021-10-06 17:46:22 +08:00
Ivan Grokhotkov
0277ba7e4e ulp: fix quoting issues for linker script and map file arguments 2021-10-06 10:42:07 +02:00
Ivan Grokhotkov
ea99e5e969 esp_phy: fix quoting issue for library path 2021-10-06 10:41:58 +02:00
Ivan Grokhotkov
c148c4c01c esp_wifi: fix quoting 2021-10-06 10:41:49 +02:00
Ivan Grokhotkov
5bfd10113a bootloader: fix adding bootloader_components to EXTRA_COMPONENT_DIRS 2021-10-06 10:17:19 +02:00
David Čermák
c0e5c7296d Merge branch 'docs/deprecate_openssl_api' into 'master'
openssl: Add deprecation warning to ssl.h

See merge request espressif/esp-idf!15287
2021-10-06 05:27:59 +00:00
David Čermák
38a2a5712b Merge branch 'bugfix/mqtt_update_refs' into 'master'
MQTT: Fix build if CONFIG_WS_TRANSPORT is not set and client cleanups

Closes IDFGH-5833

See merge request espressif/esp-idf!15310
2021-10-06 04:51:55 +00:00
David Cermak
cfc001870c openssl: Add deprecation warning to ssl.h
OpenSSL component will be discontinued in ESP-IDF v5.x. The only official TLS API will be esp-tls
Add docs warning about deprecation in v5.x

Removed all examples demonstrating usage of openssl in IDF
2021-10-05 11:45:52 +02:00
Ivan Grokhotkov
425a024db4 Merge branch 'bugfix/esp_partition_iterator_release_doc' into 'master'
spi_flash: state that esp_partition_iterator_release allows NULL arg

Closes IDFGH-5843

See merge request espressif/esp-idf!15169
2021-10-05 09:08:55 +00:00
Ivan Grokhotkov
f2d0526141 Merge branch 'feature/github-7632' into 'master'
esp_crt_bundle: remove EC-ACC certificate

See merge request espressif/esp-idf!15418
2021-10-05 08:21:03 +00:00
Martin Vychodil
d0b311227a Merge branch 'bugfix/memprot_wrong_fi_check' into 'master'
System/Memprot: Fixed voltage glitching detection logic

See merge request espressif/esp-idf!15407
2021-10-04 15:38:07 +00:00
Harshit Malpani
cd3c633ae3 mbedtls: fix build fail with client only mbedtls
Closes https://github.com/espressif/esp-idf/issues/7544
2021-10-04 19:18:45 +08:00
Kapil Gupta
834afad47e esp_wifi: Add support for MBO certification 2021-10-04 15:56:14 +08:00
Martin Vychodil
5344de34c3 System/Memprot: fixed voltage glitching detection logic
When the application is being debugged it should check the call result (esp_cpu_in_ocd_debug_mode())
is not given volt.glitch attack - so the result is triple-checked by ESP_FAULT_ASSERT macro. In case
the check fails, the system is reset immediately

IDF-4014
2021-10-04 09:21:07 +02:00
Zim Kalinowski
4b8f96c73f resolve conflicts 2021-10-04 09:02:12 +08:00
Zim Kalinowski
d98b3948b8 Merge remote-tracking branch 'origin/master' into feature/github-5838 2021-10-04 08:38:39 +08:00
Zim Kalinowski
002cd296e1 Merge remote-tracking branch 'origin/master' into feature/github-7022 2021-10-03 12:25:39 +08:00
morris
e09e39c94f lcd: unify callback prototype 2021-10-02 14:23:31 +08:00
Victor Morales
4e45f13e2d esp_crt_bundle: remove EC-ACC certificate
Fixes bug #7631
2021-10-01 14:18:46 -07:00
laokaiyao
7264c0e59a i2s_rec_example: add support for esp32s3 2021-10-01 16:05:04 +01:00
laokaiyao
f397379c8d i2s: fix the mono mode of PDM on esp32 2021-10-01 16:05:04 +01:00
laokaiyao
1327a56369 i2s: fix the param check on PDM mode
Closes https://github.com/espressif/esp-idf/issues/7604
2021-10-01 16:05:04 +01:00
Zim Kalinowski
11329a0ce5 rename processors to cores
(cherry picked from commit a0d3afcac63bb62516daa3abd316091a1601c08c)
2021-10-01 21:23:17 +08:00
Zim Kalinowski
d4b47c42eb Merge branch 'feature/freertos-upgrade-to-10.4.3-xTaskRemoveFromUnorderedEventList-update' into 'master'
freertos: upgrade to 10.4.3 - rename xTaskRemoveFromUnorderedEventList

See merge request espressif/esp-idf!15101
2021-10-01 11:10:51 +00:00
David Čermák
d1ac84e68e Merge branch 'bugfix/lwip_move_icmp_tests_from_eth' into 'master'
CI/lw-ip: Move ICMP test cases from eth component

Closes IDF-3863

See merge request espressif/esp-idf!15200
2021-10-01 07:06:32 +00:00
Roland Dobai
d7e9ad246a Merge branch 'bugfix/bt_inst_fetch_prohibited_cause' into 'master'
espcoredump: Parse backtrace for instruction fetch prohibited cause

See merge request espressif/esp-idf!15386
2021-10-01 06:13:58 +00:00
Zim Kalinowski
6590cc7616 freertos: upgrade to 10.4.3 - rename xaskRemoveFromUnorderedEventList
(cherry picked from commit e91586b57e19a3776c7c675f62c0afeebd19c294)
2021-10-01 13:28:42 +08:00
Kapil Gupta
71a5003ae7 Merge branch 'bugfix/supplicant_cflag_sha256' into 'master'
wpa_supplicant: Add missing cflag for Makefile

Closes IDFGH-5866

See merge request espressif/esp-idf!15296
2021-09-30 10:26:16 +00:00
Mahavir Jain
8c3287e0db Merge branch 'docs/add_note_for_esp32_sec_dl_mode' into 'master'
bootloader: add note about secure download mode for ESP32 target

Closes IDFGH-5857

See merge request espressif/esp-idf!15304
2021-09-30 04:00:50 +00:00
Jiang Jiang Jian
65682ad63c Merge branch 'bugfix/bt_legacy_paring_wrong_pin_code_err' into 'master'
bugfix/fix the crash when using legacy paring with wrong pin code

Closes IDFGH-5856

See merge request espressif/esp-idf!15235
2021-09-30 01:12:34 +00:00
Jiang Jiang Jian
168ecb275c Merge branch 'bugfix/fix_macro_conversion' into 'master'
Nimble: Fix logging level mismatch

See merge request espressif/esp-idf!14477
2021-09-30 01:09:23 +00:00
Shubham Patil
8ad9daea7d espcoredump: Parse bt for instruction fetch prohibited cause 2021-09-29 23:08:54 +05:30
Jiang Jiang Jian
2113ec7944 Merge branch 'bugfix/fix_esp32s3_rom_funcs_ptr_in_psram' into 'master'
esp_wifi: fix esp32s3 rom funcs ptr malloc in psram when psram enable

Closes AUD-3279

See merge request espressif/esp-idf!15263
2021-09-27 11:17:13 +00:00
Jiang Jiang Jian
7da847ffea Merge branch 'feature/support_dhcp_option_len_configure' into 'master'
lw-ip: Support DHCP option length configuration

See merge request espressif/esp-idf!15085
2021-09-27 08:28:52 +00:00
Jiang Jiang Jian
f5ae8b0533 Merge branch 'feature/ledc_use_rtc8m_or_xtal_lightsleep' into 'master'
support RTC8M and XTAL power domain in light sleep mode

Closes IDF-3419

See merge request espressif/esp-idf!15152
2021-09-27 04:02:29 +00:00
morris
7b8d5562d2 Merge branch 'feature/support_sdspi_on_s2_c3' into 'master'
example: support sdspi on s2 c3

Closes IDF-1279

See merge request espressif/esp-idf!15107
2021-09-27 03:48:52 +00:00
morris
03bf1b8ce9 Merge branch 'feature/rmt_new_example_step_motor' into 'master'
feature/rmt: new example step motor & support loop auto-stop on s3

Closes IDF-3587

See merge request espressif/esp-idf!14587
2021-09-27 03:47:24 +00:00
Darian
212d936cf5 Merge branch 'refactor/freertos_port_files' into 'master'
FreeRTOS: Tidy up existing port files

Closes IDF-3919

See merge request espressif/esp-idf!15199
2021-09-27 03:34:43 +00:00
Darian Leung
e194113964 freertos: Tidy up port files
- port.c and portmacro.h contents are now logically grouped
- Doxygen API descriptions added
- Added refactor todo markers
- Removed portmacro_priv.h. Contents now in portmacro.h
- Formatted files
2021-09-24 18:14:33 +08:00
SalimTerryLi
bd89dcc683
RMT: add loop_autostop driver support for esp32s3 2021-09-24 15:24:45 +08:00
SalimTerryLi
92e337a38c
sdspi: enable UT & ExampleTest for C3/S2
Closes https://github.com/espressif/esp-idf/issues/7389

(1)     "MMC_RSP_BITS" [sd]                                                             [Y]
(2)     "probe SD in SPI mode" [sd][test_env=UT_T1_SPIMODE]                             [Y]
(3)     "probe SD in SPI mode, slot 0" [sd][ignore]                                     [N]
(4)     "SDMMC performance (SPI mode)" [sdspi][test_env=UT_T1_SPIMODE]                  [Y]
(5)     "SDMMC test read/write with offset (SPI mode)" [sdspi][test_env=UT_T1_SPIMODE]  [Y]
(6)     "CD input works in SPI mode" [sd][test_env=UT_T1_SPIMODE]                       [Y]
(7)     "WP input works in SPI mode" [sd][test_env=UT_T1_SPIMODE]                       [Y]
2021-09-24 15:17:18 +08:00
Wang Meng Yang
10d083a4c1 Merge branch 'bugfix/bt_x_component_key_check' into 'master'
BT: Fix for CVE-2021-37577.

Closes BT-1938

See merge request espressif/esp-idf!15228
2021-09-24 06:16:30 +00:00
Rahul Tank
67bb97cbf3 Nimble: Removed Critical debug level from menuconfig, since it internally maps
to level Error.
2021-09-24 11:11:36 +05:30
Ivan Grokhotkov
8f0ee18931 Merge branch 'feature/clang_toolchain_compat' into 'master'
Build system: minimal changes for clang compatibility

See merge request espressif/esp-idf!15168
2021-09-23 08:19:09 +00:00
Sachin Parekh
735b2e8089 Merge branch 'fix/no_stub_secure_boot' into 'master'
secure_boot: Enable --no-stub if secure boot enabled

Closes IDF-3784

See merge request espressif/esp-idf!15288
2021-09-23 07:15:21 +00:00
morris
1f8c030e5f Merge branch 'Bugfix/esp_lcd/st7789_init' into 'master'
esp_lcd: Fix ST7789 and NT35510 MADCTL register initialization

See merge request espressif/esp-idf!15294
2021-09-23 06:55:17 +00:00
Jiang Jiang Jian
91818884cc Merge branch 'bugfix/stack_init_check' into 'master'
Nimble: Check stack status before executing stack command

Closes BT-1367

See merge request espressif/esp-idf!14869
2021-09-23 04:26:54 +00:00
jincheng
52e7b99630 fix wrong clock_id in function time_now_us
Close https://github.com/espressif/esp-idf/issues/7561
2021-09-23 09:47:35 +08:00
jincheng
c592da5308 bugfix/fix the crash when using legacy paring with wrong pin code
Close https://github.com/espressif/esp-idf/issues/7556
2021-09-23 07:40:54 +08:00
David Cermak
8b45ac0fbc lwip: Add ping test case (moved from eth component) 2021-09-22 15:22:18 +02:00
Tomas Rezucha
75f3d76e26 Always use half-duplex for SPI 2021-09-22 15:03:35 +02:00
Roland Dobai
e33ae089fe Merge branch 'bugfix/bump_esptool' into 'master'
tools: Update esptool submodule to fix ESP32r0/1 connection issues

Closes IDFGH-5844

See merge request espressif/esp-idf!15272
2021-09-22 11:54:26 +00:00
David Cermak
5b0b0d36ff MQTT: Fix build if CONFIG_WS_TRANSPORT is not set and client cleanups
Updated MQTT submodule: git log --oneline f10321a53b53a146ee299cfecc320b89c0cf6611...89894bd0c611b1392967fe90bb49682eba858383
* Fix build issue if cert bundle disabled
* Fix build issue if ws transport disabled
* Add config to set retransmission interval

Detailed description of the changes (f10321a53b...89894bd0c6):
* Added config option to configure custom retransmission interval
    - See merge request espressif/esp-mqtt!110
    - esp_mqtt commit 1b009c840b
    - Related https://github.com/espressif/esp-mqtt/pull/199
* Configuration conflicts were verified, logged but not reported to the user.
    - See merge request espressif/esp-mqtt!102
    - esp_mqtt commit 88f4b8ed50
* Fixed build issue if cert bundle disabled
    - See merge request espressif/esp-mqtt!109
    - esp_mqtt commit 4a89bff610
    - esp_mqtt commit 1b71980575
    - esp_mqtt commit 5b3c81ee48
    - Related https://github.com/espressif/esp-mqtt/pull/198
    - Related https://github.com/espressif/esp-idf/issues/7535
* Removes unnecessary outbox_cleanup
    - This function were used on old version to handle QoS 2 messages. It's no longer necessary in current implementation.
    - See merge request espressif/esp-mqtt!108
    - esp_mqtt commit ebef896b00
* Fixed return an error when fail to enqueue
    - The functions that enqueue messages didn't had a return for the handler, with this the error was only logged instead of returned whichmay cause the user to have an ID for a message that was not published.
    - See merge request espressif/esp-mqtt!103
    - esp_mqtt commit 7471177fe7
* CI: Use qemu image based on esp-env:v4.4-1
    - Replaced the temporary qemu image with the official qemu:v4.4-1-20210517 derived from the esp-env:v4.4-1 test environment
    - See merge request espressif/esp-mqtt!107
    - esp_mqtt commit 231b274962

Closes https://github.com/espressif/esp-idf/issues/7535
2021-09-22 13:28:50 +02:00
Mahavir Jain
3cff291f95
bootloader: add note about secure download mode for ESP32 target
Closes IDFGH-5857
Closes https://github.com/espressif/esp-idf/issues/7557
2021-09-22 15:37:40 +05:30
Zim Kalinowski
73fc400ac0 Merge branch 'feature/github-7582' into 'master'
code formatting updated

See merge request espressif/esp-idf!15267
2021-09-22 09:43:35 +00:00
Sachin Parekh
c4e445b6f3 secure_boot: Enable --no-stub if secure boot enabled
ROM code doesn't allow loader stub to be executed in case secure boot in
enabled. Providing --no-stub flag to esptool allows user to flash new
firmware, given download mode hasn't been disabled
2021-09-22 12:45:46 +05:30
Tomas Rezucha
5fa9f30c8b Set MADCTL register during initialization 2021-09-22 08:55:01 +02:00
Kapil Gupta
8bf942c724 wpa_supplicant: Add missing cflag for legacy makefile 2021-09-22 11:30:30 +05:30
Jiacheng Guo
b7a99f4658 mdns: allow mutiple instances with same service type 2021-09-22 13:07:31 +08:00
Zim Kalinowski
b857c86535 Merge branch 'feature/freertos-upgrade-to-10.4.3-port-dont-discard' into 'master'
freertos: upgrade to 10.4.3 - try to add portDONT_DISCARD

See merge request espressif/esp-idf!15148
2021-09-22 01:11:54 +00:00
Zim Kalinowski
d37ed3e05b freertos: upgrade to 10.4.3 - try to add portDONT_DISCARD 2021-09-22 09:11:44 +08:00
Rahul Tank
1ad7d0dac4 Nimble: Check stack status before executing stack command 2021-09-21 12:41:45 +08:00
Chinmay Chhajed
a977618f55 BT: Check only for same X component of public key in BR/EDR. 2021-09-20 23:24:24 +08:00
radim.karnis
2e0adc37d2 tools: Update esptool submodule
Closes https://github.com/espressif/esp-idf/issues/7546
2021-09-20 21:21:28 +08:00
ajit1433
ae8fac38fa
code formatting updated 2021-09-18 23:14:09 +05:30
yuanjm
9e2f15ae51 lwip: Support DHCP option length configuration 2021-09-18 17:24:27 +08:00
Xie Wen Xiang
26debca1c5 Merge branch 'bugfix/btdm_ble_event_mask_default_value' into 'master'
[BLE] Fixed default LE Event Mask

See merge request espressif/esp-idf!15241
2021-09-18 08:26:01 +00:00
ChenJianxing
ebf577f9e5 esp_wifi: fix esp32s3 rom funcs ptr malloc in psram when psram enable 2021-09-18 15:56:53 +08:00
morris
20ef511d0a Merge branch 'bugfix/fix_reg_name_charactor_err' into 'master'
bugfix: fix reg name character error

See merge request espressif/esp-idf!14169
2021-09-18 07:10:57 +00:00
Jiang Jiang Jian
3b48b7e663 Merge branch 'Fix/update_reset_reason' into 'master'
update reset reason for c3/s3/h2

See merge request espressif/esp-idf!14747
2021-09-18 07:03:50 +00:00
Jiang Jiang Jian
bc7b372c24 Merge branch 'bugfix/remove_dis_rtc_ram_boot_efuse_bit' into 'master'
efuse: remove DIS_RTC_RAM_BOOT efuse bit

See merge request espressif/esp-idf!13783
2021-09-18 06:58:50 +00:00
Wu Zheng Hui
85651b4791 efuse: remove DIS_RTC_RAM_BOOT efuse bit 2021-09-18 14:58:43 +08:00
Armando (Dou Yiwen)
e3e406b81b Merge branch 'bugfix/link_spi_flash_rom_func_in_bootloader_stage' into 'master'
esp_rom: link rom spi flash functions in bootloader stage

Closes IDFGH-5065 and IDFGH-5800

See merge request espressif/esp-idf!15202
2021-09-18 05:14:23 +00:00
Guo Jia Cheng
0d4126b755 Merge branch 'bugfix/eventfd-isr-mismatch' into 'master'
vfs: fix occasional ISR context mismatch in event fd

See merge request espressif/esp-idf!15240
2021-09-18 02:56:11 +00:00
Alex Lisitsyn
cd27a44107 Merge branch 'bugfix/modbus_fix_stack_reinitialization_sequence' into 'master'
freemodbus: fix TCP stack/examples reinitialization sequence

Closes IDFGH-4432

See merge request espressif/esp-idf!12123
2021-09-17 11:13:57 +00:00
Alex Lisitsyn
c965b48e77 freemodbus: fix TCP stack/examples reinitialization sequence 2021-09-17 19:13:48 +08:00
Mahavir Jain
8b4c0e71a9 Merge branch 'feature/mbedtls_session_ticket_support' into 'master'
Feature/mbedtls session ticket support

Closes IDFGH-5288 and IDF-3242

See merge request espressif/esp-idf!14496
2021-09-17 09:59:02 +00:00
Jiacheng Guo
7eafcb0372 vfs: fix occasional ISR context mismatch in event fd 2021-09-17 17:31:20 +08:00
xiewenxiang
bebc5d543b component/bt: Fixed default LE Event Mask 2021-09-17 17:12:16 +08:00
morris
b8ec4c1a16 Merge branch 'bugfix/timergroup_regression' into 'master'
timer: fix unit test regression

Closes IDFCI-889

See merge request espressif/esp-idf!15232
2021-09-17 08:22:08 +00:00
Bao Hong De
eccb1f85d8 Merge branch 'bugfix/btdm_link_error_of_kconfig' into 'master'
Bugfix/btdm link error of kconfig

See merge request espressif/esp-idf!15176
2021-09-17 06:26:37 +00:00
Mahavir Jain
62078befb4 Merge branch 'docs/esp_log_custom_cb_note' into 'master'
esp_log: add note about reentrancy for custom logging function

See merge request espressif/esp-idf!15194
2021-09-17 04:44:38 +00:00
morris
56e617d747 timer: fix unit test regression 2021-09-17 10:45:06 +08:00
Wu Zheng Hui
27241e8213 Merge branch 'bugfix/fix_efuse_err_address' into 'master'
fix efuse err address in block0

See merge request espressif/esp-idf!14790
2021-09-17 02:17:09 +00:00
Jiang Jiang Jian
a015123a1d Merge branch 'feature/rename_apbctrl_to_syscon' into 'master'
rename apbctrl to syscon

See merge request espressif/esp-idf!14524
2021-09-16 12:58:07 +00:00
Wu Zheng Hui
1080e4f6a2 rename APB_CTRL ro SYS_CON
save
2021-09-16 20:57:57 +08:00
baohongde
b310c062cd components/bt: move config BT_RESERVE_DRAM from bluedroid to ESP32 controller 2021-09-16 20:26:35 +08:00
Mahavir Jain
334e314933 Merge branch 'feature/add_convenient_ws_send' into 'master'
Convenient websocket send functions

See merge request espressif/esp-idf!12690
2021-09-16 12:22:54 +00:00
wuzhenghui
9c5d1c7fcf fix s3 efuse err address in block0 2021-09-16 20:08:59 +08:00
wuzhenghui
8e1b8194f5 fix s2 efuse err address in block0 2021-09-16 20:08:59 +08:00
wuzhenghui
61b2c2d458 fix h2 efuse err address in block0 2021-09-16 20:08:59 +08:00
wuzhenghui
352ffbb78d fix c3 efuse err address in block0 2021-09-16 20:08:59 +08:00
Alex Lisitsyn
f40ae9cae9 Merge branch 'bugfix/fix_esp_restart_does_not_reset_timer_groups_periph' into 'master'
driver: fix esp_restart() does not reset timer group peripheral

Closes IDFGH-4652

See merge request espressif/esp-idf!12188
2021-09-16 11:45:42 +00:00
Alex Lisitsyn
c5d0d89508 driver: fix timer driver initialization sequence to not trigger interrupt immediately
add timer_hal_reset_periph()
fix timer_init() to reset timer counter during init
2021-09-16 19:45:33 +08:00
Armando (Dou Yiwen)
b9ea273e78 Merge branch 'feature/suppport_self_icode_calibration_on_s3' into 'master'
adc: support self calibration icode on s3

Closes IDF-3913

See merge request espressif/esp-idf!15195
2021-09-16 11:14:58 +00:00
Ivan Grokhotkov
ca73236f8e Merge branch 'bugfix/vfs_io_disabled_console' into 'master'
Fix console output flushing when CONFIG_VFS_SUPPORT_IO is disabled

Closes IDF-3892

See merge request espressif/esp-idf!15210
2021-09-16 10:27:04 +00:00
Ivan Grokhotkov
3c5e7b89ab spi_flash: extern spi_flash_chip_generic_timeout
spi_flash_generic_timeout is currently defined in the header file,
which makes it a common symbol between translation units where this
header file is included. It is also defined in
spi_flash_chip_generic.c.

Add an explicit `extern` to prevent multiple definition errors.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
b5606f5e81 esp_system: make the abort operation compatible with clang
Clang warns that the original code wouldn't have any effect:

    warning: indirection of non-volatile null pointer will be deleted,
             not trap [-Wnull-dereference]
    note: consider using __builtin_trap() or qualifying pointer
          with 'volatile'

__builtin_trap translates to 'break 1, 15' instruction on Xtensa,
which might be okay in this case. However to absolutely certainly not
break anything for GCC builds, add 'volatile' instead.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
82f0488f77 argtable: move GCC-specific pragma to cmake/make files
...and only add it when building with GCC.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
d0f960a634 newlib: don't use gcc-specific pragmas for clang 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
1e2b1238c6 cbor: add a workaround for -ffreestanding being passed to clang
Toolchain CMake files for clang currently pass -ffreestanding option
to prevent clang from picking the wrong copy of stdint.h. This is a
temporary hack until we fix clang distributions to not include the
GCC version of stdint.h. This hack, however, results in setting
__STDC_HOSTED__=0, which is being checked by cbor header files,
making some required functions unavailable as a result.
Undefine __STDC_HOSTED__ as a workaround. This flag is only passed
when compiling cbor itself.
2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
81b97b9a6b spi_flash: only add GCC-specific flags when building with GCC 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
370473b772 spiffs: only add GCC-specific flags when building with GCC 2021-09-16 11:07:54 +02:00
Ivan Grokhotkov
90a87cf5e4 cmake: don't run crosstool-version-check for clang
We will likely need to check clang version as well, eventually.
However at the moment clang builds change too often for such check
to be maintainable. Disable it for clang.
2021-09-16 10:54:27 +02:00
Martin Valik
1f451a4a77 Added more convenient functions for sending data to websocket 2021-09-16 10:53:29 +02:00
Armando
ddd0235783 adc: support adc self-calibration on esp32s3 2021-09-16 15:17:29 +08:00
Ivan Grokhotkov
ccda990ce5 newlib: set errno in the explicitly provided reent structure
Since these functions receive the pointer to reent structure, they
should set errno in it rather than using thread-local errno.

This didn't cause practical issues because console functions in IDF
are only called from threads, and in that case 'r' is a pointer to
the thread-local structure, so &errno is the same thing as
&__errno_r(r). Still, fixing this for consistency.
2021-09-16 09:00:07 +02:00
Ivan Grokhotkov
5da66d1d39 newlib: implement _fstat_r stub for console
When CONFIG_VFS_SUPPORT_IO is disabled, _read_r and _write_r
implementations in syscalls.c are used to provide console I/O via
esp_rom_uart_tx_one_char/esp_rom_uart_rx_one_char.

When newlib opens a (FILE*) stream, it calls fstat to check if the
underlying file is character-oriented. In this case, it configures the
stream to use line buffering. Otherwise (or if fstat fails) the stream
is opened as block buffered.

Since fstat wasn't provided, stdin/stdout/stderr streams got opened in
block buffered mode. For console, we need line buffered output so that
the stream buffer is flushed each time a complete line (ending with
'\n') is sent to stdout or stderr.

Fix by implementing _fstat_r stub, setting st->st_mdoe=S_IFCHR.
2021-09-16 09:00:07 +02:00
Li Shuai
b3e27403f3 esp_hw_support: keep external 40 MHz xtal related analog circuit power on during sleep 2021-09-16 14:46:21 +08:00
Li Shuai
58292a7d22 Power Management: add XTAL power domain to control whether external 40MHz xtal is powered down during sleep 2021-09-16 14:43:43 +08:00
Li Shuai
f5b39a7cde esp_hw_support: No voltage drop during light sleep to ensure stable output clock of rtc8m oscillator 2021-09-16 14:40:46 +08:00
Shivani Tipnis
d8b1c3d44a nvs_tool: Update Readme with supports of multiline strings and comments in the CSV file
Closes https://github.com/espressif/esp-idf/issues/7175
2021-09-16 11:11:19 +05:30
Li Shuai
b59902f4d1 Merge branch 'bugfix/esp32s3_lightsleep_psram_leakage_current' into 'master'
fix SPIRAM leakage when its CS pin has no hardware pullup

See merge request espressif/esp-idf!14730
2021-09-16 04:07:58 +00:00
Aditya Patwardhan
b4e4b9f20d Added support for client session tickets in esp-tls (with mbedtls)
* client session tickets for individual tls connections are supported
* reorganize the esp-tls error codes.
* Update esp_err_to_name.c
* Fix styling
2021-09-15 22:19:04 +05:30
Daniel Bahrdt
7e886ca9ed Implement server session ticket support with mbedtls
Closes https://github.com/espressif/esp-idf/pull/7048

Signed-off-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2021-09-15 22:19:04 +05:30
Aditya Patwardhan
c6c2ea975f Fix esp_mbedtls_write API
Fix esp_wolfssl_write API
Closes https://github.com/espressif/esp-idf/issues/7461
2021-09-15 21:40:54 +05:30
wuzhenghui
b2c028085a fix reg name character error 2021-09-15 21:51:20 +08:00
Shu Chen
8f283421da Merge branch 'feature/ot_example_doc' into 'master'
openthread: enrich documentation for openthread examples

See merge request espressif/esp-idf!15156
2021-09-15 13:48:17 +00:00
Ondrej Kosta
61455ddc19 Merge branch 'feature/set_phy_loopback' into 'master'
esp_eth: add PHY loopback control via esp_eth_ioctl

Closes IDF-3865

See merge request espressif/esp-idf!15096
2021-09-15 13:07:21 +00:00
Li Shuai
c5b481c6da light sleep: fix Flash leakage when its CS pin has no hardware pullup 2021-09-15 20:34:18 +08:00
Li Shuai
af4f2075ac light sleep: fix SPIRAM leakage when its CS pin has no hardware pullup 2021-09-15 20:34:18 +08:00
Armando
ea10dacf68 mspi: add octal psram get_cs_io function 2021-09-15 20:34:18 +08:00
chenjianqiang
9b53e18c44 add flash and PSRAM CS IO acquire function 2021-09-15 20:34:17 +08:00
Shu Chen
c09633d41b openthread: enrich documentation for openthread examples 2021-09-15 15:44:07 +08:00
Sudeep Mohanty
7eb75428d5 Merge branch 'feature/freertos-upgrade-to-10.4.3-FreeRTOSConfig.h-location-update' into 'master'
freertos: updated the location of FreeRTOSConfig.h

Closes IDF-3721

See merge request espressif/esp-idf!15119
2021-09-15 07:11:12 +00:00
boarchuz
cda459672a fix bootloader build with rom flash driver
Closes https://github.com/espressif/esp-idf/pull/7508
Closes https://github.com/espressif/esp-idf/issues/6849
2021-09-15 14:51:35 +08:00
David Čermák
29fac4faa0 Merge branch 'bugfix/tcp_transport_null_deref' into 'master'
tcp_transport: Fix NULL pointer deference in esp_tls_create (GitHub PR)

Closes IDFGH-5834

See merge request espressif/esp-idf!15125
2021-09-15 06:06:17 +00:00
baohongde
eb176c3453 Fix bt init error with psram 2021-09-15 10:57:45 +08:00
baohongde
05768e9878 components/bt: Combine 3 Bluetooth controller menu 2021-09-15 10:57:37 +08:00
Shu Chen
6704f4c92f Merge branch 'add_openthread_srp_client_option' into 'master'
openthread : update openthread submodule

See merge request espressif/esp-idf!15161
2021-09-14 14:39:51 +00:00
morris
9e50eafcec Merge branch 'bugfix/cbor_build_sys_cleanup' into 'master'
cbor: build system cleanup

See merge request espressif/esp-idf!15190
2021-09-14 13:01:48 +00:00
Zim Kalinowski
1ab631449f Merge branch 'bugfix/fix-invalid-task-exit-critical' into 'master'
fixed invalid taskEXIT_CRITICAL

See merge request espressif/esp-idf!15191
2021-09-14 12:02:10 +00:00
Mahavir Jain
ae7030ccd0 esp_log: add note about reentrancy for custom logging function 2021-09-14 16:57:15 +05:30
xiaqilin
988ec8be56 ieee802154: add zigbee pending mode and config coordinator function 2021-09-14 19:19:30 +08:00
WangQixiang
c5a52c605f openthread: update openthread submodule
openthread: add srp client enable option for openthread component

ieee802154: set ieee802154 default PTI to 6
2021-09-14 17:13:19 +08:00
Anton Maklakov
c94b913ced Merge branch 'bugfix/esp32s3_chip_id' into 'master'
esp_hw_support: update esp32s3 chip ID to the MP version

See merge request espressif/esp-idf!15183
2021-09-14 09:09:38 +00:00
Armando (Dou Yiwen)
13b63cd9d2 Merge branch 'feature/support_adc_calibration_s3' into 'master'
adc: support adc calibration on s3

Closes IDF-1950, IDF-3730, and IDF-3036

See merge request espressif/esp-idf!15031
2021-09-14 08:51:03 +00:00
Kevin (Lao Kaiyao)
a287f34f88 Merge branch 'bugfix/i2s_apll_fixed_clock' into 'master'
i2s: fix apll bug introduced in 'refactor/i2s_driver'

Closes IDFGH-5824

See merge request espressif/esp-idf!15109
2021-09-14 08:31:12 +00:00
Ondrej Kosta
76326e8268 esp_eth: add PHY loopback control via esp_eth_ioctl
Fixed esp_eth_ioctl command's data argument non-standard handling
2021-09-14 09:13:54 +02:00
Zim Kalinowski
da65a010a3 fixed invalid taskEXIT_CRITICAL 2021-09-14 15:03:46 +08:00
morris
502e132e5d Merge branch 'feature/fast_gpio_c3' into 'master'
fast gpio support on esp32-c3

Closes IDF-3783

See merge request espressif/esp-idf!14986
2021-09-14 06:09:34 +00:00