mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #12178 from bergzand/pr/nrfusb/check_rev
nrfusb: Check chip revision before enabling
This commit is contained in:
commit
bcdec16b03
@ -269,6 +269,9 @@ void usbdev_init_lowlevel(void)
|
||||
static void _init(usbdev_t *dev)
|
||||
{
|
||||
DEBUG("nrfusb: initializing\n");
|
||||
/* Engineering revision version A is affected by errata 94, crash *
|
||||
* instead of pretending to have functional USB */
|
||||
assert(NRF_FICR->INFO.VARIANT != 0x41414141);
|
||||
nrfusb_t *usbdev = (nrfusb_t*)dev;
|
||||
poweron(usbdev);
|
||||
usbdev->used = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user