From 79898808afec2d6345c5e8e5067d37b43c00e67c Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sat, 20 Aug 2022 21:00:16 +0100 Subject: [PATCH] usbuart: Moved aux_serial_receive_complete into usb_serial.c --- src/platforms/common/usb_serial.c | 2 ++ src/platforms/common/usbuart.h | 2 -- src/platforms/stm32/usbuart.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/platforms/common/usb_serial.c b/src/platforms/common/usb_serial.c index 1572a44..7be7f4c 100644 --- a/src/platforms/common/usb_serial.c +++ b/src/platforms/common/usb_serial.c @@ -64,6 +64,8 @@ static void usb_serial_set_state(usbd_device *dev, uint16_t iface, uint8_t ep); static void debug_uart_send_callback(usbd_device *dev, uint8_t ep); static void debug_uart_receive_callback(usbd_device *dev, uint8_t ep); +static bool aux_serial_receive_complete = true; + #ifdef ENABLE_DEBUG /* * This call initialises "SemiHosting", only we then do our own SVC interrupt things to diff --git a/src/platforms/common/usbuart.h b/src/platforms/common/usbuart.h index 513764a..21737f0 100644 --- a/src/platforms/common/usbuart.h +++ b/src/platforms/common/usbuart.h @@ -45,8 +45,6 @@ void debug_uart_run(void); extern char buf_rx[RX_FIFO_SIZE + sizeof(uint64_t)]; /* RX Fifo out pointer, writes assumed to be atomic */ extern uint8_t buf_rx_out; -/* RX usb transfer complete */ -extern bool aux_serial_receive_complete; #ifdef ENABLE_DEBUG /* Debug Fifo buffer with space for copy fn overrun */ diff --git a/src/platforms/stm32/usbuart.c b/src/platforms/stm32/usbuart.c index cb54ec0..de39d46 100644 --- a/src/platforms/stm32/usbuart.c +++ b/src/platforms/stm32/usbuart.c @@ -42,8 +42,6 @@ char buf_rx[RX_FIFO_SIZE + sizeof(uint64_t)]; /* RX Fifo out pointer, writes assumed to be atomic */ uint8_t buf_rx_out; -/* RX usb transfer complete */ -bool aux_serial_receive_complete = true; #ifdef ENABLE_DEBUG /* Debug Fifo buffer with space for copy fn overrun */