Song Ruo Jing
be2bb37f0e
fix(uart): Avoid division by zero error when calling uart_get_baudrate
...
If uart_driver_install is not called before uart_get_baudrate,
the UART port may not be ready. In such cases, the register values
cannot be read out, leading to a division by zero error in uart_ll_get_baudrate.
This commit adds a check to ensure the UART port is enabled before
attempting to read its registers.
Closes https://github.com/espressif/esp-idf/issues/17513
2026-02-25 11:30:25 +08:00
Song Ruo Jing
f773c59e89
fix(uart): tx write bytes fails to use non-default tx fifo empty threshold
...
Users may see tx write bytes fails to feed data into tx fifo in time
even if the tx fifo empty threshold has been set to a large value.
2026-02-25 11:30:25 +08:00
Song Ruo Jing
9dd31295a0
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-12-08 22:13:05 +08:00
C.S.M
b2816e228b
docs(uhci): implementation for uart-dma (uhci) docs
2025-10-13 11:02:28 +08:00
C.S.M
8659c44975
feat(uhci): Add uhci (uart-dma) support on current chips
2025-08-28 18:23:23 +08:00
morris
46ac830333
Merge branch 'bugfix/lp_uart_baudrate_limitation_v5.3' into 'release/v5.3'
...
fix(uart): LP UART does not have the pre-divider for its clock source (v5.3)
See merge request espressif/esp-idf!37595
2025-05-23 17:10:39 +08:00
Song Ruo Jing
8baffe22cb
fix(uart): LP UART does not have the pre-divider for its clock source
...
Closes https://github.com/espressif/esp-idf/issues/15427
2025-05-22 11:51:19 +08:00
Song Ruo Jing
3de0b669e7
docs(uart): improve set/get baud rate API docs
...
Closes https://github.com/espressif/esp-idf/issues/15449
2025-05-20 11:53:42 +08:00
Song Ruo Jing
a1ba653952
fix(uart): allow same pin for tx and rx in uart_set_pin
...
Closes https://github.com/espressif/esp-idf/issues/14787
2025-01-10 15:14:27 +08:00
Song Ruo Jing
753fe53fab
fix(uart): fix uart_config_t structure size difference in C and C++
2024-07-31 15:15:59 +08:00
Song Ruo Jing
8b8bb72ad4
feat(uart): support uart module sleep retention on c6/h2/p4
2024-07-31 15:15:11 +08:00
morris
c0289ee6eb
fix(drivers): fix typos found by codespell
...
codespell components/esp_driver*
2024-03-28 10:01:27 +08:00
sonika.rathi
e162903615
fix(esp_vfs_console): add esp_vfs_console component
...
move vfs_console related init steps from vfs component to new esp_vfs_console component
2024-03-11 10:18:10 +01: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
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
6ad80f0332
refactor(uart): make uart driver as component, and fix astyle
2023-12-15 17:03:51 +08:00