Skip to content

Commit f4c26c8

Browse files
authored
S3
1 parent fc0359b commit f4c26c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ void log_print_buf(const uint8_t *b, size_t len){
474474
*/
475475
unsigned long uartBaudrateDetect(uart_t *uart, bool flg)
476476
{
477+
#ifndef CONFIG_IDF_TARGET_ESP32S3
477478
if(uart == NULL) {
478479
return 0;
479480
}
@@ -491,6 +492,9 @@ unsigned long uartBaudrateDetect(uart_t *uart, bool flg)
491492
UART_MUTEX_UNLOCK();
492493

493494
return ret;
495+
#else
496+
return 0;
497+
#endif
494498
}
495499

496500

@@ -535,6 +539,7 @@ void uartStartDetectBaudrate(uart_t *uart) {
535539
//hw->rx_filt.glitch_filt_en = 1;
536540
//hw->conf0.autobaud_en = 0;
537541
//hw->conf0.autobaud_en = 1;
542+
#elif CONFIG_IDF_TARGET_ESP32S3
538543

539544
#else
540545
hw->auto_baud.glitch_filt = 0x08;
@@ -572,6 +577,7 @@ uartDetectBaudrate(uart_t *uart)
572577

573578
#ifdef CONFIG_IDF_TARGET_ESP32C3
574579
//hw->conf0.autobaud_en = 0;
580+
#elif CONFIG_IDF_TARGET_ESP32S3
575581
#else
576582
hw->auto_baud.en = 0;
577583
#endif

0 commit comments

Comments
 (0)