Made new includes conditional to F7.

This commit is contained in:
mikeller 2018-06-16 15:33:13 +12:00
parent b402d85a77
commit 11098fba85
1 changed files with 4 additions and 2 deletions

View File

@ -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);