USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.
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