Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa7a37f

Browse files
authoredApr 3, 2025··
fix(uart): using uart number as argument in setClockSource()
1 parent 05337af commit aa7a37f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cores/esp32/esp32-hal-uart.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool uartSetMode(uart_t *uart, uart_mode_t mode);
108108
// UART_SCLK_RTC :: ESP32-C2, ESP32-C3, ESP32-C5, ESP32-C6, ESP32-C61, ESP32-H2, ESP32-S3 and ESP32-P4
109109
// UART_SCLK_REF_TICK :: ESP32 and ESP32-S2
110110
// Note: ESP32-C6, C61, ESP32-P4 and ESP32-C5 have LP UART that will use only LP_UART_SCLK_LP_FAST (RTC_FAST) or LP_UART_SCLK_XTAL_D2 (XTAL/2) as Clock Source
111-
bool uartSetClockSource(uart_t *uart, uart_sclk_t clkSrc);
111+
bool uartSetClockSource(uint8_t uartNum, uart_sclk_t clkSrc);
112112

113113
void uartStartDetectBaudrate(uart_t *uart);
114114
unsigned long uartDetectBaudrate(uart_t *uart);

0 commit comments

Comments
 (0)
Please sign in to comment.