Commit Graph

72 Commits

Author SHA1 Message Date
Song Ruo Jing
f4a5108d49 fix(uart): fix clock deinitialization in uart_detect_bitrate_stop 2025-11-21 20:41:19 +08:00
Song Ruo Jing
5ca9827894 fix(uart): fix parenthesis typo on UART_INTR_CONFIG_FLAG macro
No real impact on the logic, just typo fix
Closes https://github.com/espressif/esp-idf/issues/17885
2025-11-21 20:41:19 +08:00
Chen Chen
70a0fb5b7f Merge branch 'fix/handle_shared_intr' into 'master'
Fix/handle shared intr

Closes IDF-12904

See merge request espressif/esp-idf!43149
2025-11-19 11:05:37 +08:00
Chen Chen
47f5ac96fb fix(intr_alloc): Fix ISR allocate methods in several drivers 2025-11-18 12:33:03 +08:00
Song Ruo Jing
8955f13944 fix(uart): fix some wdt get triggered due to uart sclk not exist on C5
Interrupt wdt would get triggered on uart_driver_install if uart driver was deleted before
Closes https://github.com/espressif/esp-idf/issues/17779

RTC wdt would get triggered on esp_restart if uart driver was deleted before
2025-11-17 22:29:56 +08:00
Song Ruo Jing
335273c53e fix(uart): fix send_size calculation in uart_write_bytes
MIN() macro is only an expansion of a conditional operator.
xRingbufferGetCurFreeSize was called twice in the original code,
which may return different values in two calls, leading to incorrect
send_size calculation and eventually could trigger task watchdog.
2025-11-17 21:52:18 +08:00
He Binglin
2213716fd5 Merge branch 'feat/esp_idf_lp_uart_wakeup' into 'master'
feat(esp_hw_support): support lp uart wakeup during sleep

Closes PM-533

See merge request espressif/esp-idf!41704
2025-11-07 11:03:08 +08:00
hebinglin
bf38ef3abc feat(esp_hw_support): support lp uart wakeup during sleep 2025-11-06 16:19:57 +08:00
Song Ruo Jing
d30846578f fix(uart): fix uart_write_bytes gets stuck internally if ring buffer is full
Introduced in c062cd9a95
2025-11-05 22:45:49 +08:00
Song Ruo Jing
8818157e42 fix(uart): fix some uart port generate a RX BRK_DET intr on reset issue
Issue saw on S3 UART2 and some LP_UART ports
2025-11-05 22:45:44 +08:00
Kevin (Lao Kaiyao)
ce65a06cc2 Merge branch 'refactor/parlio_rx_use_dma_link' into 'master'
refactor(parlio_rx): use gdma_link for better gdma link management

Closes IDF-13369, IDF-13627, and IDFGH-16449

See merge request espressif/esp-idf!40743
2025-11-04 12:04:45 +08:00
laokaiyao
49284c3f8d feat(gdma_link): support to select final node link type 2025-10-30 16:06:12 +08:00
Ashish Sharma
5b8cd3f626 fix: fix unused value in esp uart driver 2025-10-27 11:02:48 +08:00
Song Ruo Jing
c062cd9a95 fix(uart): correct uart_get_tx_buffer_free_size calculation
Modified a bit on the TX ring buffer push size logic

 Closes https://github.com/espressif/esp-idf/issues/15859
2025-10-20 16:24:21 +08:00
Chen Jichang
ddef1d3d52 refactor(gdma): move buffer aligment to buffer mount config 2025-09-26 16:42:33 +08:00
Marius Vikhammer
19337d2708 change(vfs): deleted deprecated uart and uart-jtag-serial API 2025-09-22 11:46:07 +08:00
Alexey Lapshin
9281e78381 change(esp_libc): rename newlib component to esp_libc 2025-09-09 22:00:44 +08:00
Song Ruo Jing
6bfdc93593 feat(uart): add DTR and DSR signals support for UART 2025-08-05 16:45:46 +08:00
Ashish Sharma
6b02906822 fix(security): improve memory allocation handling in multiple components 2025-07-28 10:05:50 +08:00
morris
c4d7b1cfce refactor(uart)!: deprcated esp_rom_uart.h 2025-07-08 18:56:17 +08:00
Song Ruo Jing
85f0da63fc fix(uart): fix release pin logic if switching only one pin 2025-06-27 21:53:54 +08:00
Song Ruo Jing
60bef64f5c feat(gpio): esp_rom_gpio_connect_in/out_signal now has their hal implementation 2025-06-11 20:41:37 +08:00
wuzhenghui
65b7e70564 feat(driver): support acquire/release clock source dependency for all drivers 2025-05-27 21:21:38 +08:00
Chen Jichang
91d1812315 fix(uhci): only call esp_pm APIs when CONFIG_PM_ENABLE is enabled 2025-05-22 17:27:18 +08:00
morris
7af3bddbca fix(drivers): some false reports from coverity 2025-05-20 16:52:32 +08:00
C.S.M
1637e27ae3 Merge branch 'docs/uhci_programming_guide' into 'master'
docs(uhci): Added implementation for uart-dma (uhci) programming guide

