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.
Dependents: DISCO-F746NG_USB_Host
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_DISCO_F746NG) 00019 #include "USBHALHost_F746NG.h" 00020 #else 00021 #error "target error" 00022 #endif 00023 00024 #ifndef CTASSERT 00025 template <bool>struct CtAssert; 00026 template <>struct CtAssert<true> {}; 00027 #define CTASSERT(A) CtAssert<A>(); 00028 #endif // CTASSERT 00029 00030
Generated on Tue Jul 12 2022 18:18:18 by
1.7.2
