Dieter Graef / USBHost_DISCO-F746NG

Dependents:   DISCO-F746NG_USB_Host

Fork of KL46Z-USBHost by Norimasa Okamoto

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers USBHALHost.h Source File

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