summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2021-12-30 22:48:11 +0700
committerGitHub <[email protected]>2021-12-30 22:48:11 +0700
commitc8641ee940f2c87e00ce2cfba2acf26180373513 (patch)
tree5f4002fc09dad039618669f5034e2e924548506d /src
parenta6789b5d5a3c9e41771e5eb8fdb08182c95fbe08 (diff)
parent7a596b9e559e9c1b3305906eb9eb6ff707643f75 (diff)
Merge pull request #1263 from kasjer/kasjer/mynewt-eptri
Fix Mynewt build for Microchip PIC32MZ devices.
Diffstat (limited to 'src')
-rw-r--r--src/portable/valentyusb/eptri/dcd_eptri.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/portable/valentyusb/eptri/dcd_eptri.c b/src/portable/valentyusb/eptri/dcd_eptri.c
index 837d0c0ce..51fb8b401 100644
--- a/src/portable/valentyusb/eptri/dcd_eptri.c
+++ b/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"