Added TARGET_DISCO_F469NI in USBHOST\USBHost\TARGET_STM\USBHALHost_STM_TARGET.h
Dependents: DISCO-F469NI_USB_Disk STM32F4xx_USB_Memory
Fork of USBHOST by
Diff: USBHost/USBEndpoint.h
- Revision:
- 5:fc157e6bd5a5
- Parent:
- 1:ab240722d7ef
- Child:
- 8:3e7a33f81048
diff -r 1c76b46ad779 -r fc157e6bd5a5 USBHost/USBEndpoint.h --- a/USBHost/USBEndpoint.h Fri Feb 17 12:40:57 2017 +0100 +++ b/USBHost/USBEndpoint.h Wed Apr 26 18:11:37 2017 +0200 @@ -33,6 +33,9 @@ * Constructor */ USBEndpoint() { +#ifdef USBHOST_OTHER + speed = false; +#endif state = USB_TYPE_FREE; nextEp = NULL; }; @@ -111,7 +114,11 @@ // setters +#ifdef USBHOST_OTHER + void setState(USB_TYPE st); +#else inline void setState(USB_TYPE st) { state = st; } +#endif void setState(uint8_t st); void setDeviceAddress(uint8_t addr); inline void setLengthTransferred(int len) { transferred = len; };