See merge request espressif/esp-idf!38663
2025-05-16 17:26:26 +08:00
C.S.M
093db55bf4 docs(uhci): implementation for uart-dma (uhci) docs 2025-05-16 15:14:51 +08:00
Song Ruo Jing
fa00aa43e7 refactor(uart): minor refactor to uart wakeup code 2025-05-15 11:20:59 +08:00
Song Ruo Jing
f1446571e7 fix(uart): eliminate garbled data on UART TX/RX line in sleep 2025-05-15 11:07:26 +08:00
Song Ruo Jing
007a497483 feat(uart): add pin release process to uart driver 2025-05-15 11:07:26 +08:00
morris
8af9bb624e test(uhci): enable the psram test in CI 2025-04-30 13:16:57 +08:00
C.S.M
bb03892461 feat(uhci): Add length receive threshold support 2025-04-29 11:12:38 +08:00
C.S.M
1a3db8e025 feat(uhci): Add uhci (uart-dma) support on esp32c3, esp32c6, esp32s3, esp32p4 2025-04-27 15:28:23 +08:00
Li Shuai
d115a3daac feat(esp_driver_uart): support hp uarts wakeup modes 1 2 3 during light sleep 2025-04-21 14:03:34 +08:00
Song Ruo Jing
b38ac5ad82 feat(uart): add uart_detect_bitrate_bps API for data line bitrate measurement
Closes https://github.com/espressif/esp-idf/issues/14721
2025-03-28 15:03:19 +08:00
Song Ruo Jing
a67554d032 fix(uart): fixed coverity ininitialized scalar variable in uart_tcgetattr 2025-03-28 15:03:19 +08:00
Song Ruo Jing
1b09bb3037 fix(uart): LP UART does not have the pre-divider for its clock source
Closes https://github.com/espressif/esp-idf/issues/15427
2025-03-06 20:35:48 +08:00
Song Ruo Jing
53d8b70e8b fix(gpio): fix IO output enable control
oen_sel and oen_inv_sel fields from func_out_sel_cfg register
2025-02-20 19:49:28 +08:00
Song Ruo Jing
1d6bcb86ba fix(gpio): removed unnecessary step when routing input signal to a pin 2025-02-20 18:54:19 +08:00
Song Ruo Jing
3a8d065908 refactor(gpio): improve gpio_iomux_in/out API 2025-02-10 21:44:07 +08:00
igor.udot
f742a05b28 feat: supports lp uart wakeup 2025-02-05 14:54:48 +08:00
Alexey Lapshin
888b5f7e8d feat(newlib): add picolibc support 2024-12-02 21:35:56 +07:00
Song Ruo Jing
3abfd17004 feat(uart): support uart sleep retention on C5/C61 2024-11-28 14:59:05 +08:00
morris
13d0e83cd6 fix(driver): issues reported by coverity 2024-11-27 09:57:37 +08:00
Tomas Rohlinek
408ae4c560 Merge branch 'feature/switch_to_new_vfs_api' into 'master'
feat(storage): switch to new VFS API

Closes IDF-11473

See merge request espressif/esp-idf!32029
2024-11-22 16:51:46 +08:00
Tomáš Rohlínek
2821ad7920 feat(storage/vfs): move uart driver to new vfs API 2024-11-21 07:41:42 +01:00
Li Shuai
8eea8a8ef3 change(esp_hw_support): update some modules sleep retention init dependency bitmap 2024-11-18 15:40:47 +08:00
Song Ruo Jing
32040c7f98 fix(uart): fix race condition with the use of UART_SELECT_READ_NOTIF
UART_SELECT_READ_NOTIF needs to be sent after received data got processed
to avoid the potential race condition
2024-11-12 20:08:38 +08:00
Song Ruo Jing
e8f0299557 fix(uart): allow same pin for tx and rx in uart_set_pin
Also add IO reserve to uart driver

Closes https://github.com/espressif/esp-idf/issues/14787
2024-11-12 20:08:38 +08:00
Song Ruo Jing
92b4c62d06 fix(uart_vfs): read() now aligned to POSIX defined behavior
- For blocking mode, block until data available
- Return with the bytes available in the file at the time,
  it should not block until reaching the requested size

And read() should not realy return on the newline character
Closes https://github.com/espressif/esp-idf/issues/14155
2024-10-31 17:57:04 +08:00