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.
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 00035
Generated on Thu Jul 14 2022 09:06:30 by
