ports: Adapt mimxrt, nrf and rp2 ports to work with latest TinyUSB.

rp2: change tud_task() to tud_task_ext().

mimxrt: use lib/tinyusb/src/portable/chipidea/ci_hs/dcd_ci_hs.c instead of
lib/tinyusb/src/portable/nxp/transdimension/dcd_transdimension.c.

nrf: add a definition for the changed tud_task().  tud_task() is changed
to tud_task_ext(), and the #define for backward compatibility is in
src/device/usbd.h.

The items I know which are fixed with this version:
- Fix for the SAMD USB lock-up.
- Support the MIMXRT11XX series of MCUs.
- Fix a wrong pin definition for MIMXRT1050_EVKB.

Tested with the MIMXRT boards, rp2 Pico, SAMD boards, nrf board.
This commit is contained in:
robert-hh
2022-07-18 15:38:04 +02:00
committed by Damien George
parent d1ef3815e6
commit 80339f1a33
3 changed files with 3 additions and 2 deletions

View File

@@ -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 ;