From d1ecef4fc37718ef76944cbdfe54924c42ff22e7 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 13 Jun 2018 14:25:33 +0700 Subject: correct errata check for nrf52840 first production --- tinyusb/portable/nordic/nrf5x/hal_nrf5x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tinyusb') diff --git a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c index d9c8eed1b..e75c86715 100644 --- a/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c +++ b/tinyusb/portable/nordic/nrf5x/hal_nrf5x.c @@ -198,7 +198,7 @@ void tusb_hal_nrf_power_event (uint32_t event) // ERRATA 171, 187, 166 // Somehow Errata 187 check failed for pca10056 1.0.0 (2018.19) - //if ( nrf_drv_usbd_errata_187() ) + if ( nrf_drv_usbd_errata_187() ) { CRITICAL_REGION_ENTER(); if ( *((volatile uint32_t *) (0x4006EC00)) == 0x00000000 ) @@ -262,7 +262,7 @@ void tusb_hal_nrf_power_event (uint32_t event) } // Somehow Errata 187 check failed for pca10056 1.0.0 (2018.19) - //if ( nrf_drv_usbd_errata_187() ) + if ( nrf_drv_usbd_errata_187() ) { CRITICAL_REGION_ENTER(); if ( *((volatile uint32_t *) (0x4006EC00)) == 0x00000000 ) -- cgit v1.3.1