summaryrefslogtreecommitdiff
path: root/src/portable/template/dcd_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/portable/template/dcd_template.c')
-rw-r--r--src/portable/template/dcd_template.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/portable/template/dcd_template.c b/src/portable/template/dcd_template.c
index 590dd9fcf..12d610bd6 100644
--- a/src/portable/template/dcd_template.c
+++ b/src/portable/template/dcd_template.c
@@ -26,7 +26,7 @@
#include "tusb_option.h"
-#if CFG_TUSB_MCU == OPT_MCU_NONE
+#if CFG_TUD_ENABLED && CFG_TUSB_MCU == OPT_MCU_NONE
#include "device/dcd.h"
@@ -141,4 +141,6 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
(void) ep_addr;
}
+
+
#endif