Commit Graph

16271 Commits

Author SHA1 Message Date
Darian
0570c5db1a Merge branch 'bugfix/freertos_xTaskIncrementTick' into 'master'
freertos: Fix xTaskIncrementTick() and xTaskResumeAll()

Closes IDF-4698 and IDF-4705

See merge request espressif/esp-idf!17204
2022-07-21 08:14:30 +08:00
Mahavir Jain
15039f367d Merge branch 'update/update_certs_bundle' into 'master'
Update esp_crt_bundle certificates

See merge request espressif/esp-idf!19132
2022-07-21 06:14:41 +08:00
wangyuanze
ab0c4abd6e rmt: add open-drain flag on tx channel 2022-07-20 14:12:43 +00:00
morris
8944479bcd Merge branch 'feature/gpio_sigma_delta_ng' into 'master'
 SDM Driver-NG (Sigma-Delta channel allocator)

Closes IDF-5261 and IDF-2877

See merge request espressif/esp-idf!18626
2022-07-20 21:30:12 +08:00
Sudeep Mohanty
dadafb753f Merge branch 'bugfix/freertos_oneshot_timer_active_after_expiry' into 'master'
freertos: Fixed a bug where xTimerIsTimerActive incorrectly returns pdTRUE from callback

Closes IDFGH-6353

See merge request espressif/esp-idf!19076
2022-07-20 21:06:05 +08:00
David Cermak
e7afdff6ca esp_netif: Make set_link_speed() conditional on MIB2_STATS 2022-07-20 14:59:34 +02:00
David Cermak
89bb1fdec1 esp_netif: Add error checks to dhcp server state transitions 2022-07-20 14:59:34 +02:00
David Cermak
5c383d7b73 esp_netif/lwip: Fix deps cycles to "lwip -> esp_netif -> phy-drivers"
Fix dependency tree so that lwip doesn't depend on any specific network
interface component.
Network interface drivers shall depend on esp_netif.
esp_netif shall depend on lwip (but not on any specific interface
driver) -- it optionally depends on vfs and esp_eth (need ethernet
header for L2/bridge mode)
2022-07-20 14:59:07 +02:00
Jiang Jiang Jian
84ae84e3fe Merge branch 'bugfix/fix_lora_ie_bcn' into 'master'
Fix missing LoRa IE length in SoftAP beacon

Closes WIFI-4495

See merge request espressif/esp-idf!18997
2022-07-20 20:23:02 +08:00
David Čermák
e7ccaaf9ca Merge branch 'feature/update_mqtt_client' into 'master'
[MQTT] - Updates esp_mqtt configuration struct

See merge request espressif/esp-idf!18101
2022-07-20 19:52:04 +08:00
Kapil Gupta
b8267a59eb Merge branch 'bugfix/wps_disable_disconnect' into 'master'
WiFi: Do not disconnect in WPS disable API incase WPS is done/scanning

Closes IDFGH-7807

See merge request espressif/esp-idf!19092
2022-07-20 18:47:32 +08:00
Nachiket Kukade
792472c419 esp_wifi: Update wifi libs
Add missing LoRa IE length while allocating for Beacon in SoftAP LoRa mode
2022-07-20 09:24:46 +00:00
morris
3277b11c39 Merge branch 'feature/esp_lcd_spi_rx_1' into 'master'
Add support SPI rx into LCD component

Closes IDFGH-7661

See merge request espressif/esp-idf!19020
2022-07-20 16:59:44 +08:00
Ivan Grokhotkov
e56b1fd59d Merge branch 'feature/unity_runner_get_test_list' into 'master'
unity: expose some internal functions to allow iterating over tests

