Commit Graph

14491 Commits

Author SHA1 Message Date
Marius Vikhammer
8a48b55197 ulp: change deprecated headers to use relative includes to avoid recursivly including the same header 2022-02-11 14:56:11 +08:00
Marius Vikhammer
5ef585b1b9 Merge branch 'feature/remove_frc2_timer' into 'master'
esp_timer: remove legacy ESP32 FRC timer implementation

Closes IDF-3805

See merge request espressif/esp-idf!16406
2022-02-11 06:08:15 +00:00
Darian Leung
2cebfcf885 freertos: Refactor configuration files
This commit refactors the FreeRTOS configuration headers as follows:

- Layout is now similar to FreeRTOSConfig.h found in other upstream demos
- Separate out Vanilla FreeRTOS configurations and ESP-IDF additions
- Move/remove some irrelevant/unused macros and configurations
2022-02-10 21:23:46 +08:00
Omar Chebib
95cc6cfac4 LWIP: Make system timeout POSIX compliant (required by lwip_select)
`lwip_select` uses `sys_arch_sem_wait` function making the assumption that it
is POSIX compliant. This commit makes that function wait for at least
timeout (milliseconds), as required by POSIX specification.

* Relates to https://github.com/espressif/esp-idf/issues/7514
2022-02-10 10:36:09 +00:00
Darian Leung
7d78cec149 ledc: Remove usage of legacy FreeRTOS type 2022-02-10 15:19:36 +08:00
Marius Vikhammer
edb76f14d6 esp_timer: remove legacy ESP32 FRC timer implementation. 2022-02-10 15:17:49 +08:00
Omar Chebib
0cfa7ca20f Merge branch 'bugfix/fix_i2c_crash' into 'master'
I2C: Fix I2C Master operation with repeated start condition

Closes IDFGH-6719 and IDFGH-6724

See merge request espressif/esp-idf!17035
2022-02-10 07:05:59 +00:00
Anton Maklakov
3a04b712fa Merge branch 'bugfix/fix_abs_using' into 'master'
build: fix abs() use

See merge request espressif/esp-idf!16952
2022-02-10 05:18:32 +00:00
Darian
61639fe1ec Merge branch 'refactor/freertos_remove_legacy_types' into 'master'
FreeRTOS: Remove usage of legacy data types

Closes IDF-4566

See merge request espressif/esp-idf!16680
2022-02-10 04:57:00 +00:00
Jiang Jiang Jian
cca2234619 Merge branch 'feature/pmf_support_for_softAP' into 'master'
esp_wifi: Add pmf support for softAP.

Closes WIFI-1353

See merge request espressif/esp-idf!14906
2022-02-10 04:17:00 +00:00
ChenJianxing
9909c4a3dc esp_phy: fix esp32s2 sar2 init no cal and bbpll cal fail 2022-02-10 11:56:37 +08:00
Song Ruo Jing
40d1102ca5 Merge branch 'bugfix/cpu_reset_perip_clk_disable' into 'master'
esp_system: change range comparsion for reset reason to specifc cpu reset reason comparison

See merge request espressif/esp-idf!15492
2022-02-10 03:44:15 +00:00
Darian Leung
57fd78f5ba freertos: Remove legacy data types
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
2022-02-09 23:05:45 +08:00
aditi_lonkar
a8de305620 esp_wifi: Add softap pmf support for 8684. 2022-02-09 19:00:18 +05:30
aditi_lonkar
c3a661c0fd esp_wifi: Add pmf support for softAP. 2022-02-09 18:58:37 +05:30
morris
5810ed1d04 Merge branch 'refactor/remove_ets_sys_from_public_header' into 'master'
esp_rom: remove ets_sys.h dependency from public header files

See merge request espressif/esp-idf!16919
2022-02-09 12:27:06 +00:00
Martin Vychodil
c143090109 Merge branch 'bugfix/driver_sdmmc_host_disable' into 'master'
driver: disable sdmmc in cmake based on soc_caps

