diff options
| author | Damien George <damien@micropython.org> | 2025-11-12 16:12:03 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-11-24 12:45:01 +1100 |
| commit | 25dde8397fc26321bebf24a70cee0ce85de8e3cf (patch) | |
| tree | 793e970b3bdfd3c806a3433b7eb81efb31b59bba | |
| parent | c9af4e1a7e4820bd6702902b415a9a89942d2844 (diff) | |
nrf/drivers/usb: Provide macros for nrf errata.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/nrf/drivers/usb/tusb_config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ports/nrf/drivers/usb/tusb_config.h b/ports/nrf/drivers/usb/tusb_config.h index 935d9c229..231fe2b86 100644 --- a/ports/nrf/drivers/usb/tusb_config.h +++ b/ports/nrf/drivers/usb/tusb_config.h @@ -31,4 +31,11 @@ // Device configuration #define CFG_TUSB_MCU OPT_MCU_NRF5X +// TinyUSB uses newer style errata functions, but we currently don't have the +// latest nrfx component. So provide macros mapping the new name to the old. +#include "nrfx_usbd_errata.h" +#define nrf52_errata_166 nrfx_usbd_errata_166 +#define nrf52_errata_171 nrfx_usbd_errata_171 +#define nrf52_errata_187 nrfx_usbd_errata_187 + #endif // MICROPY_INCLUDED_NRF_TUSB_CONFIG_H |
