diff options
| author | kkitayam <[email protected]> | 2021-11-27 10:25:39 +0900 |
|---|---|---|
| committer | kkitayam <[email protected]> | 2021-11-27 10:26:32 +0900 |
| commit | 7413b6b02074d806ee2290b53c46ceaa3e76ef42 (patch) | |
| tree | bfffbd8ced0b9c6102fd9d0ed21080152bedfcd7 /src | |
| parent | 44b131e8cf34b0f9e411b1a1f85d5f9af4577ada (diff) | |
Add a compile condition for dcd
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/mentor/musb/dcd_musb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/mentor/musb/dcd_musb.c b/src/portable/mentor/musb/dcd_musb.c index 4b4c2f9b2..0464eea19 100644 --- a/src/portable/mentor/musb/dcd_musb.c +++ b/src/portable/mentor/musb/dcd_musb.c @@ -26,7 +26,8 @@ #include "tusb_option.h" -#if TU_CHECK_MCU(OPT_MCU_MSP432E4, OPT_MCU_TM4C123, OPT_MCU_TM4C129) +#if TUSB_OPT_DEVICE_ENABLED && \ + TU_CHECK_MCU(OPT_MCU_MSP432E4, OPT_MCU_TM4C123, OPT_MCU_TM4C129) #if __GNUC__ > 8 && defined(__ARM_FEATURE_UNALIGNED) /* GCC warns that an address may be unaligned, even though |