Closes IDF-613

See merge request espressif/esp-idf!17069
2022-02-09 11:33:24 +00:00
songruojing
c1dedb33fa esp_system: replace the range comparsion for reset reason in perip clk init with specific reset reason check, also add a test case in LEDC to check for the perip clk not being disabled after cpu reset 2022-02-09 15:54:34 +08:00
morris
5893797bf0 Merge branch 'bugfix/rmt_s2_doesnt_support_rx_wrap' into 'master'
rmt: rx wrap doesn't support on esp32s2

Closes IDFGH-6725

See merge request espressif/esp-idf!17052
2022-02-09 06:54:41 +00:00
morris
ef00bd59dc esp_rom: extract int matrix route and cpu ticks getter 2022-02-09 13:52:20 +08:00
yuanjm
7f1cba9912 esp_http_server: Websocket CLOSE frame can support callback function
Closes https://github.com/espressif/esp-idf/issues/7493
2022-02-09 10:15:36 +08:00
Marius Vikhammer
d57dce5b0e gpio: update gpio sleep workaround config name 2022-02-09 09:27:27 +08:00
Ivan Grokhotkov
01dd2dd45d
driver: disable sdmmc in cmake based on soc_caps 2022-02-08 21:22:36 +01:00
Kapil Gupta
9b38b15180 wpa_supplicant: Fix invalid memory dereference 2022-02-08 23:08:51 +08:00
morris
9bc2dd0b53 Merge branch 'fix/update_documentation_for_ds_apis' into 'master'
Digital Signature (ds):) Update the documentation for ds APIs

Closes IDFGH-6600

See merge request espressif/esp-idf!16997
2022-02-08 10:23:34 +00:00
Roland Dobai
52bdfa6c74 Merge branch 'feature/enable-fat16' into 'master'
Enable FAT16 for FATFS generator

Closes IDF-4046

See merge request espressif/esp-idf!16283
2022-02-08 09:05:09 +00:00
morris
955cb4c656 Merge branch 'bugfix/perfmon_copyright_headers' into 'master'
perfmon: add SDPX headers

See merge request espressif/esp-idf!17030
2022-02-08 08:38:49 +00:00
Jiang Jiang Jian
ff6b863736 Merge branch 'bugfix/fix_common_clock_bug' into 'master'
esp_wifi: fix common clock bug

See merge request espressif/esp-idf!16964
2022-02-08 07:23:16 +00:00
Darian
a00117cb7f Merge branch 'refactor/freertos_macro_selection' into 'master'
freertos: Add CHOOSE_MACRO_VA_ARG selector

See merge request espressif/esp-idf!16904
2022-02-08 06:48:14 +00:00
morris
9887c7e780 rmt: do not support rx wrap on esp32s2
Closes https://github.com/espressif/esp-idf/issues/8354
2022-02-08 13:57:31 +08:00
Mahavir Jain
79d95455de Merge branch 'contrib/github_pr_8337' into 'master'
Set success when closing socket (GitHub PR)

Closes IDFGH-6709

See merge request espressif/esp-idf!17022
2022-02-08 04:41:26 +00:00
morris
35ad282b5d Merge branch 'bugfix/spi_flash_unused_variable_warning' into 'master'
spi_flash: fix unused variable warning with SPI_FLASH_DANGEROUS_WRITE_ALLOWED

Closes IDFGH-6700

See merge request espressif/esp-idf!17020
2022-02-08 03:53:06 +00:00
Armando (Dou Yiwen)
579bd2cd44 Merge branch 'feature/adc_calibration_version_2_on_c3' into 'master'
adc: upgrade adc calibration algorithm to version 2 on c3

Closes IDF-4557

See merge request espressif/esp-idf!16876
2022-02-08 03:45:24 +00:00
Marius Vikhammer
0ffeaf9350 Merge branch 'feature/confgen_rename_many_to_one' into 'master'
kconfig: update confgen to handle sdkconfig.rename with target specific markup

Closes IDF-4544

