diff options
Diffstat (limited to 'shared/tinyusb/mp_usbd.c')
| -rw-r--r-- | shared/tinyusb/mp_usbd.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shared/tinyusb/mp_usbd.c b/shared/tinyusb/mp_usbd.c index 91d35a2b4..0edc48988 100644 --- a/shared/tinyusb/mp_usbd.c +++ b/shared/tinyusb/mp_usbd.c @@ -26,6 +26,10 @@ #include <stdlib.h> +#include "py/mpconfig.h" + +#if MICROPY_HW_ENABLE_USBDEV + #ifndef NO_QSTR #include "tusb.h" // TinyUSB is not avaiable when running the string preprocessor #include "device/usbd.h" @@ -35,3 +39,5 @@ void usbd_task(void) { tud_task_ext(0, false); } + +#endif |
