Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768
Dependents: F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld
Fork of KL46Z-USBHost by
USBHALHost.h
00001 #include "mbed.h" 00002 00003 struct SETUP_PACKET { 00004 uint8_t bmRequestType; 00005 uint8_t bRequest; 00006 uint16_t wValue; 00007 uint16_t wIndex; 00008 uint16_t wLength; 00009 SETUP_PACKET(uint8_t RequestType, uint8_t Request, uint16_t Value, uint16_t Index, uint16_t Length) { 00010 bmRequestType = RequestType; 00011 bRequest = Request; 00012 wValue = Value; 00013 wIndex = Index; 00014 wLength = Length; 00015 } 00016 }; 00017 00018 #if defined(TARGET_NUCLEO_F401RE)||defined(TARGET_NUCLEO_F411RE)||defined(TARGET_NUCLEO_F446RE) 00019 #include "USBHALHost_F401RE.h" 00020 #elif defined(TARGET_KL46Z)||defined(TARGET_KL25Z)||defined(TARGET_K64F) 00021 #include "USBHALHost_KL46Z.h" 00022 #elif defined(TARGET_LPC4088)||defined(TARGET_LPC1768) 00023 #include "USBHALHost_LPC4088.h" 00024 #else 00025 #error "target error" 00026 #endif 00027 00028 #ifndef CTASSERT 00029 template <bool>struct CtAssert; 00030 template <>struct CtAssert<true> {}; 00031 #define CTASSERT(A) CtAssert<A>(); 00032 #endif // CTASSERT 00033 00034
Generated on Wed Jul 13 2022 05:41:27 by 1.7.2