summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/mimxrt/Makefile2
-rw-r--r--ports/nrf/mpconfigport.h1
-rw-r--r--ports/rp2/mpconfigport.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/ports/mimxrt/Makefile b/ports/mimxrt/Makefile
index 150727577..de560bdb6 100644
--- a/ports/mimxrt/Makefile
+++ b/ports/mimxrt/Makefile
@@ -91,7 +91,7 @@ SRC_TINYUSB_C += \
lib/tinyusb/src/common/tusb_fifo.c \
lib/tinyusb/src/device/usbd.c \
lib/tinyusb/src/device/usbd_control.c \
- lib/tinyusb/src/portable/nxp/transdimension/dcd_transdimension.c \
+ lib/tinyusb/src/portable/chipidea/ci_hs/dcd_ci_hs.c \
lib/tinyusb/src/tusb.c
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h
index b3a95614a..8a2478d27 100644
--- a/ports/nrf/mpconfigport.h
+++ b/ports/nrf/mpconfigport.h
@@ -311,6 +311,7 @@ typedef long mp_off_t;
#define MP_STATE_PORT MP_STATE_VM
#if MICROPY_HW_USB_CDC
+#include "device/usbd.h"
#define MICROPY_HW_USBDEV_TASK_HOOK extern void tud_task(void); tud_task();
#else
#define MICROPY_HW_USBDEV_TASK_HOOK ;
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h
index 3f332b6a8..14748a763 100644
--- a/ports/rp2/mpconfigport.h
+++ b/ports/rp2/mpconfigport.h
@@ -220,7 +220,7 @@ extern void mp_thread_end_atomic_section(uint32_t);
#define MICROPY_PY_LWIP_EXIT lwip_lock_release();
#if MICROPY_HW_ENABLE_USBDEV
-#define MICROPY_HW_USBDEV_TASK_HOOK extern void tud_task(void); tud_task();
+#define MICROPY_HW_USBDEV_TASK_HOOK extern void tud_task_ext(uint32_t, bool); tud_task_ext(0, false);
#define MICROPY_VM_HOOK_COUNT (10)
#define MICROPY_VM_HOOK_INIT static uint vm_hook_divisor = MICROPY_VM_HOOK_COUNT;
#define MICROPY_VM_HOOK_POLL if (get_core_num() == 0 && --vm_hook_divisor == 0) { \