diff --git a/src/main/drivers/serial_usb_vcp.h b/src/main/drivers/serial_usb_vcp.h index 49eb635447..29b7096d27 100644 --- a/src/main/drivers/serial_usb_vcp.h +++ b/src/main/drivers/serial_usb_vcp.h @@ -22,8 +22,12 @@ #include "drivers/serial.h" +#if defined(STM32F7) #include "usbd_cdc.h" +extern USBD_HandleTypeDef USBD_Device; +#endif + typedef struct { serialPort_t port; @@ -34,8 +38,6 @@ typedef struct { bool buffering; } vcpPort_t; -extern USBD_HandleTypeDef USBD_Device; - serialPort_t *usbVcpOpen(void); struct serialPort_s; uint32_t usbVcpGetBaudRate(struct serialPort_s *instance);