فهرست منبع

Merge pull request #1284 from kasjer/kasjer/ft9xx-mynewt

ft9xx: Fix Mynewt build
Ha Thach 4 سال پیش
والد
کامیت
11aa4b9bba
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      src/portable/bridgetek/ft9xx/dcd_ft9xx.c

+ 5 - 4
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