summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-01-17 16:28:07 +0700
committerGitHub <[email protected]>2022-01-17 16:28:07 +0700
commit11aa4b9bba4e13b1d7b1d36afbd5cda19c90878d (patch)
tree95937d6e5c14b711d7b9d14a6aa5fc65e678cd31 /src
parent58b8bdc2e469c73406b470cb1d99d5b94c1fdf39 (diff)
parentec01428820ae5ea35bb559adf4894c4e816b7651 (diff)
Merge pull request #1284 from kasjer/kasjer/ft9xx-mynewt
ft9xx: Fix Mynewt build
Diffstat (limited to 'src')
-rw-r--r--src/portable/bridgetek/ft9xx/dcd_ft9xx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/portable/bridgetek/ft9xx/dcd_ft9xx.c b/src/portable/bridgetek/ft9xx/dcd_ft9xx.c
index 793d40f81..d46723caa 100644
--- a/src/portable/bridgetek/ft9xx/dcd_ft9xx.c
+++ b/src/portable/bridgetek/ft9xx/dcd_ft9xx.c
@@ -29,16 +29,17 @@
* in https://brtchip.com/BRTSourceCodeLicenseAgreement
*/
+#include "tusb_option.h"
+
+#if TUSB_OPT_DEVICE_ENABLED && \
+ (CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X)
+
#include <stdint.h>
#include <ft900.h>
#include <registers/ft900_registers.h>
#include "board.h"
#include "bsp/board.h"
-#include "tusb_option.h"
-
-#if TUSB_OPT_DEVICE_ENABLED && \
- (CFG_TUSB_MCU == OPT_MCU_FT90X || CFG_TUSB_MCU == OPT_MCU_FT93X)
#define USBD_USE_STREAMS