mirror of https://github.com/ARMmbed/mbed-os.git
Fix USB on Kinetis devices
Set correct SYSMPU register for proper USB operation. This bug was
introduced when the SYSMPU register names and defines were updated
in the commit:
"K64F: Updated the SYSMPU SDK driver"
93f8cfed05
pull/7179/head
parent
73cfc7baea
commit
96d3667f20
|
|
@ -100,6 +100,11 @@ USBHAL::USBHAL(void) {
|
||||||
#if (defined(FSL_FEATURE_SOC_MPU_COUNT) && (FSL_FEATURE_SOC_MPU_COUNT > 0U))
|
#if (defined(FSL_FEATURE_SOC_MPU_COUNT) && (FSL_FEATURE_SOC_MPU_COUNT > 0U))
|
||||||
MPU->CESR=0;
|
MPU->CESR=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (defined(FSL_FEATURE_SOC_SYSMPU_COUNT) && (FSL_FEATURE_SOC_SYSMPU_COUNT > 0U))
|
||||||
|
SYSMPU->CESR=0;
|
||||||
|
#endif
|
||||||
|
|
||||||
// fill in callback array
|
// fill in callback array
|
||||||
epCallback[0] = &USBHAL::EP1_OUT_callback;
|
epCallback[0] = &USBHAL::EP1_OUT_callback;
|
||||||
epCallback[1] = &USBHAL::EP1_IN_callback;
|
epCallback[1] = &USBHAL::EP1_IN_callback;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue