Merge pull request #7179 from c1728p9/fix_unsupported_k64f

Fix USB on Kinetis devices
pull/6962/head
Cruz Monrreal 2018-06-11 16:46:13 -05:00 committed by GitHub
commit 12211178c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -100,6 +100,11 @@ USBHAL::USBHAL(void) {
#if (defined(FSL_FEATURE_SOC_MPU_COUNT) && (FSL_FEATURE_SOC_MPU_COUNT > 0U))
MPU->CESR=0;
#endif
#if (defined(FSL_FEATURE_SOC_SYSMPU_COUNT) && (FSL_FEATURE_SOC_SYSMPU_COUNT > 0U))
SYSMPU->CESR=0;
#endif
// fill in callback array
epCallback[0] = &USBHAL::EP1_OUT_callback;
epCallback[1] = &USBHAL::EP1_IN_callback;