From 3d3d8c9adb679d3fdba3ad9255f0b992e143813f Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 21 Aug 2022 15:03:49 +0100 Subject: [PATCH] usbuart: Cleanup of redundant definitions --- src/platforms/common/usb_serial.c | 2 +- src/platforms/stm32/usbuart.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/platforms/common/usb_serial.c b/src/platforms/common/usb_serial.c index a2a1e53..424ce2f 100644 --- a/src/platforms/common/usb_serial.c +++ b/src/platforms/common/usb_serial.c @@ -222,7 +222,7 @@ size_t debug_uart_write(const char *buf, const size_t len) /* * Runs deferred processing for AUX serial RX, draining RX FIFO by sending - * characters to host PC via the debug serial interface. Allowed to write to FIFO OUT pointer. + * characters to host PC via the debug serial interface. */ static void debug_uart_send_aux_serial_data(void) { diff --git a/src/platforms/stm32/usbuart.c b/src/platforms/stm32/usbuart.c index b59e6bc..d559f5a 100644 --- a/src/platforms/stm32/usbuart.c +++ b/src/platforms/stm32/usbuart.c @@ -32,12 +32,6 @@ #include "usb.h" #include "aux_serial.h" -#ifdef DMA_STREAM0 -#define DMA_CGIF DMA_ISR_FLAGS -#else -#define DMA_CGIF DMA_IFCR_CGIF_BIT -#endif - #ifdef ENABLE_DEBUG /* Debug Fifo buffer with space for copy fn overrun */ char usb_dbg_buf[AUX_UART_BUFFER_SIZE];