瀏覽代碼

Merge pull request #1263 from kasjer/kasjer/mynewt-eptri

Fix Mynewt build for Microchip PIC32MZ devices.
Ha Thach 4 年之前
父節點
當前提交
c8641ee940
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/portable/valentyusb/eptri/dcd_eptri.c

+ 4 - 4
src/portable/valentyusb/eptri/dcd_eptri.c

@@ -24,6 +24,10 @@
  * This file is part of the TinyUSB stack.
  */
 
+#include "tusb_option.h"
+
+#if TUSB_OPT_DEVICE_ENABLED && (CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI)
+
 #ifndef DEBUG
 #define DEBUG 0
 #endif
@@ -32,10 +36,6 @@
 #define LOG_USB 0
 #endif
 
-#include "tusb_option.h"
-
-#if TUSB_OPT_DEVICE_ENABLED && (CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI)
-
 #include "device/dcd.h"
 #include "dcd_eptri.h"
 #include "csr.h"