Tomas Rezucha
325205faee
refactor(usb/host): Make private hal types USB_DWC specific
2023-12-21 10:45:04 +01:00
Tomas Rezucha
d9223c6d91
feat(usb/host): Add High Speed enumeration types
2023-12-21 10:35:31 +01:00
Xu Si Yu
866bc77246
feat(ieee802154): add tx/rx report for IEEE802.15.4 debug
2023-12-21 15:17:54 +08:00
Jiang Jiang Jian
487adc09f4
Merge branch 'change/change_regdma_power_issue_macro_v5.1' into 'release/v5.1'
...
change(pm): change macro SOC_PM_RETENTION_HAS_REGDMA_POWER_BUG (backport v5.1)
See merge request espressif/esp-idf!27991
2023-12-21 11:27:10 +08:00
Lou Tianhao
1419db4b91
change(pm): change macro SOC_PM_RETENTION_HAS_REGDMA_POWER_BUG
2023-12-19 11:44:23 +08:00
Cao Sen Miao
dfff867379
fix(tempertuer_sensor): Fix regs on temperature sensor is not volatile due to GCC bug
2023-12-15 16:41:16 +08:00
morris
1b78d57496
Merge branch 'bugfix/bod_reset_c6_h2_v5.1' into 'release/v5.1'
...
fix(bod): Reset brownout in configuration to avoid RF cannot be enabled again(backport v5.1)
See merge request espressif/esp-idf!27723
2023-12-14 11:05:55 +08:00
wuzhenghui
4a7d9dd387
fix(esp_hw_support): re-initialize icg map in modem_clock_module_enable
2023-12-08 14:22:36 +08:00
morris
5e29bd5370
Merge branch 'bugfix/fix_adc_continuous_do_not_rst_apb_clk_v5.1' into 'release/v5.1'
...
fix(adc): fix adc continuous get less results beacuse do not reset apb clk (v5.1)
See merge request espressif/esp-idf!27604
2023-12-07 21:27:05 +08:00
Lou Tianhao
c1782faf0f
fix(pm/ext1): fix c6 h2 lp_aon_ll_ext1_set_wakeup_pins func
2023-12-07 03:52:22 +00:00
Cao Sen Miao
9dd90e2d9b
fix(bod): Reset brownout in configuration to avoid RF cannot be enabled again
2023-12-07 10:33:58 +08:00
gaoxu
57a5c4684c
fix(adc): fix adc continuous get less results beacuse do not reset apb clk
2023-12-06 10:19:45 +00:00
Darian Leung
fdab2d0c32
refactor(hal/usb_dwc): Add DWC OTG configuration values
...
This commit adds a subset of the DWC OTG configuration values to the
'usb_dwc_ll.h' file. Only relevant configuration values have been added.
Some DWC OTG releated constants have also been moved from 'usb_dwc_hal.h'
to 'usb_dwc_ll.h' and renamed.
2023-11-28 22:00:54 +01:00
Jiang Jiang Jian
b09e1d860d
Merge branch 'bugfix/fix_psram_access_faild_after_pd_cpu_wakeup_v5.1' into 'release/v5.1'
...
fix(esp_pm): fix psram access failed after pd_cpu wakeup if uart driver driven console is used (backport v5.1)
See merge request espressif/esp-idf!27051
2023-11-22 17:44:32 +08:00
Shu Chen
ecbbd3c3d9
Merge branch 'backport/add_ot_radio_stats_enable_config_5_1' into 'release/v5.1'
...
feat(openthread): backport some openthread features(BackportV5.1)
See merge request espressif/esp-idf!26885
2023-11-22 12:23:53 +08:00
Aditya Patwardhan
514cd783a3
Merge branch 'bugfix/esp32h2_ecdsa_hardware_k_v5.1' into 'release/v5.1'
...
fix(esp32h2): program use_hardware_k efuse bit for ECDSA key purpose (v5.1)
See merge request espressif/esp-idf!27271
2023-11-21 13:57:38 +08:00
morris
64e7343e40
Merge branch 'bugfix/fix_adc_read_zero_h2_v5.1' into 'release/v5.1'
...
ADC: fix adc raw data get 0 because of signal delay on ESP32H2(v5.1)
See merge request espressif/esp-idf!26976
2023-11-21 11:08:57 +08:00
Jiang Jiang Jian
e718b603e4
Merge branch 'bugfix/clear_ulp_wake_intr_in_wake_source_enable_v5.1' into 'release/v5.1'
...
fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable (backport v5.1)
See merge request espressif/esp-idf!27188
2023-11-21 10:52:54 +08:00
Jiang Jiang Jian
0e1ec38785
Merge branch 'bugfix/fix_lightsleep_current_leakage_on_usj_pad_v5.1' into 'release/v5.1'
...
fix(esp_hw_support): fix lightsleep current leakage on usb pad (backport v5.1)
See merge request espressif/esp-idf!27205
2023-11-21 10:51:11 +08:00
Mahavir Jain
2cd1635b86
fix(ecdsa): remove unused k_mode from the ECDSA HAL/LL API
...
For ESP32-H2 case, the hardware k mode is always enforced through
efuse settings (done in startup code).
For ESP32-P4 case, the software k mode is not supported in the peripheral
itself and code was redundant.
2023-11-20 16:05:15 +05:30
morris
1b3713f7cd
Merge branch 'feature/support_adc_calibration_on_h2_v5.1' into 'release/v5.1'
...
adc_cali: supported adc calibration v1 on ESP32H2 (v5.1)
See merge request espressif/esp-idf!26963
2023-11-17 16:41:00 +08:00
morris
ddb6d22468
Merge branch 'feature/gpio_dump_io_info_v5.1' into 'release/v5.1'
...
feat(gpio): add a dump API to dump IO configurations (v5.1)
See merge request espressif/esp-idf!26870
2023-11-17 16:30:22 +08:00
morris
ceb0aec0cc
Merge branch 'bugfix/rmt_stop_issue_v5.1' into 'release/v5.1'
...
fix(rmt): a disabled channel may pick up a pending transaction (v5.1)
See merge request espressif/esp-idf!26779
2023-11-17 16:27:21 +08:00
gaoxu
1179d9859f
fix(adc): fix h2 adc oneshot read zero and add delay after getting done signal v5.1
2023-11-17 02:16:21 +00:00
wuzhenghui
6ae596c764
fix(esp_hw_support): fix lightsleep current leakage on usb-phy controlled pad
2023-11-16 20:03:30 +08:00
wuzhenghui
61bb3fb67f
fix(esp_hw_support): clear all type ULP wakeup intr status at ulp wakeup source enable
2023-11-16 11:49:40 +08:00
wuzhenghui
46dae91a39
fix(esp_pm): fix psram access faild after pd_cpu wakeup
2023-11-16 03:20:27 +00:00
morris
bfeae3857c
feat(rmt): support calling rmt_receive in ISR callback
2023-11-15 05:57:45 +00:00
Chen Jichang
0ce2683d81
feature(MCPWM): Add MCPWM trigger driver and test
...
Each MCPWM operator has two Trigger (named T0 and T1), and they can be
routed to GPIO fault signal or timer sync event.Generator can be set up
to perform different action on Trigger event.
This commit add a trigger driver and a test for the driver.
2023-11-15 05:57:37 +00:00
Jiang Jiang Jian
87f58d5cd6
Merge branch 'bugfix/move_fe_32m_to_adc_fe_common_clock_v5.1' into 'release/v5.1'
...
fix(esp_hw_support): move fe_32m to fe/adc common clock (backport v5.1)
See merge request espressif/esp-idf!27058
2023-11-14 15:36:04 +08:00
Jiang Jiang Jian
0172c33818
Merge branch 'bugfix/fix_deinit_init_wifi_scan_fail_issue_v5.1' into 'release/v5.1'
...
Bugfix/fix deinit init wifi scan fail issue v5.1(Backport v5.1)
See merge request espressif/esp-idf!27064
2023-11-14 15:25:54 +08:00
Jiang Jiang Jian
93a6cb9ddf
Merge branch 'bugfix/spi_master_fifo_use_dma_v5.1' into 'release/v5.1'
...
fix(spi): fixed undesired touching to DMA (v5.1)
See merge request espressif/esp-idf!26769
2023-11-14 15:13:35 +08:00
morris
efafacae40
Merge branch 'feature/mcpwm_timer_change_freq_v5.1' into 'release/v5.1'
...
feat(mcpwm): support update timer period dynamically (v5.1)
See merge request espressif/esp-idf!26624
2023-11-13 17:55:52 +08:00
morris
d0f84285b7
Merge branch 'bugfix/fix_wrong_adc_attenuation_name_v5.1' into 'release/v5.1'
...
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12 (v5.1)
See merge request espressif/esp-idf!26967
2023-11-13 16:50:11 +08:00
morris
37fd9f4050
Merge branch 'bugfix/fix_adc_oneshot_do_not_spilt_clk' into 'release/v5.1'
...
fix(adc): fix ADC oneshot mod don't divide clk (v5.1)
See merge request espressif/esp-idf!26675
2023-11-13 15:18:18 +08:00
gaoxu
c5e107c53d
feat(adc_cali): Add ADC calibration support for ESP32H2
2023-11-13 03:04:03 +00:00
wuzhenghui
51b03d3812
fix(esp_hw_support): move fe_32m to fe/adc common clock
2023-11-10 15:39:08 +08:00
muhaidong
abfd0cbebc
change(hal): remove useless code from periph_ll_wifi_bt_module_enable_clk
2023-11-10 11:15:49 +08:00
Armando
6de9757a4b
fix(adc): rename ADC_ATTEN_DB_11 to ADC_ATTEN_DB_12
...
By design, it's 12 dB. There're errors among chips, so the actual
attenuation will be 11dB more or less
2023-11-07 14:09:21 +08:00
Song Ruo Jing
4892c481b5
feat(gpio): add a dump API to dump IO configurations
...
Merges https://github.com/espressif/esp-idf/pull/12511
2023-11-03 16:21:31 +08:00
KonstantinKondrashov
7e2e82a4a0
fix(hal): Fix incorrect behavior of hal_memcpy
...
Closes https://github.com/espressif/esp-idf/issues/12489
2023-11-03 15:49:35 +08:00
Lou Tianhao
9b3e40c9d1
feat(pm/deepsleep): Support EXT1_WAKEUP_MODE_PER_PIN
2023-11-03 11:02:56 +08:00
Xiao Xufeng
653008f4c7
fix(spi): fixed undesired touching to DMA
...
Closes https://github.com/espressif/esp-idf/issues/12241
2023-10-31 15:52:26 +08:00
gaoxu
b9cdadc5c6
fix(adc): fix adc oneshot mod do not split clk
2023-10-26 11:17:12 +08:00
morris
9b4a42e728
feat(mcpwm): support update timer period dynamically
...
Implement the requirement asked in
https://www.esp32.com/viewtopic.php?f=13&t=35919
2023-10-24 10:11:47 +08:00
Michael (XIAO Xufeng)
c1c843f5e2
Merge branch 'bugfix/fix_adc_sar_set_power_mode_no_effect_v5.1' into 'release/v5.1'
...
ADC: Fixed wrong ADC reading issue caused by ADC and WiFi power conflict on ESP32C6(backport v5.1)
See merge request espressif/esp-idf!26235
2023-10-12 15:18:18 +08:00
wuzhenghui
49013a0560
feat(modem_clock): separate management of modem_adc_common_fe clock and modem_private_fe
2023-09-28 16:24:39 +00:00
gaoxu
b183b88463
fix(adc): power settings not taking into effect on C6
2023-09-28 16:24:39 +00:00
morris
e5c8434c6e
fix(parlio_tx): fix wrong dma descriptor setup
2023-09-27 14:53:53 +08:00
Song Ruo Jing
b7ed76110c
fix(uart): Add 8/16-bit register field access workaround to ESP32C2
2023-09-19 12:12:05 +08:00
Eduardo Lacerda Campos
9cd0aee51b
fix(uart): Fix uart_ll_set_baudrate div-by-zero crash due to uint32_t overflow
...
Merges https://github.com/espressif/esp-idf/pull/12179
2023-09-19 12:12:05 +08:00
Marius Vikhammer
41a291fee0
fix(wdt): changed WDT clock source to XTAL for C6/H2
...
Previously it used PLL, but PLL could potentially be powered down by power-management
when CPU frequency changed.
2023-09-13 10:45:51 +08:00
Marius Vikhammer
c192ea478e
fix(wdt): changed ESP32-C3 WDT to use XTAL as clock
...
This clock is unchanged even when CPU/APB frequency changes (e.g. due to esp_pm),
which means timeout period is correct even after such a change.
2023-09-13 10:45:49 +08:00
morris
5baf0197f0
Merge branch 'feature/modify_mcpwm_clock_pre_scale_v5.1' into 'release/v5.1'
...
feat(mcpwm): Make the MCPWM capture timer's resolution configurable (v5.1)
See merge request espressif/esp-idf!25904
2023-09-12 11:30:39 +08:00
Jiang Jiang Jian
a432b1459e
Merge branch 'feature/lp_wdt_h2_5.1' into 'release/v5.1'
...
LP-WDT: add support for H2 (v5.1)
See merge request espressif/esp-idf!25863
2023-09-11 19:04:00 +08:00
Chen Jichang
d8e5b2ac41
feat(mcpwm): Set group clock prescale dynamically
...
MCPWM group clock pre scale was originally fixed to 2, which is
inconvenient. Set group clock prescale dynamically. Now the maximum
resolution of the MCPWM timer is up to 160MHz(when the prescale set
to 1). And add a resulotion config for MCPWM capture.
2023-09-11 11:29:28 +08:00
Marius Vikhammer
0a6d6c085a
feat(wdt): add LL functions for WDT on H2
2023-09-08 11:01:25 +08:00
Planck (Lu Zeyu)
9d535c05f7
feat(st7789): add data endian config
...
Closes https://github.com/espressif/esp-idf/issues/11416
2023-09-06 16:59:13 +08:00
morris
be7cf3dffb
Merge branch 'bugfix/fix_adc_continuous_driver_isr_flag_issue_v5.1' into 'release/v5.1'
...
adc: fix continuous hal func not in iram when gdma isr iram (v5.1)
See merge request espressif/esp-idf!25505
2023-08-30 10:51:36 +08:00
morris
2a80451b24
Merge branch 'feature/add_mcpwm_carrier_clk_source_v5.1' into 'release/v5.1'
...
feat(MCPWM): Add mcpwm carrier clk source(v5.1)
See merge request espressif/esp-idf!25572
2023-08-28 11:11:04 +08:00
Jiang Jiang Jian
5a25786a8a
Merge branch 'bugfix/lp_i2c_bugfixes_v5.1' into 'release/v5.1'
...
Fixed multiple LP I2C bugs (v5.1)
See merge request espressif/esp-idf!25277
2023-08-28 10:20:40 +08:00
Chen Jichang
c240a1f46b
feat(MCPWM): Add mcpwm carrier clk source
...
The MCPWM carrier is part of the operator and can work independently
without the MCPWM timer being enabled. This commit add the MCPWM
carrier clk source.
2023-08-25 17:34:58 +08:00
Armando
879b5d4401
fix(adc): fix adc continuous hal func not in iram when gdma isr iram
2023-08-24 11:04:43 +08:00
morris
a66f61e33f
Merge branch 'feature/usb_host_restrict_ahb_errata_workaround_to_esp32s2_eco0_v5.1' into 'release/v5.1'
...
USB Host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips (v5.1)
See merge request espressif/esp-idf!25054
2023-08-24 10:12:48 +08:00
morris
f41df5641a
Merge branch 'bugfix/gptimer_hal_placement_wrong_condition_v5.1' into 'release/v5.1'
...
fix(gptimer): hal function placement under wrong condition (v5.1)
See merge request espressif/esp-idf!25280
2023-08-23 23:21:20 +08:00
Jiang Jiang Jian
b638cb3335
Merge branch 'bringup/esp32h2_deep_sleep_for_rebase_v5.1' into 'release/v5.1'
...
esp32h2: support deep_sleep(backport v5.1)
See merge request espressif/esp-idf!24962
2023-08-23 20:12:01 +08:00
Laukik Hase
a0da805f2b
fix(hal): Fix the external memory vaddr region validity check
...
- For c6 and h2, the vaddr end calculated was off by 1
byte.
2023-08-22 15:24:02 +05:30
Darian Leung
c98aa927f6
usb_host: Restrict ESP32-S2 AHB errata workaround to only ECO0 chips
2023-08-17 15:26:23 +08:00
morris
77b74ab091
Merge branch 'bugfix/spi_bus_unify_defualt_mosi_level_v5.1' into 'release/v5.1'
...
spi: unify default mosi level on all targets (v5.1)
See merge request espressif/esp-idf!25014
2023-08-17 10:13:05 +08:00
morris
c113507ad7
feat(gptimer): add gptimer linker.lf to control the placement of driver and hal
...
since the linker placement of the hal functions are controlled by the Kconfig in the driver component,
we should create the linker.lf in the driver component, not in the hal component.
2023-08-14 02:31:16 +00:00
Sudeep Mohanty
6b1292284e
fix(lp_i2c): Fixed a bug where the LP_I2C did not send NACK for 16-byte reads
...
This commit updates the LP_I2C driver used by the LP CPU wherein the
driver did not send out a NACK when we do a read of multiple of the FIFO
depth bytes. This was because the LP I2C controller was configured to
send an ACK when the Rx FIFO reaches the threshold instead of a NACK.
This commit updates the behavior.
2023-08-11 14:43:15 +00:00
Lou Tianhao
badef66538
change(pm/deepsleep): rewrite the option all low as any low for esp32s2, esp32s3, esp32c6 and esp32h2
2023-08-03 16:46:55 +08:00
Lou Tianhao
b27e57db7b
feat(pm/deepsleep): Support EXT1 wakeup for esp32h2 deep_sleep
2023-08-03 16:46:55 +08:00
Song Ruo Jing
6768f098dc
change(driver/rtcio): Describe RTCIO CAPS with more accurate note
2023-08-03 16:46:55 +08:00
Lou Tianhao
4bc5e24f82
feat(pm/deepsleep): Support deep_sleep example and deep_sleep_wake_stub example for esp32h2
2023-08-03 16:46:54 +08:00
Jiang Jiang Jian
afcf3e261b
Merge branch 'bugfix/fix_cache_data_mem_corrupt_after_sleep_v5.1' into 'release/v5.1'
...
fix(lightsleep): Suspend cache before goto sleep to avoid cache load wrong data (backport v5.1)
See merge request espressif/esp-idf!25087
2023-08-02 11:21:33 +08:00
wuzhenghui
58a01eb10b
fix(hal): sync esp32c6 & esp32h2 uart_ll inline attr from master
2023-08-01 02:32:55 +00:00
wanlei
bb845e1841
cache: refactor cache_utils into cache_hal instade
2023-07-31 14:52:03 +08:00
wanlei
7a30edc412
fix(all): unify default mosi level to low on all targets
2023-07-26 20:34:25 +08:00
Li Shuai
78683c7c33
modem clock: provide a protected wifipwr clock enable/disable interface to fix the bug of selecting xtal as the low power clock source for ble
2023-07-14 11:07:34 +08:00
Li Shuai
a98db6dbd3
modem clock: gatable clock interface which can gate or ungate modem clock domain
2023-07-14 11:07:27 +08:00
morris
f195d48764
Merge branch 'bugfix/fix_s3_adc1_wrong_clk_div_v5.1' into 'release/v5.1'
...
adc: fix adc oneshot mode clk div issue on esp32, esp32s2 and esp32s3 (v5.1)
See merge request espressif/esp-idf!24743
2023-07-13 21:40:54 +08:00
Armando
d21e332281
fix(adc): fixed esp32, esp32s2,esp32s3 adc oneshot mode clk div issue
2023-07-12 17:10:58 +08:00
Armando
d8ee45ce08
adc: port gh pr to current adc continuous mode driver
...
DMA EOF may happens per multiple dma descriptors, instead of only one.
Closes https://github.com/espressif/esp-idf/pull/11500
2023-07-12 16:41:24 +08:00
Niklas Gürtler
5da5e1801b
Fix #10804 by running continuous ADC DMA in endless loop instead of restarting after each run (descriptor chain) to avoid losing samples. Use descriptor error callback for GDMA to check for DMA buffer overrun.
...
Signed-off-by: Armando <douyiwen@espressif.com>
2023-07-12 16:41:19 +08:00
Armando
f76f3dc83f
adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue
...
Closes https://github.com/espressif/esp-idf/issues/11385
2023-07-12 16:41:11 +08:00
Jiang Jiang Jian
9fb1b59054
Merge branch 'bringup/esp32h2_light_sleep_for_rebase_backport_v5.1' into 'release/v5.1'
...
esp32h2: support light_sleep(backport v5.1)
See merge request espressif/esp-idf!24697
2023-07-12 13:39:49 +08:00
morris
0c7e2a9d14
Merge branch 'bugfix/bod_intr__v5.1' into 'release/v5.1'
...
brownout: Disable the hardware BOD when BOD interrupt is enabled(backportv5.1)
See merge request espressif/esp-idf!24692
2023-07-12 11:17:58 +08:00
Lou Tianhao
ee299b2d53
bugfix: set FORCE_INLINE_ATTR for resume_uart
2023-07-11 15:04:19 +08:00
Lou Tianhao
60a3e5053e
Power Management: support pu xtal in light sleep for esp32h2
2023-07-11 14:53:15 +08:00
Lou Tianhao
7599d07c3f
bugfix: remove the workaround implemented in MR 22773 about the lp_timer
2023-07-11 14:53:02 +08:00
Lou Tianhao
6e15f589cc
Power Management: move lp_timer_hal.c to upper hal layer for esp32h2 and esp32c6
2023-07-11 14:52:46 +08:00
Cao Sen Miao
f44e8a8a8f
brownout: Disable the hardware BOD when BOD interrupt is enabled
2023-07-11 14:32:40 +08:00
zhangwenxu
e88adc3401
IEEE802154: match C6 max txpower value with datasheet
2023-07-11 14:28:54 +08:00
Lou Tianhao
2c9a2a76f7
example: bringup light sleep example for esp32h2
2023-07-11 13:58:08 +08:00
Lou Tianhao
3b40ce4d9b
Power Management: fix REGDMA clock issue when wake up form light sleep
2023-07-11 12:03:59 +08:00
Lou Tianhao
24486dd069
Power Management: support PAU REGDMA feature for esp32h2
2023-07-11 12:03:13 +08:00
Lou Tianhao
356fa3ab4b
Power Management: support DFS and PMU feature for esp32h2
2023-07-11 12:02:39 +08:00
Cao Sen Miao
e493a99da2
temperature_sensor: Apply new-shared interface in temperature sensor driver
2023-07-10 11:16:09 +08:00
laokaiyao
e90a2d50c4
adc_cali: supported channel compensation of adc calibration on esp32c6
2023-07-05 12:48:11 +08:00