1
0
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:
Koen Zandberg 2019-09-06 10:32:43 +02:00 committed by GitHub
commit bcdec16b03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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