feat(uart): support uart on ESP32H4

This commit is contained in:
gaoxu
2025-08-06 11:33:04 +08:00
committed by Gao Xu
parent 890229d30b
commit db32e42122
24 changed files with 205 additions and 88 deletions

View File

@@ -23,8 +23,14 @@
#define CONSOLE_UART_CHANNEL (1 - DEFAULT_UART_CHANNEL)
#define DEFAULT_UART_RX_PIN (3)
#define DEFAULT_UART_TX_PIN (2)
#if CONFIG_IDF_TARGET_ESP32H4
#define CONSOLE_UART_RX_PIN (15)
#define CONSOLE_UART_TX_PIN (16)
#else
#define CONSOLE_UART_RX_PIN (4)
#define CONSOLE_UART_TX_PIN (5)
#endif
#define UARTS_BAUD_RATE (115200)
#define TASK_STACK_SIZE (2048)