Skip to content

Commit 25dde83

Browse files
committed
nrf/drivers/usb: Provide macros for nrf errata.
Signed-off-by: Damien George <damien@micropython.org>
1 parent c9af4e1 commit 25dde83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ports/nrf/drivers/usb/tusb_config.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@
3131
// Device configuration
3232
#define CFG_TUSB_MCU OPT_MCU_NRF5X
3333

34+
// TinyUSB uses newer style errata functions, but we currently don't have the
35+
// latest nrfx component. So provide macros mapping the new name to the old.
36+
#include "nrfx_usbd_errata.h"
37+
#define nrf52_errata_166 nrfx_usbd_errata_166
38+
#define nrf52_errata_171 nrfx_usbd_errata_171
39+
#define nrf52_errata_187 nrfx_usbd_errata_187
40+
3441
#endif // MICROPY_INCLUDED_NRF_TUSB_CONFIG_H

0 commit comments

Comments
 (0)