usb_serial: Dealt with how to build with ENABLE_RTT=1
This commit is contained in:
parent
b02e305a70
commit
f7b9c91c6d
|
@ -61,7 +61,9 @@ static bool gdb_serial_dtr = true;
|
|||
static void usb_serial_set_state(usbd_device *dev, uint16_t iface, uint8_t ep);
|
||||
|
||||
static void debug_serial_send_callback(usbd_device *dev, uint8_t ep);
|
||||
#ifndef ENABLE_RTT
|
||||
static void debug_serial_receive_callback(usbd_device *dev, uint8_t ep);
|
||||
#endif
|
||||
|
||||
#if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) || defined(STM32F4)
|
||||
static bool debug_serial_send_complete = true;
|
||||
|
|
|
@ -32,4 +32,8 @@ bool gdb_serial_get_dtr(void);
|
|||
void debug_serial_run(void);
|
||||
uint32_t debug_serial_fifo_send(const char *fifo, uint32_t fifo_begin, uint32_t fifo_end);
|
||||
|
||||
#ifdef ENABLE_RTT
|
||||
void debug_serial_receive_callback(usbd_device *dev, uint8_t ep);
|
||||
#endif
|
||||
|
||||
#endif /*USB_SERIAL_H*/
|
||||
|
|
Loading…
Reference in New Issue