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)
|
static void _init(usbdev_t *dev)
|
||||||
{
|
{
|
||||||
DEBUG("nrfusb: initializing\n");
|
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;
|
nrfusb_t *usbdev = (nrfusb_t*)dev;
|
||||||
poweron(usbdev);
|
poweron(usbdev);
|
||||||
usbdev->used = 0;
|
usbdev->used = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user