Song Ruo Jing
cc605edc1c
Merge branch 'bugfix/uart_event_fields_initialization' into 'master'
...
fix(uart): re-initialize uart_event fields to some certain values for every loop
Closes IDFGH-11129
See merge request espressif/esp-idf!30482
2024-04-25 14:57:10 +08:00
Song Ruo Jing
8c603c24cd
fix(uart): re-initialize uart_event fields to some certain values for every loop
...
Although uart_event.size and uart_event.timeout_flags fields are
meaningless to events other than UART_DATA, fix the values to 0 could
help reduce confusion.
Closes https://github.com/espressif/esp-idf/issues/12299
2024-04-24 19:19:04 +08:00
Song Ruo Jing
0733fa1267
Merge branch 'bugfix/fix_gpio_etm_multi_task' into 'master'
...
fix(gpio_etm): allow one GPIO binds to multiple ETM tasks
See merge request espressif/esp-idf!30319
2024-04-24 11:35:52 +08:00
Song Ruo Jing
bf3067fa8a
fix(gpio_etm): allow one GPIO binds to multiple ETM tasks
2024-04-23 20:37:34 +08:00
Song Ruo Jing
49a3bba4b2
Merge branch 'bugfix/gpio_drive_cap' into 'master'
...
fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3
Closes FV-752
See merge request espressif/esp-idf!29808
2024-03-25 12:23:04 +08:00
Song Ruo Jing
6f9a866f9d
Merge branch 'bugfix/uart_bitrate_max_value_c2' into 'master'
...
fix(uart): correct C2 UART_BITRATE_MAX value
See merge request espressif/esp-idf!29795
2024-03-25 11:56:49 +08:00
Song Ruo Jing
90a3107bfd
fix(gpio): add workaround to ensure correct IO drive strength for C3 and S3
2024-03-22 18:06:29 +08:00
Song Ruo Jing
3da77e2d1b
fix(uart): correct C2 UART_BITRATE_MAX value
2024-03-22 16:24:24 +08:00
Song Ruo Jing
34f05287ab
Merge branch 'bugfix/dma2d_various_small_fixes' into 'master'
...
fix(dma2d): correct a few 2D-DMA driver issues
See merge request espressif/esp-idf!29705
2024-03-19 21:36:45 +08:00
Song Ruo Jing
12325ff47e
fix(dma2d): correct a few 2D-DMA driver issues
...
1. mem_burst_length register field correction
2. remove dma buffer addr range restriction
3. M2M periph sel ID no need to be identical for TX and RX channels
4. correct rx descriptor owner field auto clear
5. remove fsm idle assertion for ERR_EOF
2024-03-18 20:11:57 +08:00
Song Ruo Jing
6b9c2fca79
Merge branch 'fix/uart_wakeup_threshold' into 'master'
...
fix(uart): Fix mismatch wakeup rising edges required with the threshold configured
See merge request espressif/esp-idf!29474
2024-03-16 22:50:28 +08:00
Song Ruo Jing
90bf2772ac
fix(uart): Fix mismatch wakeup rising edges required with the threshold configured
...
Closes https://github.com/espressif/esp-idf/issues/12586
2024-03-15 16:58:33 +08:00
Song Ruo Jing
091fe38835
Merge branch 'feature/esp32c5_gdma_support' into 'master'
...
feat(gdma): add GDMA support for ESP32C5
Closes IDF-8710, IDF-8712, and IDF-8716
See merge request espressif/esp-idf!28968
2024-02-29 11:44:05 +08:00
Song Ruo Jing
98d9f04b00
feat(gdma): add GDMA support for ESP32C5
2024-02-28 12:38:02 +08:00
Song Ruo Jing
bbe4d602e1
doc(pm): improve english description
2024-02-23 10:45:15 +08:00
Song Ruo Jing
d556fee5c4
Merge branch 'feature/esp32c5_clock_preliminary_support' into 'master'
...
Feature/esp32c5 clock preliminary support
See merge request espressif/esp-idf!28808
2024-02-08 11:54:35 +08:00
Song Ruo Jing
2a585f58a0
Merge branch 'refactor/add_lp_uart_test' into 'master'
...
Refactor/add lp uart test
See merge request espressif/esp-idf!28681
2024-02-07 20:02:46 +08:00
Song Ruo Jing
95133c179f
feat(clk): preliminary clock tree support for ESP32C5
2024-02-07 14:38:15 +08:00
Song Ruo Jing
5276cd4f1d
refactor(uart): add support to be able to test LP_UART port
...
Increase LP_UART_EMPTY_THRESH_DEFAULT value to 4. The original value
could cause the FIFO become empty before filling next data into the FIFO
when the buadrate is high. TX_DONE interrupt would raise before actual
transmission complete in such case.
2024-02-07 14:37:48 +08:00
Song Ruo Jing
dce27c3b09
change(clk_tree): add LP_DYN_FAST_CLK to soc_module_clk_t
2024-02-07 14:37:48 +08:00
Song Ruo Jing
10b41d7a24
Merge branch 'refactor/soc_rtc_h_file' into 'master'
...
refactor(rtc): move soc/rtc.h from soc to esp_hw_support component
Closes IDF-8941
See merge request espressif/esp-idf!28238
2024-01-26 20:20:20 +08:00
Song Ruo Jing
cf93777077
refactor(rtc): move soc/rtc.h from soc to esp_hw_support component
...
Deprecated rtc_xtal_freq_t, replaced with soc_xtal_freq_t defined in
clk_tree_defs.h in soc component.
2024-01-25 19:15:33 +08:00
Song Ruo Jing
9ba5f4dab2
Merge branch 'feature/esp32p4_dma2d_support' into 'master'
...
feat(esp_hw_support/dma2d): Add 2D-DMA support on ESP32P4
Closes IDF-6498
See merge request espressif/esp-idf!25527
2024-01-23 15:19:25 +08:00
Song Ruo Jing
08eada7301
feat(esp_hw_support/dma2d): Add 2D-DMA support on ESP32P4
2024-01-22 20:51:43 +08:00
Song Ruo Jing
e45aea723b
Merge branch 'feature/esp32p4_ppa_ll_support' into 'master'
...
feat(ppa): add low level support for PPA
See merge request espressif/esp-idf!28268
2024-01-17 23:18:35 +08:00
Song Ruo Jing
32111c1c4d
feat(ppa): add low level support for PPA
2024-01-16 23:20:59 +08:00
Song Ruo Jing
1dfa4011f0
Merge branch 'feature/esp32p4_clock_support' into 'master'
...
feat(clk): add basic clock support for esp32p4
Closes IDF-7526 and IDF-7569
See merge request espressif/esp-idf!27950
2023-12-29 12:34:12 +08:00
Song Ruo Jing
7f2b85b82b
feat(clk): add basic clock support for esp32p4
...
- Support CPU frequency 360MHz
- Support SOC ROOT clock source switch
- Support LP SLOW clock source switch
- Support clock calibration
2023-12-29 00:37:26 +08:00
Song Ruo Jing
80c5cf27e8
change(soc): correct esp32p4 regi2c related registers
2023-12-29 00:37:26 +08:00
Song Ruo Jing
d7b3bf0b69
Merge branch 'fix/esp32p4_gpio_pins' into 'master'
...
change(gpio): esp32p4 available pins are GPIO0 ~ GPIO54
Closes IDF-7735
See merge request espressif/esp-idf!28016
2023-12-20 16:39:21 +08:00
Song Ruo Jing
f244dc693d
Merge branch 'feature/esp32p4_regi2c_support' into 'master'
...
feat(regi2c): support regi2c for esp32p4
Closes IDF-8825
See merge request espressif/esp-idf!28011
2023-12-20 11:43:36 +08:00
Song Ruo Jing
20f6505aa6
change(gpio): esp32p4 available pins are GPIO0 ~ GPIO54
2023-12-20 11:23:32 +08:00
Song Ruo Jing
0e759c6deb
Merge branch 'refactor/esp_driver_uart' into 'master'
...
refactor(uart): make uart driver as component
Closes IDF-8384
See merge request espressif/esp-idf!27333
2023-12-18 19:16:34 +08:00
Song Ruo Jing
bc09031496
refactor(uart_vfs): Move uart implementation of vfs to esp_driver_uart
...
Deprecated esp_vfs_dev_uart_xxx APIs
vfs_uart test case moved to esp_driver_uart test_apps
Astyle fixed for uart_vfs
2023-12-15 17:14:55 +08:00
Song Ruo Jing
ef281dff5a
fix(esp_driver_uart): always use heap_caps_malloc to malloc memory base on flags
2023-12-15 17:03:58 +08:00
Song Ruo Jing
6ad80f0332
refactor(uart): make uart driver as component, and fix astyle
2023-12-15 17:03:51 +08:00
Song Ruo Jing
b403ef9527
Merge branch 'refactor/uart_read_bytes_from_ringbuf' into 'master'
...
change(uart): improved the internal logic of uart_read_bytes
Closes IDFGH-11220
See merge request espressif/esp-idf!27290
2023-11-24 21:35:05 +08:00
Song Ruo Jing
e358d379e5
change(uart): improved the internal logic of uart_read_bytes
...
Ringbuffer usage becomes more efficient with the use of xRingbufferReceiveUpTo
Closes https://github.com/espressif/esp-idf/issues/12386
2023-11-24 19:02:11 +08:00
Song Ruo Jing
365123dfaa
Merge branch 'bugfix/uart_custom_console' into 'master'
...
fix(console): enable to select UART1 port for console output
Closes IDF-6190
See merge request espressif/esp-idf!26642
2023-11-10 12:31:22 +08:00
Song Ruo Jing
46d33e46ef
fix(console): enable to select UART1 port for console output
...
This feature was only enabled for esp32, esp32s2, esp32s3 previously.
Now, enabling this feature for all targets.
2023-11-09 22:32:49 +08:00
Song Ruo Jing
8029946cba
Merge branch 'refactor/esp_driver_gpio' into 'master'
...
refactor(gpio): make gpio driver as component
See merge request espressif/esp-idf!26509
2023-11-06 15:03:30 +08:00
Song Ruo Jing
9461993ec5
refactor(gpio): make gpio driver as component, and fix astyle
2023-11-03 15:42:23 +08:00
Song Ruo Jing
5318c8d67d
Merge branch 'contrib/github_pr_12424' into 'master'
...
fix(driver/gpio): Fix SIG_GPIO_OUT_IDX comment for signal conn (GitHub PR)
See merge request espressif/esp-idf!26566
2023-10-23 20:36:13 +08:00
Song Ruo Jing
d73bf72885
Merge branch 'feature/gpio_dump_io_info' into 'master'
...
feat(gpio): add a dump API to dump IO configurations
Closes IDFGH-10987
See merge request espressif/esp-idf!26158
2023-10-13 22:35:59 +08:00
Song Ruo Jing
321f628ff5
feat(gpio): add a dump API to dump IO configurations
...
Closes https://github.com/espressif/esp-idf/issues/12176
2023-10-12 17:34:20 +08:00
Song Ruo Jing
814159448b
Merge branch 'feature/ledc_cal_duty_resolution' into 'master'
...
feat(ledc): add ledc_find_suitable_duty_resolution function
Closes IDFGH-10569
See merge request espressif/esp-idf!25208
2023-10-10 20:34:09 +08:00
Song Ruo Jing
0f64142845
Merge branch 'bugfix/ledc_max_duty_cycle' into 'master'
...
fix(ledc): fix ledc driver 100% duty cycle configuration
Closes IDFGH-10881 and IDFGH-10254
See merge request espressif/esp-idf!26067
2023-10-07 16:38:16 +08:00
Song Ruo Jing
66821f699c
refactor(ledc): move related kconfig and linker.lf to its own folder
2023-10-02 07:32:16 +00:00
Song Ruo Jing
f5f44e2ce5
fix(ledc): always allocate memory from internal ram
2023-10-02 07:32:16 +00:00
Song Ruo Jing
821f7b0498
fix(ledc): fix ledc driver 100% duty cycle configuration
...
Update ledc duty cycle value range in doxygen.
Fix duty configuration error at 100% duty cycle for ESP32.
Improve LEDC API doxygen.
Closes https://github.com/espressif/esp-idf/pull/11516
Closes https://github.com/espressif/esp-idf/issues/12083
2023-10-02 07:32:16 +00:00
Song Ruo Jing
98abcbabea
Merge branch 'feature/esp32p4_lp_io_support' into 'master'
...
feat(lp_io): Add support for ESP32P4
Closes IDF-7815
See merge request espressif/esp-idf!25991
2023-09-21 15:20:13 +08:00
Song Ruo Jing
2d458a3f93
feat(lp_io): Add support for ESP32P4
2023-09-20 19:39:41 +08:00
Song Ruo Jing
3717963618
Merge branch 'contrib/github_pr_12179' into 'master'
...
Update uart_ll.h - Fixing division by zero (GitHub PR)
Closes IDFGH-10990
See merge request espressif/esp-idf!25907
2023-09-14 11:30:42 +08:00
Song Ruo Jing
901eb02659
fix(docs): Improve the DFS and Peripheral Drivers section in power_management.rst
2023-09-13 21:44:23 +08:00
Song Ruo Jing
f227cbca1b
fix(uart): Add 8/16-bit register field access workaround to ESP32C2
2023-09-13 21:41:53 +08:00
Song Ruo Jing
91aab6bda0
Merge branch 'feature/add_uart_iram_safe_check' into 'master'
...
feat(uart): Add sdkconfig.ci.iram_safe test for UART driver
See merge request espressif/esp-idf!25618
2023-08-31 12:57:46 +08:00
Song Ruo Jing
767698b90d
feat(uart): Add sdkconfig.ci.iram_safe test for UART driver
2023-08-30 11:30:03 +08:00
Song Ruo Jing
be9afeac86
feat(gpio): add support for ESP32P4
2023-08-10 17:58:49 +08:00
Song Ruo Jing
8b574fb87f
remove(clk): remove warning log if RC_FAST clock calibration is needed on esp32h2
2023-07-26 20:29:58 +08:00
Song Ruo Jing
4b9f601ac3
Merge branch 'feature/esp32p4_clock_prework_support' into 'master'
...
feat(clk): Add support to get xtaL freq for ESP32P4
See merge request espressif/esp-idf!24927
2023-07-21 00:12:18 +08:00
Song Ruo Jing
b8a8713f96
feat(clk): Add support to get xtaL freq for ESP32P4
2023-07-20 18:13:13 +08:00
Song Ruo Jing
99c2691467
change(driver/rtcio): Describe RTCIO CAPS with more accurate note
2023-07-20 11:43:57 +08:00
Song Ruo Jing
4ac2d436ea
fix(gpio): fix potential crash when processing gpio isr
...
If CONFIG_SPIRAM_USE_MALLOC is enabled, and cache is disabled when GPIO ISR is triggered,
it would lead to Guru Meditation Error due to "Cache disabled but cached memory region accessed".
Closes https://github.com/espressif/esp-idf/issues/11876
2023-07-19 12:03:38 +08:00
Song Ruo Jing
9526273085
Merge branch 'bugfix/fix_uart_ll_compatible_with_cpp' into 'master'
...
fix(uart): Fixed C++ type conversion compile error in uart_ll_get_sclk
Closes IDFGH-10573
See merge request espressif/esp-idf!24690
2023-07-12 17:42:18 +08:00
Song Ruo Jing
b60f4a6f37
fix(uart): Fixed C++ type conversion compile error in uart_ll_get_sclk
...
Closes https://github.com/espressif/esp-idf/issues/11813
2023-07-11 11:18:00 +08:00
Song Ruo Jing
a9523b2cef
Merge branch 'contrib/github_pr_11810' into 'master'
...
ledc.c: Fix frequency calculation. (GitHub PR)
Closes IDFGH-10569
See merge request espressif/esp-idf!24618
2023-07-11 10:32:58 +08:00
Song Ruo Jing
ea48030514
Merge branch 'refactor/rtcio_caps_responsibility' into 'master'
...
refactor(driver/rtcio): Re-wrap RTCIO APIs with more accurate soc_caps
Closes IDF-7406
See merge request espressif/esp-idf!24522
2023-07-07 14:25:47 +08:00
Song Ruo Jing
4985caa38f
refactor(driver/rtcio): Re-wrap RTCIO APIs with more accurate soc_caps
2023-07-05 11:47:51 +08:00
Song Ruo Jing
03d4fa2869
Merge branch 'feature/support_lp_uart_for_uart_driver' into 'master'
...
uart: Support LP_UART port with UART driver for esp32c6
Closes IDF-7061 and IDF-7374
See merge request espressif/esp-idf!22914
2023-06-16 20:45:43 +08:00
Song Ruo Jing
921713fff4
uart: Support LP_UART port with UART driver on esp32c6
2023-06-16 07:31:40 +00:00
Song Ruo Jing
c8cf7c5824
gpio_ext: rename register prefix to be GPIO_EXT_xxx
2023-05-31 12:55:22 +08:00
Song Ruo Jing
a9c78245a0
clk: Add warning log if RC_FAST clock calibration is needed on esp32h2
2023-05-16 03:52:11 +00:00
Song Ruo Jing
e2a5c092f7
Merge branch 'refactor/rename_to_esp_clk_tree_prefix' into 'master'
...
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx
See merge request espressif/esp-idf!23362
2023-04-25 19:41:39 +08:00
Song Ruo Jing
a4e8960ab4
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h
2023-04-25 14:12:06 +08:00
Song Ruo Jing
6700630ccb
Merge branch 'refactor/ledc_driver_refactor' into 'master'
...
ledc: Improvement made on the LEDC driver
See merge request espressif/esp-idf!22971
2023-04-23 16:43:52 +08:00
Song Ruo Jing
fcc6514dde
ledc: Add an all-in-one HAL function to set fade parameters, and refactor ledc_ll_get_max_duty function
2023-04-21 16:40:54 +08:00
Song Ruo Jing
64aec54308
ledc: Add timer selection check to the driver, and leave space for future clk tree management
2023-04-21 16:40:54 +08:00
Song Ruo Jing
9cfc9757b9
Merge branch 'bugfix/allow_no_specify_uart_clk_src' into 'master'
...
uart: Allow omitting source_clk parameter to uart_param_config
Closes IDF-6951
See merge request espressif/esp-idf!23208
2023-04-18 11:34:11 +08:00
Song Ruo Jing
3f2bed1f5c
uart: Allow the users to not specify the source_clk in uart_config_t when calling uart_param_config
2023-04-17 15:43:06 +08:00
Song Ruo Jing
44915e4251
Merge branch 'bugfix/ledc_channel_update_regression' into 'master'
...
ledc: Fix two bugs inside LEDC driver
See merge request espressif/esp-idf!23064
2023-04-06 20:52:23 +08:00
Song Ruo Jing
5070e51dde
ledc: Fix two bugs inside LEDC driver
...
1. Regression introduced when refactoring on clock sources selection (0d07f859 ).
If channel configuration is called before timer configuration on C6, PWM signal may not be able to output.
2. Missing the improper fade parameter fix inside ledc_set_duty_and_update() function.
2023-04-06 12:37:33 +08:00
Song Ruo Jing
857b37f2f8
Merge branch 'refactor/mspi_clk_src_switch_h2' into 'master'
...
spi_flash: Small code refactor on MSPI clock source switch at bootloader
See merge request espressif/esp-idf!22763
2023-04-05 14:55:55 +08:00
Song Ruo Jing
5816c47457
spi_flash: Move mspi clock source switch to 64M in 2nd bootloader code from rtc_clk.c to bootloader_flash_config_esp32h2.c
2023-04-04 16:09:47 +08:00
Song Ruo Jing
5e29b12fb3
Merge branch 'bugfix/pmu_struct_h2' into 'master'
...
soc: Fix struct volatile rule in h2 pmu_struct.h
See merge request espressif/esp-idf!22879
2023-03-23 16:09:07 +08:00
Song Ruo Jing
9f972efac0
soc: Fix struct volatile rule in h2 pmu_struct.h
2023-03-22 19:41:40 +08:00
Song Ruo Jing
3ec287eaa5
Merge branch 'feature/ledc_gamma_curve_support' into 'master'
...
ledc: Support gamma curve fade feature
Closes IDF-5811 and IDF-6236
See merge request espressif/esp-idf!22486
2023-03-12 07:54:08 +08:00
Song Ruo Jing
79f34fe524
ledc: Support gamma curve fade feature on esp32c6 and esp32h2
2023-03-10 12:42:46 +08:00
Song Ruo Jing
5c5cfbc7c7
gpio: Re-enable gpio usb pins test cases on esp32h2
2023-03-09 17:21:43 +08:00
Song Ruo Jing
ab8e3ef791
Merge branch 'contrib/github_pr_10733' into 'master'
...
Update gpio_example_main.c (GitHub PR)
Closes IDFGH-9357
See merge request espressif/esp-idf!22305
2023-03-07 11:48:37 +08:00
Song Ruo Jing
51777a6862
gpio: Fix io hold functionality on esp32c6 and esp32h2
2023-03-02 18:10:10 +08:00
Song Ruo Jing
0558d40c81
Merge branch 'contrib/github_pr_10856' into 'master'
...
Correct typo in referenced function name (GitHub PR)
Closes IDFGH-9496
See merge request espressif/esp-idf!22537
2023-03-01 18:39:11 +08:00
Song Ruo Jing
3bb34f9882
Merge branch 'bugfix/ledc_improper_fade_param_for_setting_duty' into 'master'
...
ledc: Fix improper fade parameters for one-time duty set
Closes IDF-6928
See merge request espressif/esp-idf!22547
2023-03-01 15:02:54 +08:00
Song Ruo Jing
eab8abd877
ledc: Fix improper fade parameters for one-time duty set
...
Valid step and cycle values starts from 1.
scale = 0 indicates no change in duty for this linear fade.
2023-02-28 20:13:52 +08:00
Song Ruo Jing
8486a2c3ad
Merge branch 'bugfix/revert_rtc_clock_bbpll_power_on_with_usb' into 'master'
...
usb_serial_jtag: Improve the code for the issue of usb cdc device unable to work during sleep
Closes IDFGH-6887
See merge request espressif/esp-idf!20973
2023-02-27 23:18:54 +08:00
Song Ruo Jing
1a66459b44
usb_serial_jtag: Improve the code for the issue of usb cdc device unable to work during sleep
...
1. Remove RTC_CLOCK_BBPLL_POWER_ON_WITH_USB Kconfig option
During sleep, BBPLL clock always gets disabled
esp_restart does not disable BBPLL clock, so that first stage bootloader log can be printed
2. Add a new Kconfig option PM_NO_AUTO_LS_ON_USJ_CONNECTED
When this option is selected, IDF will constantly monitor USB CDC port connection status.
As long as it gets connected to a HOST, automatic light-sleep will not happen.
Closes https://github.com/espressif/esp-idf/issues/8507
2023-02-27 12:10:49 +08:00
Song Ruo Jing
987fd3208a
Merge branch 'feature/esp32h2_clock_basic_support' into 'master'
...
clk: Add basic clock support for esp32h2
Closes IDF-6265 and IDF-5973
See merge request espressif/esp-idf!21943
2023-02-21 16:16:05 +08:00
Song Ruo Jing
2c2a62e323
clk_tree: Add basic clock support for esp32h2
...
- Support SOC ROOT clock source switch
- Support CPU frequency change
- Support RTC SLOW clock source switch
- Support RTC SLOW clock + RC FAST calibration
Remove FPGA build for esp32h2
2023-02-20 17:15:02 +08:00
Song Ruo Jing
db59ab5000
Merge branch 'contrib/github_pr_10640' into 'master'
...
hal/uart_ll.h: Fix compile with C++ (ESP32-S3/H2) (GitHub PR)
Closes IDFGH-9255
See merge request espressif/esp-idf!22238
2023-02-10 10:51:27 +08:00
Song Ruo Jing
1addacb93d
Merge branch 'bugfix/fix_uart_tx_done_hardware_concurrency' into 'master'
...
uart: Fix TX side concurrency issues
Closes IDF-6201 and IDF-6086
See merge request espressif/esp-idf!21604
2023-02-09 10:58:17 +08:00
Song Ruo Jing
b69f983525
uart: Fix two TX concurrency issues
...
1. Concurrency might cause ESP_ERR_TIMEOUT when calling uart_wait_tx_done
2. Concurrency might cause RTS line being de-assreted during tx transmission for rs485 mode
2023-02-08 14:24:43 +08:00