mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Made new includes conditional to F7.
This commit is contained in:
parent
b402d85a77
commit
11098fba85
1 changed files with 4 additions and 2 deletions
|
@ -22,8 +22,12 @@
|
||||||
|
|
||||||
#include "drivers/serial.h"
|
#include "drivers/serial.h"
|
||||||
|
|
||||||
|
#if defined(STM32F7)
|
||||||
#include "usbd_cdc.h"
|
#include "usbd_cdc.h"
|
||||||
|
|
||||||
|
extern USBD_HandleTypeDef USBD_Device;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
serialPort_t port;
|
serialPort_t port;
|
||||||
|
|
||||||
|
@ -34,8 +38,6 @@ typedef struct {
|
||||||
bool buffering;
|
bool buffering;
|
||||||
} vcpPort_t;
|
} vcpPort_t;
|
||||||
|
|
||||||
extern USBD_HandleTypeDef USBD_Device;
|
|
||||||
|
|
||||||
serialPort_t *usbVcpOpen(void);
|
serialPort_t *usbVcpOpen(void);
|
||||||
struct serialPort_s;
|
struct serialPort_s;
|
||||||
uint32_t usbVcpGetBaudRate(struct serialPort_s *instance);
|
uint32_t usbVcpGetBaudRate(struct serialPort_s *instance);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue