This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 0dc2930403325e88835ccb2f62cd921917199849
Author: Gustavo Henrique Nihei <[email protected]>
AuthorDate: Wed Mar 16 13:53:36 2022 -0300

    xtensa/esp32s3: Remove code for not yet supported USB-Serial Driver
    
    Signed-off-by: Gustavo Henrique Nihei <[email protected]>
---
 arch/xtensa/src/esp32s3/esp32s3_lowputc.c |  3 ---
 arch/xtensa/src/esp32s3/esp32s3_serial.c  | 13 -------------
 2 files changed, 16 deletions(-)

diff --git a/arch/xtensa/src/esp32s3/esp32s3_lowputc.c 
b/arch/xtensa/src/esp32s3/esp32s3_lowputc.c
index c0c1b48..fe0f721 100644
--- a/arch/xtensa/src/esp32s3/esp32s3_lowputc.c
+++ b/arch/xtensa/src/esp32s3/esp32s3_lowputc.c
@@ -812,9 +812,6 @@ void up_lowputc(char ch)
   /* Then send the character */
 
   esp32s3_lowputc_send_byte(priv, ch);
-
-#elif defined (CONFIG_ESP32S3_USBSERIAL)
-  esp32s3_usbserial_write(ch);
 #endif /* CONSOLE_UART */
 }
 
diff --git a/arch/xtensa/src/esp32s3/esp32s3_serial.c 
b/arch/xtensa/src/esp32s3/esp32s3_serial.c
index c2fb972..acc2b26 100644
--- a/arch/xtensa/src/esp32s3/esp32s3_serial.c
+++ b/arch/xtensa/src/esp32s3/esp32s3_serial.c
@@ -51,10 +51,6 @@
 #include "esp32s3_irq.h"
 #include "esp32s3_lowputc.h"
 
-#ifdef CONFIG_ESP32S3_USBSERIAL
-#  include "esp32s3_usbserial.h"
-#endif
-
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
@@ -96,11 +92,6 @@
 #  endif
 #endif /* CONSOLE_UART */
 
-#ifdef CONFIG_ESP32S3_USBSERIAL
-#  define CONSOLE_DEV           g_uart_usbserial
-#  define TTYACM0_DEV           g_uart_usbserial
-#endif
-
 /* Pick ttys1 */
 
 #if defined(CONFIG_ESP32S3_UART0) && !defined(UART0_ASSIGNED)
@@ -1093,10 +1084,6 @@ void xtensa_serialinit(void)
 #ifdef TTYS1_DEV
   uart_register("/dev/ttyS1", &TTYS1_DEV);
 #endif
-
-#ifdef CONFIG_ESP32S3_USBSERIAL
-  uart_register("/dev/ttyACM0", &TTYACM0_DEV);
-#endif
 }
 
 /****************************************************************************

Reply via email to