File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -474,6 +474,7 @@ void log_print_buf(const uint8_t *b, size_t len){
474474 */
475475unsigned 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
You can’t perform that action at this time.
0 commit comments