See merge request espressif/esp-idf!19056
2022-07-20 16:57:49 +08:00
Armando
638f39ff40 adc: fix legacy oneshot driver clock gating issue on c3 and c2 2022-07-20 16:35:59 +08:00
Michael (XIAO Xufeng)
5d24a207b6 test_spi: fixed redundant quotes in test descriptions 2022-07-20 15:36:10 +08:00
Vilem Zavodny
7b3fe6d832 esp_lcd: Add RX into SPI lcd panel. 2022-07-20 07:07:33 +00:00
Vilem Zavodny
a7bd917c42 esp_lcd: Fix code style. 2022-07-20 07:07:33 +00:00
Slamy
256945997d fixed misaligned data transfer for ssd1306
(cherry picked from commit 46a2bf8ac9)
2022-07-20 07:07:33 +00:00
morris
edb5600348 sdm: refactor example with new driver 2022-07-20 14:59:50 +08:00
morris
f33428f2e5 sdm: added channel allocator for sigma delta module 2022-07-20 14:59:50 +08:00
morris
e080248141 sdm: deprecate legacy driver 2022-07-20 14:59:50 +08:00
morris
4154eaec93 sdm: clean up soc/hal/ll code 2022-07-20 14:59:50 +08:00
morris
9e532696f4 pcnt: add const qualifier to event data 2022-07-20 14:59:50 +08:00
xueyunfei
b4d11d00ca bugfix for phy init failed when wifi deinit 2022-07-20 14:16:08 +08:00
GengYuchao
964304b751 Change the selection based on target to function selection 2022-07-20 13:06:56 +08:00
Cao Sen Miao
e69f658ac6 flash_encryption: Add several test environments for flash encryption test 2022-07-20 12:49:42 +08:00
morris
bec44ca2e9 gptimer: test on c2 with xtal 26mhz 2022-07-20 04:40:28 +00:00
Mahavir Jain
075e0729de Merge branch 'bugfix/mbedtls_dep_on_driver' into 'master'
mbedtls: remove dependency on driver component

Closes IDF-1265

See merge request espressif/esp-idf!19081
2022-07-20 12:04:34 +08:00
GengYuchao
298583b116 Fix nimble port api adapt remove esp_nimble_hci_and_controller_init 2022-07-20 11:44:00 +08:00
GengYuchao
fd055d3ba6 Fix example after removing API esp_nimble_hci_and_controller_init 2022-07-20 11:44:00 +08:00
GengYuchao
5430ad0519 Remove esp_nimble_hci_and_controller_init function 2022-07-20 11:44:00 +08:00
Darian Leung
38d974aca0 freertos: Update scheduler suspension unit tests
This commit updates unit tests for vTaskSuspendAll()/xTaskResumeAll().
2022-07-20 11:32:10 +08:00
Darian Leung
ac38f9aaf1 freertos: Rename scheduler suspension test file 2022-07-20 11:32:10 +08:00
Darian Leung
db26ff2503 freertos: Fix vTaskSuspendAll() and xTaskResumeAll()
This commit fixes vTaskSuspendAll() and xTaskResumeAll() in the following ways.

- For vTaskSuspendAll()
    - Sync function source code with upstream single core version
    - Clearly mark IDF additions
- For xTaskResumeAll()
    - Sync function source code with upstream single core version
    - Clearly mark IDF additions
    - Fix bug where cores other than core 0 were allowed to unwind pended ticks
2022-07-20 11:32:10 +08:00
Darian Leung
5971253971 freertos: Fix vTaskStepTick() and xTaskCatchUpTicks()
This commit fixes the following issues:

- Clearly mark IDF additions in vTaskStepTick() and xTaskCatchUpTicks()
- Add back vTaskSuspendAll()/xTaskResumeAll() to xTaskCatchUpTicks(). Scheduler
  suspension and resumption is required to unwind the pended ticks.
2022-07-20 11:32:10 +08:00
Darian Leung
7a4e1fee99 freertos: Fix xTaskIncrementTick()
Previously, xTaskIncrementTick() would always trigger a yield (i.e., return pdTRUE)
when called on core 1. This would mean core 1 would call vTaskSwitchContext() on
every tick, leading to uneccesary CPU overhead.

This commit fixes xTaskIncrementTick() in the following ways:

- Clearly mark IDF additions in xTaskIncrementTick()
- Moved esp_vApplicationTickHook() to be called direclty in xPortSysTickHandler() in order to
  simplify xTaskIncrementTick().
- Only core 0 calls xTaskIncrementTick() in order to simplify the function's logic. Core 0 is
  solely responsible for managing xTickCount and xPendedTicks
- All other cores call xTaskIncrementTickOtherCores() instead which is a simplified version of
  xTaskIncrementTick() and handles the following:
    - Check if core 0 has unblocked a higher priority task to run
    - Check if the current core requires time slicing
    - Call vApplicationTickHook()
2022-07-20 11:31:50 +08:00
Espressif BOT
72fe927e85 Update esp_crt_bundle certificates 2022-07-20 10:00:11 +08:00
Marius Vikhammer
1315f85e01 docs: fixed misc broken links 2022-07-20 09:43:52 +08:00
Song Ruo Jing
4734b1433b Merge branch 'bugfix/gpio_hal_coverity_fix' into 'master'
gpio: Fix ESP32S3 GPIO48 does not support hold function bug and Fix coverity report

Closes IDF-4901

See merge request espressif/esp-idf!18805
2022-07-19 21:37:15 +08:00
Armando (Dou Yiwen)
9f6f61345b Merge branch 'feature/adc_driver_ng' into 'master'
ADC Driver NG