See merge request espressif/esp-idf!16949
2022-02-08 02:38:22 +00:00
Marius Vikhammer
6895a662aa Merge branch 'bugfix/pm_trace' into 'master'
freertos: add pm_trace header include

Closes IDF-4637

See merge request espressif/esp-idf!17039
2022-02-08 01:47:41 +00:00
Martin Gaňo
f3425dea96 fatfsgen.py: enabled automatic detection of the FATFS type for FAT12 and FAT16 2022-02-07 17:22:58 +01:00
Darian Leung
c5fd79547a freertos: Add CHOOSE_MACRO_VA_ARG selector
This commit adds a CHOOSE_MACRO_VA_ARG() selector to allow selection between two
versions of a macro based on the number of arguments. This replaces the previous
portGET_ARGUMENT_COUNT() selector.

- portYIELD_FROM_ISR() now uses CHOOSE_MACRO_VA_ARG()
- portYIELD_FROM_ISR(arg) version added to risc-v port
- Old vPortEvaluateYieldFromISR() and portGET_ARGUMENT_COUNT removed
2022-02-07 20:01:11 +08:00
Mahavir Jain
e97b034b3e transport_ssl: use return value from close for non-TLS case
Also fix copyright header for this file
2022-02-07 17:17:16 +05:30
Dániel Buga
2ffa82a397 Set success when closing socket
Closes https://github.com/espressif/esp-idf/pull/8337
Closes IDFGH-6709
2022-02-07 17:16:36 +05:30
Alex Lisitsyn
6ddf2ea05e Merge branch 'bugfix/tinyusb_fix_idfgh6508' into 'master'
tinyusb: fix idfgh-6508: return type in tu_fifo_peek_n()

See merge request espressif/esp-idf!16858
2022-02-07 10:43:16 +00:00
Ivan Grokhotkov
d3f1867725 Merge branch 'bugfix/apptrace_copyright_headers' into 'master'
app_trace: add SPDX headers, mention SystemView in copyrights doc

See merge request espressif/esp-idf!17029
2022-02-07 10:38:58 +00:00
Marius Vikhammer
0fc8ede204 freertos: add pm_trace header include 2022-02-07 17:44:33 +08:00
Ivan Grokhotkov
45ffbd0150 Merge branch 'contrib/github_pr_8338' into 'master'
unity: Better readline for interactive test menu (GitHub PR)

Closes IDFGH-6708

See merge request espressif/esp-idf!17021
2022-02-07 09:37:32 +00:00
David Čermák
95c3f96801 Merge branch 'bugfix/wundef_wsign_compare' into 'master'
esp_netif: Fix -Wundef issues with esp_netif.h (GitHub PR)

Closes IDFGH-6598

See merge request espressif/esp-idf!16801
2022-02-07 09:03:52 +00:00
Ivan Grokhotkov
e27679b636 perfmon: add SDPX headers 2022-02-07 08:02:13 +00:00
Aditya Patwardhan
bb7be628a0 Digital Signature (ds):) Update the documentation for esp_ds_sign and
esp_ds_start_sign with additional information.
ii) Updated the DS docs for signature calculation.
Closes https://github.com/espressif/esp-idf/issues/8242
2022-02-07 12:44:06 +08:00
Armando
2f874dbf10 adc: upgrade adc calibration algorithm to version 2 on c3 2022-02-07 12:12:25 +08:00
Dmitry Koptsov
57716e3d86 I2C: Fix I2C Master operation with repeated start condition
* Closes https://github.com/espressif/esp-idf/pull/8353
2022-02-07 10:58:13 +08:00
Mahavir Jain
4c6d72ba90 Merge branch 'bugfix/esp32c3_sysview_examples_build_error' into 'master'
riscv: fix portSTACK_GROWTH redefinition error

See merge request espressif/esp-idf!17011
2022-02-05 05:43:05 +00:00
Michael (XIAO Xufeng)
c1b30491dd Merge branch 'feature/esp32c3_uart_add_wakeup_event' into 'master'
UART: add uart wakeup event for esp32c3 and esp32s3

