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){
474
474
*/
475
475
unsigned long uartBaudrateDetect (uart_t * uart , bool flg )
476
476
{
477
+ #ifndef CONFIG_IDF_TARGET_ESP32S3
477
478
if (uart == NULL ) {
478
479
return 0 ;
479
480
}
@@ -491,6 +492,9 @@ unsigned long uartBaudrateDetect(uart_t *uart, bool flg)
491
492
UART_MUTEX_UNLOCK ();
492
493
493
494
return ret ;
495
+ #else
496
+ return 0 ;
497
+ #endif
494
498
}
495
499
496
500
@@ -535,6 +539,7 @@ void uartStartDetectBaudrate(uart_t *uart) {
535
539
//hw->rx_filt.glitch_filt_en = 1;
536
540
//hw->conf0.autobaud_en = 0;
537
541
//hw->conf0.autobaud_en = 1;
542
+ #elif CONFIG_IDF_TARGET_ESP32S3
538
543
539
544
#else
540
545
hw -> auto_baud .glitch_filt = 0x08 ;
@@ -572,6 +577,7 @@ uartDetectBaudrate(uart_t *uart)
572
577
573
578
#ifdef CONFIG_IDF_TARGET_ESP32C3
574
579
//hw->conf0.autobaud_en = 0;
580
+ #elif CONFIG_IDF_TARGET_ESP32S3
575
581
#else
576
582
hw -> auto_baud .en = 0 ;
577
583
#endif
You can’t perform that action at this time.
0 commit comments