Skip to content

Commit bd7591b

Browse files
committed
Merge branch 'doc/guide_uart_esp32c3' into 'master'
doc: update programming guide to include ESP32-C3 updates Closes IDF-2350 See merge request espressif/esp-idf!12926
2 parents fda565a + 1b994c8 commit bd7591b

File tree

1 file changed

+8
-2
lines changed
  • docs/en/api-reference/peripherals

1 file changed

+8
-2
lines changed

docs/en/api-reference/peripherals/uart.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ A Universal Asynchronous Receiver/Transmitter (UART) is a hardware feature that
1212

1313
The ESP32 chip has three UART controllers (UART0, UART1, and UART2) that feature an identical set of registers for ease of programming and flexibility.
1414

15-
.. only:: esp32s2
15+
.. only:: esp32s2 or esp32c3
1616

17-
The ESP32-S2 chip has two UART controllers (UART0 and UART1) that feature an identical set of registers for ease of programming and flexibility.
17+
The {IDF_TARGET_NAME} chip has two UART controllers (UART0 and UART1) that feature an identical set of registers for ease of programming and flexibility.
1818

1919
Each UART controller is independently configurable with parameters such as baud rate, data bit length, bit ordering, number of stop bits, parity bit etc. All the controllers are compatible with UART-enabled devices from various manufacturers and can also support Infrared Data Association protocols (IrDA).
2020

@@ -115,6 +115,12 @@ The same macro should be specified for pins that will not be used.
115115
// Set UART pins(TX: IO17 (UART1 default), RX: IO18 (UART1 default), RTS: IO19, CTS: IO20)
116116
ESP_ERROR_CHECK(uart_set_pin(UART_NUM_1, UART_PIN_NO_CHANGE, UART_PIN_NO_CHANGE, 19, 20));
117117
118+
.. only:: esp32c3
119+
120+
.. code-block:: c
121+
122+
// Set UART pins(TX: IO4, RX: IO5, RTS: IO19, CTS: IO20)
123+
ESP_ERROR_CHECK(uart_set_pin(UART_NUM_1, 4, 5, 19, 20));
118124
119125
.. _uart-api-driver-installation:
120126

0 commit comments

Comments
 (0)