Closes IDF-4560, IDF-3908, IDF-4225, IDF-2482, IDF-4111, IDF-3610, IDF-4058, IDF-3801, IDF-3636, IDF-2537, IDF-4310, IDF-5150, IDF-5151, and IDF-4979

See merge request espressif/esp-idf!17960
2022-07-19 21:28:31 +08:00
Sudeep Mohanty
5e1437deb8 freertos: Fixed a bug where xTimerIsTimerActive incorrectly returns pdTRUE from callback
This commit fixes the following:
- Fixes a bug wherein the timer status is active for oneshot timers that
expire before they are started.
- Callback calls for periodic timers where made before the timers were
auto-reloaded.
- Timer expiry trace was being set after the timer callback is called.

Closes https://github.com/espressif/esp-idf/issues/8014
2022-07-19 10:42:09 +02:00
Jakob Hasse
1f75fc0aa1 bugfix (esp_timer): made os spinlock static 2022-07-19 15:35:32 +08:00
Marius Vikhammer
12dcb95644 Merge branch 'ci/remove_temp_deepsleep_tag' into 'master'
ci: remove temp deepsleep tag runner

Closes IDF-5213

See merge request espressif/esp-idf!18654
2022-07-19 14:58:33 +08:00
Mo Fei Fei
f3a16d5122 Merge branch 'docs/update_nvs_encryption_cn_trans' into 'master'
Docs: Update CN translation for nvs encryption docs

Closes DOC-3202

See merge request espressif/esp-idf!18938
2022-07-19 14:47:16 +08:00
Simon
7c14328daa Merge branch 'fix/i2c_clk_26M' into 'master'
I2C: Add the I2C clock tree, and support 26M XTAL on ESP32-C2

Closes IDF-5005, IDF-5415, and IDF-4535

See merge request espressif/esp-idf!19057
2022-07-19 13:34:22 +08:00
Chen Jian Xing
c449abc8cd Merge branch 'feat/esp32c2_26M_phy_support' into 'master'
esp_phy: Support 26M and 40M crystal for esp32c2 phy

See merge request espressif/esp-idf!19010
2022-07-19 13:00:55 +08:00
Marius Vikhammer
e4cbaa6f2b ci: remove temp deepsleep tag runner 2022-07-19 12:12:46 +08:00
Cao Sen Miao
53580a62b5 I2C: Fullfill the I2C clock tree, and support 26M XTAL on ESP32-C2 2022-07-19 11:41:42 +08:00
Mahavir Jain
508661b03e Merge branch 'bugfix/ipc_O0_stack' into 'master'
ipc: Increase stacksize when compiling with -O0

Closes IDFCI-1372 and IDFCI-1360

See merge request espressif/esp-idf!19083
2022-07-19 00:37:08 +08:00
Mahavir Jain
a94c74c26b
mbedtls: remove dependency on driver component
- keep `esp_pm` dependency conditional in mbedtls
- refactor `bt` cmakelist to keep dependencies as private

Related: IDF-1265
2022-07-18 21:10:51 +05:30
David Čermák
5548f5acd6 Merge branch 'bugfix/lwip_ondemand_timers_num_system_timeout' into 'master'
lw ip: Fix on-demand timers to update internal system touts

Closes IDFGH-7595

See merge request espressif/esp-idf!18724
2022-07-18 21:56:57 +08:00
morris
9df1b0e3a1 Merge branch 'bugfix/not_test_bounce_buffer_mode_iram_safe' into 'master'
rgb_lcd: don't test bounce buffer mode with iram-safe

See merge request espressif/esp-idf!19089
2022-07-18 18:22:53 +08:00
Jiang Jiang Jian
5b771082bd Merge branch 'bugfix/wifi_owe_memory_leak' into 'master'
esp_wifi:bugfix for wifi owe memory leak

Closes WIFI-4589

See merge request espressif/esp-idf!19011
2022-07-18 17:53:51 +08:00
Kapil Gupta
9d98cd8f8d WiFi: Do not disconnect in WPS disable incase WPS is done/scanning
Closes https://github.com/espressif/esp-idf/issues/9341
2022-07-18 14:57:01 +05:30
Jiang Jiang Jian
633a9f744a Merge branch 'bugfix/OWE_memory_leak' into 'master'
esp_wifi : fixed OWE memory leak