Closes IDF-3416

See merge request espressif/esp-idf!14482
2022-02-04 17:23:29 +00:00
gabsuren
6c26d65203 websocket: Added configs reconnect_timeout_ms and network_timeout_ms
Closes https://github.com/espressif/esp-idf/issues/8263
2022-02-04 04:07:31 +08:00
Ivan Grokhotkov
4cedf84626
app_trace: add SPDX headers, mention SystemView in copyrights doc
Signed-off-by: Ivan Grokhotkov <ivan@espressif.com>
2022-02-03 17:44:59 +01:00
Erhan Kurubas
88889e2f88 esp32c3: fix portSTACK_GROWTH redefinition error 2022-02-03 14:55:49 +01:00
MacDue
ef25590277 unity: unity_gets remove unnecessary UINT8_MAX clamp + extra comments 2022-02-03 10:09:32 +00:00
Darian Leung
1c60d6a895 freertos: Add SPDX license identifiers and update xtensa port files
This commit does the following:

- Adds SPDX license identifiers to FreeRTOS sources. Remove those FreeRTOS sources from
  the copyright ignore list.
- Update xtensa port files to match FreeRTOS v10.4.3. Added SPDX license identifiers
  to the port files.
- Fixed some improperly licensed files
- Removed portbenchmark.h from RISC-V port
2022-02-03 17:08:14 +08:00
Darian Leung
3336b057d6 xtensa: Move saving of a0 register to match upstream
Upstream xtensa exception handling will save PS, PC, and a0 registers
together when saving a minimal context. This commit ppdates the xtensa
exception handling to match upstream behavior.
2022-02-03 17:08:14 +08:00
Mahavir Jain
98a74e431c spi_flash: fix unused variable warning with SPI_FLASH_DANGEROUS_WRITE_ALLOWED
Closes https://github.com/espressif/esp-idf/issues/8329
Closes IDFGH-6700
2022-02-03 09:52:06 +05:30
MacDue
f19f43dce1 unity: Better readline for interactive test menu
This commit replaces the use of esp_rom_uart_rx_string() with
a new simple readline function that supports echoing back
the input, along with backspaces.
2022-02-02 13:39:19 +00:00
Mahavir Jain
68f67db984 Merge branch 'feature/efuse_esp8684' into 'master'
efuse(esp32c2): Support eFuse key APIs

Closes IDF-3818

See merge request espressif/esp-idf!16290
2022-02-01 11:30:00 +00:00
KonstantinKondrashov
ebdc52d4e2 efuse(esp32c2): Support eFuse key APIs 2022-02-01 17:30:31 +08:00
Mahavir Jain
db58d00d64 Merge branch 'bugfix/ds_gen_test_cases_fix' into 'master'
ds: update gen_digital_signature_tests.py to handle different max key sizes

Closes IDFGH-6601

See merge request espressif/esp-idf!16915
2022-02-01 04:25:32 +00:00
Laukik Hase
db914d6272 wifi_prov_mgr: Fix provisioning not stopping in release mode
- For the wifi_prov_mgr example in release mode (with NDEBUG defined -
  assertions disabled), the task to stop provisioning is never started
  as it is voided by the assert function it is called in.

Closes https://github.com/espressif/esp-idf/issues/8309
2022-01-31 15:03:54 +05:30
Marius Vikhammer
4a3f50faa0 ds: update gen_digital_signature_tests.py to handle different max key sizes
Max key size is now decided by target parameter, and related parameters are
no longer hard coded.

Closes https://github.com/espressif/esp-idf/issues/8243
2022-01-31 12:22:10 +08:00
Marius Vikhammer
23c55946a6 kconfig: also parse target specific sdkconfig.rename.TARGET files
Adds functionality for target specific sdkconfig.rename files which can be
used when certain renames are only needed for a specific target.
2022-01-31 11:36:08 +08:00
Jakob Hasse
e899edd793 Merge branch 'bugfix/nvs_coverity_issues' into 'master'
bugfix (nvs): Fixed issues found by Coverity

