diff options
| author | hathach <[email protected]> | 2022-01-26 12:59:53 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-01-26 12:59:53 +0700 |
| commit | 578a12328290592aa315f13339cbbd7d31a6bafd (patch) | |
| tree | 12afb5360f813fb02c707d0777053b94d56fcefd /src | |
| parent | eea19daac640a4895eb9ce7b745c5f873831404b (diff) | |
fix mynewt build sunxi
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/sunxi/dcd_sunxi_musb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portable/sunxi/dcd_sunxi_musb.c b/src/portable/sunxi/dcd_sunxi_musb.c index 89464c5b2..cf93c9bc4 100644 --- a/src/portable/sunxi/dcd_sunxi_musb.c +++ b/src/portable/sunxi/dcd_sunxi_musb.c @@ -28,6 +28,9 @@ #include <stdint.h> #include "tusb_option.h" + +#if TUSB_OPT_DEVICE_ENABLED && CFG_TUSB_MCU == OPT_MCU_F1C100S + #include "osal/osal.h" #include <f1c100s-irq.h> #include <device/dcd.h> @@ -38,7 +41,6 @@ typedef uint32_t u32; typedef uint16_t u16; typedef uint8_t u8; -#if TUSB_OPT_DEVICE_ENABLED && CFG_TUSB_MCU == OPT_MCU_F1C100S #define REQUEST_TYPE_INVALID (0xFFu) |
