Skip to content

Commit c753780

Browse files
author
Cruz Monrreal
authored
Merge pull request ARMmbed#7178 from c1728p9/fix_k64f_usb
Fix USB on Kinetis devices
2 parents a94b118 + 2322a08 commit c753780

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usb/device/targets/TARGET_Freescale/USBPhy_Kinetis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ void USBPhyHw::init(USBPhyEvents *events)
125125
MPU->CESR=0;
126126
#endif
127127

128+
#if (defined(FSL_FEATURE_SOC_SYSMPU_COUNT) && (FSL_FEATURE_SOC_SYSMPU_COUNT > 0U))
129+
SYSMPU->CESR=0;
130+
#endif
131+
128132
#if defined(TARGET_KL43Z) || defined(TARGET_K22F) || defined(TARGET_K64F)
129133
// enable USBFS clock
130134
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcIrc48M, 48000000U);

0 commit comments

Comments
 (0)