summaryrefslogtreecommitdiff
path: root/shared/tinyusb/mp_usbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/tinyusb/mp_usbd.h')
-rw-r--r--shared/tinyusb/mp_usbd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/tinyusb/mp_usbd.h b/shared/tinyusb/mp_usbd.h
index 83a8f8617..89f8bf0ee 100644
--- a/shared/tinyusb/mp_usbd.h
+++ b/shared/tinyusb/mp_usbd.h
@@ -28,6 +28,13 @@
#define MICROPY_INCLUDED_SHARED_TINYUSB_MP_USBD_H
#include "py/obj.h"
+#include "tusb.h"
+
+static inline void mp_usbd_init(void) {
+ // Currently this is a thin wrapper around tusb_init(), however
+ // runtime USB support will require this to be extended.
+ tusb_init();
+}
// Call this to explicitly run the TinyUSB device task.
void mp_usbd_task(void);