Closes IDF-4391

See merge request espressif/esp-idf!16951
2022-01-29 21:52:18 +00:00
Anton Maklakov
8bb06df68f components: correct abs() use for unsigned and 64-bit arguments 2022-01-29 12:07:16 +07:00
Shu Chen
095fb1afc1 Merge branch 'feature/ot-multicast-routing' into 'master'
openthread: enable 1.2 multicast routing

See merge request espressif/esp-idf!16943
2022-01-28 15:43:04 +00:00
Anton Maklakov
7cdd151612 Merge branch 'bugfix/nocommon' into 'master'
enable and fix warnings on common symbols

Closes IDFGH-3055 and IDF-3013

See merge request espressif/esp-idf!16802
2022-01-28 14:39:51 +00:00
aleks
25578cc926 set to esp-based_on_9e992698 2022-01-28 12:23:56 +00:00
Sudeep Mohanty
1c393a32c4 Merge branch 'refactor/refactor_ulp_component' into 'master'
ulp: refactor ulp component

Closes IDF-4520

See merge request espressif/esp-idf!16886
2022-01-28 10:23:56 +00:00
Konstantin Kondrashov
7f1dc675ae Merge branch 'feature/clean_up_fe_sb_in_bootloader_for_esp32h2' into 'master'
bootloader_support: Removes old code of SB and FE for esp32h2

See merge request espressif/esp-idf!16935
2022-01-28 09:44:16 +00:00
David Čermák
5dcd630444 Merge branch 'feature/dhcps_more_client_info' into 'master'
lw-IP: Add more client's infor to dhcp server cb

Closes IDFGH-5839

See merge request espressif/esp-idf!16433
2022-01-28 07:31:32 +00:00
Kapil Gupta
096fe163ca Merge branch 'bugfix/wps_scan_resumption' into 'master'
wpa_supplicant: Scan resumption in PBC mode

Closes WIFI-4313

See merge request espressif/esp-idf!16912
2022-01-28 06:00:12 +00:00
morris
9f893130ad Merge branch 'feature/lcd_i2c_oled_example' into 'master'
lcd: add i2c oled example

See merge request espressif/esp-idf!16506
2022-01-28 04:07:34 +00:00
morris
0f11a17678 Merge branch 'docs/add_cb_to_ledc_rst' into 'master'
ledc: Mention source clock and fade end callback in LEDC API reference

Closes IDFGH-5637 and IDF-3293

See merge request espressif/esp-idf!14683
2022-01-28 03:12:10 +00:00
Ivan Grokhotkov
05b644ec50 Merge branch 'bugfix/twai_isr_iram' into 'master'
hal: fix CONFIG_TWAI_ISR_IN_IRAM for C3, hide TWAI menu for C2

See merge request espressif/esp-idf!16881
2022-01-27 22:14:05 +00:00
Jakob Hasse
4c8c2a8079 bugfix (nvs): Fixed issues found by Coverity
*  Fixed potential memory leak
*  Fixed wrong strncpy usage
*  Fixed potential out of bounds access
2022-01-27 19:30:58 +08:00
liuning
2a8c8686ac esp_wifi: fix common clock bug 2022-01-27 19:21:48 +08:00
songruojing
31f9a69454 ledc: Update LEDC programming guide
Add source clock in timer config
Add fade end callback and ledc_fade_stop usage
Explain ledc_fade_mode_t difference and limitation
2022-01-27 19:13:53 +08:00
Ivan Grokhotkov
84d11d1c3e Merge branch 'refactor/nvs_remove_mbedtls_dep' into 'master'
NVS: removed mbedtls as default dependency

Closes IDF-2085

