From 0dc2930403325e88835ccb2f62cd921917199849 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Wed, 16 Mar 2022 13:53:36 -0300 Subject: [PATCH] xtensa/esp32s3: Remove code for not yet supported USB-Serial Driver Signed-off-by: Gustavo Henrique Nihei --- 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 c0c1b48fbe..fe0f7210af 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 c2fb972f01..acc2b26492 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 } /****************************************************************************