See merge request espressif/esp-idf!19061
2022-07-18 17:20:36 +08:00
morris
05c51093c8 rgb_lcd: don't test bounce buffer mode with iram-safe
(cherry picked from commit 3ece942704)
2022-07-18 14:57:50 +08:00
morris
3ece942704 rgb_lcd: don't test bounce buffer mode with iram-safe 2022-07-18 14:55:11 +08:00
intern
4866e91398 docs: update nvs encryption cn trans 2022-07-18 14:40:56 +08:00
Kapil Gupta
882ad4e5e7 Merge branch 'feature/eloop_debug_framework' into 'master'
wpa_supplicant: Add debug info for eloop functions

See merge request espressif/esp-idf!18451
2022-07-18 14:17:25 +08:00
Marius Vikhammer
ccc184de51 ipc: Increase stacksize when compiling with -O0 2022-07-18 13:55:03 +08:00
David Čermák
1334011d4f Merge branch 'bugfix/transport_foundation_intialization' into 'master'
tcp_transport: Fix initialition of transport

See merge request espressif/esp-idf!17869
2022-07-16 16:28:49 +08:00
Euripedes Rocha
ff1c405ed1 [MQTT] - Updates esp_mqtt configuration struct
- Layered config struct
- Fix examples.
2022-07-15 12:32:50 -03:00
Armando
5b523a3313 esp_adc: new esp_adc component and adc drivers 2022-07-15 18:31:00 +08:00
Shyamal Khachane
88db86672d fix for OWE memory leak 2022-07-15 14:29:32 +05:30
songruojing
145454356b gpio: Fix ESP32S3 GPIO48 does not support hold function bug
GPIO_HOLD_MASK array was missing the last item

Add __Static_assert to check array sizes for all gpio_periph.c files to prevent same mistake in the future.
2022-07-15 16:51:25 +08:00
songruojing
0c4b9a0101 gpio: Fix HAL bad bit shift operation on gpio_num_t reported from coverity
All gpio hal and ll functions input arguments gpio_num_t are changed to uint32_t type.
Validation of gpio num should be guaranteed from the driver layer.
2022-07-15 16:51:25 +08:00
David Čermák
c65d818c1d Merge branch 'bugfix/set_ipv6_dns_error' into 'master'
lw ip: Fixed that ipv6 dns cannot work

See merge request espressif/esp-idf!19018
2022-07-15 14:50:02 +08:00
David Čermák
1a7dfa42e6 Merge branch 'bugfix/cpp_include_fix_newlib_net_if_h' into 'master'
Add C++ include guard to if.h (to fix linker errors in asio) (GitHub PR)

Closes IDFGH-7718

See merge request espressif/esp-idf!18850
2022-07-15 13:16:47 +08:00
Jiang Jiang Jian
7497a5287c Merge branch 'bugfix/fix_bluedroid_host_memory_overflow' into 'master'
Fixed bluedroid host memory overflow

Closes BT-2397

See merge request espressif/esp-idf!18897
2022-07-15 11:52:33 +08:00
Wang Yuan Ze
b666bdb01e Merge branch 'example/fix_ir_nec_transceiver_issue' into 'master'
example: Fix rmt callback memory issue in ir_nec_transceiver

See merge request espressif/esp-idf!19040
2022-07-15 11:39:36 +08:00
Ivan Grokhotkov
09c70d5781
unity: expose some internal functions to allow iterating over tests 2022-07-14 19:47:46 +02:00
Ondrej Kosta
c0312e3242 Merge branch 'feature/improve_spi_ethernet_init' into 'master'
esp_eth: SPI Ethernet modules initialization simplification

Closes IDF-3902

See merge request espressif/esp-idf!18663
2022-07-15 00:02:23 +08:00
Rahul Tank
19bea043fb Merge branch 'bugfix/os_mbuf_free_c2_h2' into 'master'
Fixed os_mbuf_free compilation error for esp32c2 and esp32h2

See merge request espressif/esp-idf!19033
2022-07-14 23:16:59 +08:00
xueyunfei
1f9fa7b1b2 esp_wifi:bugfix for wifi owe memory leak 2022-07-14 20:34:15 +08:00
Euripedes Rocha
5778a7c726 [tcp_transport] Fix initialition of transport
- Foundation was initialized only for SSL.
- Removed base from list.
- Changed SSL and TCP initialition.
- Clean of state data structures.
2022-07-14 12:29:58 +00:00
Fu Hanxi
7b5a3af407 Merge branch 'feat/reorg_examples' into 'master'
feat: new find_build_apps rules with centralized manifest file

Closes IDFCI-1061, IDF-3553, IDFCI-941, IDFCI-1359, and IDFCI-1361

