diff options
| author | Ha Thach <[email protected]> | 2022-01-26 17:02:52 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-26 17:02:52 +0700 |
| commit | ffb257ac17f162bc5a4c26596d7a1e954db98aa5 (patch) | |
| tree | 12afb5360f813fb02c707d0777053b94d56fcefd /src | |
| parent | eea19daac640a4895eb9ce7b745c5f873831404b (diff) | |
| parent | 578a12328290592aa315f13339cbbd7d31a6bafd (diff) | |
Merge pull request #1301 from hathach/fix-mynewt-sunxi
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) |