See merge request espressif/esp-idf!16324
2022-01-27 10:17:42 +00:00
Jiacheng Guo
a271753a6a openthread: enable 1.2 multicast routing
This MR enables Thread 1.2 Backbone Border Router(BBR) feature and
multicast routing.
2022-01-27 15:22:27 +08:00
Sudeep Mohanty
2fc9bd61bf ulp: refactor ulp component
This commit refactors the ulp component.
Files are now divided based on type of ulp, viz., fsm or risc-v.
Files common to both are maintained in the ulp_common folder.

This commit also adds menuconfig options for ULP within the ulp
component instead of presenting target specific configuations for ulp.
2022-01-27 11:54:42 +05:30
Anton Maklakov
85462d17a5 components/bt: move deinit_semaphore definition to source file 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
9a7d9b59c1 usb: mark global variable declared in header 'extern' 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
67c52657cf bluedroid: mark dequant_long_* as extern variables 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
20286b37b2 blufi: remove duplicate definition of blufi_env
Keeping the single definition in blufi_prf.c
2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
f770cf721a fatfs: make global constants extern 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
771f5d32eb tinyusb: removed set-but-never-used global variable tusb_desc_set 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
336d0b64de riscv: fix panic_reasons being an instance of enum, not type name 2022-01-27 11:00:09 +07:00
Ivan Grokhotkov
d4190a9471 wpa_supplicant: mark global variables defined in headers 'extern'
...to avoid defining common symbols.
GCC since version 10 defaults to -fno-common and doesn't generate
common symbols, leading to duplicate definitions of these symbols.
2022-01-27 11:00:09 +07:00
Konstantin Kondrashov
c4d91581ca Merge branch 'bugfix/efuse_timesettings_for_esp32s3' into 'master'
efuse: Fixes eFuse timesettings issue on esp32S3

See merge request espressif/esp-idf!16907
2022-01-26 09:33:39 +00:00
Jakob Hasse
1d4061d3f2 refactor (nvs_flash)!: removed mbedtls as default dependency
mbedtls is only required in NVS if NVS encryption is enabled.
Hence the mbedtls dependency is now only added if encryption
is enabled, otherwise it is not added.

BREAKING CHANGE: Removed mbedtls as default dependency
2022-01-26 17:32:23 +08:00
KonstantinKondrashov
f761cee32e bootloader_support: Removes old code of SB and FE for esp32h2 2022-01-26 15:21:20 +08:00
David Cermak
05911fd4a1 lwip: Add dhcp servers post processing hook
In order to access DHCP messages from clients in different states
and possibly to implement custom handlers that alter the current state,
e.g. reject a client with specific hostname using NAK.
2022-01-26 07:18:48 +01:00
Song Ruo Jing
3821a09f83 Merge branch 'bugfix/ledc_consecutive_fade' into 'master'
ledc: Bugfixes for issues related to fade protection on ESP32

Closes IDFGH-4918 and IDFGH-5565

See merge request espressif/esp-idf!14568
2022-01-26 06:00:59 +00:00
Omar Chebib
08b1d7544b Merge branch 'breaking/remove_custom_uart_isr' into 'master'
UART & I2C: remove custom ISR registration function

See merge request espressif/esp-idf!16798
2022-01-26 03:54:14 +00:00
Wu Zheng Hui
76614e39ca Merge branch 'bugfix/fix_console_linenosie' into 'master'
console: fix console stuck in auto test

See merge request espressif/esp-idf!16913
2022-01-26 03:28:39 +00:00
Zim Kalinowski
67f51a4ce5 Merge branch 'bugfix/riscv_i2c_description' into 'master'
i2c: fix the controller count in the header description

Closes IDFGH-6476

See merge request espressif/esp-idf!16718
2022-01-26 03:13:07 +00:00
KonstantinKondrashov
45d2d2470b efuse: Fixes eFuse timesettings issue on esp32S3 2022-01-25 22:09:14 +08:00
Jiang Jiang Jian
3fa37be643 Merge branch 'ci/split_assign_test_and_add_c3_integration_test' into 'master'
ci: split assign test and add esp32c3 integration tests

See merge request espressif/esp-idf!16664
2022-01-25 13:06:06 +00:00