See merge request espressif/esp-idf!18299
2022-07-14 20:04:12 +08:00
zhiweijian@espressif.com
4bd267ac9a Fixed bluedroid host memory overflow 2022-07-14 19:35:22 +08:00
wangyuanze
61f19094b0 example: fix rmt callback memory issue in ir_nec_transceiver 2022-07-14 18:59:38 +08:00
Ondrej Kosta
bb6c6aff36 esp_eth: SPI Ethernet modules initialization simplification 2022-07-14 08:46:22 +02:00
David Cermak
adb79a4852 newlib: Fix header issues with C++ guards and implicit inclusion
* Added C++ sentinels if missed
* Used #pragma once, removed macro's with leading underscores
* Updated copyright checker to allow "BSD-2-Clause-FreeBSD AND
Apache-2.0" for newlib files
* Fixed minor compilation issues/implicit inclusions
2022-07-14 08:32:04 +02:00
morris
a33a183365 rgb_lcd: support double buffer
also cleaned up the bounce buffer code
2022-07-14 14:05:47 +08:00
morris
9ea3f6f3e7 rgb_lcd: support 8bit RGB (SRGB) interface 2022-07-14 14:05:47 +08:00
morris
ad35ed2e58 rgb_lcd: update unit test for more features
test 8bit RGB interface
test PCLK can be changed at runtime
test bounce buffer mode
adapted to the new LCD board
2022-07-14 14:05:47 +08:00
morris
4bccd3b635 rgb_lcd: rename relax_on_idle to refresh_on_demand 2022-07-14 14:05:47 +08:00
morris
1dab4af3e8 rgb_lcd: added API to manually refresh the LCD 2022-07-14 14:05:47 +08:00
morris
140536892d rgb_lcd: added API to get the frame buffer(s) 2022-07-14 14:05:47 +08:00
morris
226bd6bc2d rgb_lcd: add doc for various frame buffer modes 2022-07-14 14:05:47 +08:00
morris
ada0ba7717 rgb_lcd: unify the way to register event callbacks 2022-07-14 14:05:47 +08:00
0xFEEDC0DE64
48c5b45e99 Add C++ include guard to if.h (to fix linker errors in asio) 2022-07-14 07:48:58 +02:00
David Cermak
58b0def0d9 lwip: Fix on-demand timers to update internal system touts
If on-demand timers (IGMP+MLD6) were enabled, idf updated user config
MEMP_NUM_SYS_TIMEOUT. The implementation of these timers are in lwip
project so the internal system timeout shall be updated accordingly,
enabling port layers to modify MEMP_NUM_SYS_TIMEOUT.

Closes https://github.com/espressif/esp-idf/issues/9150
2022-07-14 05:09:53 +00:00
Isha Pardikar
183100fc28 Nimble: Fixed compilation error for esp32c2 and esp32h2 when os_mbuf_free is called. 2022-07-14 09:41:05 +05:30
Chen Jian Xing
27d096fb63 Merge branch 'bugfix/fix_beacon_timeout_timer_assert_issue' into 'master'
esp_wifi: fix sta reset beacon timeout timer issue

Closes IDFGH-7489 and IDFCI-1357

See merge request espressif/esp-idf!19021
2022-07-14 11:30:05 +08:00
Fu Hanxi
c0568611dd docs: changes docs supported targets tables 2022-07-14 08:26:32 +08:00
Fu Hanxi
05d2357062 feat: use standalone project idf-build-apps for find/build apps utils 2022-07-14 08:26:31 +08:00
Fu Hanxi
f04a0cc526 fix: bypass Manually-specified variables were not used by the project warning
the variable "IDF_TARGET" is only used under a if clause
"if(ULP_C0CPU_IS_RISCV)". while building a non-riscv target,
there will be a cmake warning:

CMake Warning:
  Manually-specified variables were not used by the project:

    IDF_TARGET
2022-07-14 08:26:01 +08:00
Fu Hanxi
1129bd7587 test: increase test gpio time timeout 2022-07-14 08:26:01 +08:00
Ivan Grokhotkov
230e732018 Merge branch 'feature/system_init_priorities' into 'master'
esp_system: introduce priorities for startup functions

Closes IDFGH-5683 and IDF-4954

See merge request espressif/esp-idf!18159
2022-07-14 06:22:25 +08:00
Ivan Grokhotkov
02f28ef32a Merge branch 'bugfix/esp_error_check_func_addr' into 'master'
esp_err: two minor issues

Closes IDFGH-7530

See merge request espressif/esp-idf!18665
2022-07-14 04:14:16 +08:00
Mahavir Jain
20e21fb29d Merge branch 'refactor/remove_rom_deps' into 'master'
RFC: remove dependency to target-specific ROM headers

Closes IDF-1968

See merge request espressif/esp-idf!18206
2022-07-13 16:44:44 +08:00