Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
Diff: USBHost/USBHALHost_KL46Z.cpp
- Revision:
- 24:f4d432f36ec2
- Parent:
- 21:b4d53cc6d6ac
--- a/USBHost/USBHALHost_KL46Z.cpp Mon Jun 22 20:41:00 2015 +0000
+++ b/USBHost/USBHALHost_KL46Z.cpp Wed Jun 24 16:41:24 2015 +0000
@@ -1,5 +1,5 @@
// Simple USBHost for FRDM-KL46Z
-#if defined(TARGET_KL46Z)||defined(TARGET_KL25Z)||defined(TARGET_K64F)||defined(TARGET_GAMBIT)
+#if defined(TARGET_KL46Z)||defined(TARGET_KL25Z)||defined(TARGET_K64F)||defined(TARGET_MTS_GAMBIT)
#include "USBHALHost.h"
#include <algorithm>
@@ -63,10 +63,10 @@
void USBHALHost::init() {
// Disable IRQ
NVIC_DisableIRQ(USB0_IRQn);
-#if defined(TARGET_GAMBIT)||defined(TARGET_K64F)
+#if defined(TARGET_MTS_GAMBIT)
initPins();
#endif
-#if defined(TARGET_K64F)||defined(TARGET_GAMBIT)
+#if defined(TARGET_K64F)||defined(TARGET_MTS_GAMBIT)
MPU->CESR=0;
#endif
