diff options
Diffstat (limited to 'drv_USBHUB.c')
-rw-r--r-- | drv_USBHUB.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drv_USBHUB.c b/drv_USBHUB.c index f82558a..980eaeb 100644 --- a/drv_USBHUB.c +++ b/drv_USBHUB.c @@ -35,6 +35,7 @@ */ #include "config.h" +#include <stdint.h> #ifdef HAVE_USB_H #include <usb.h> @@ -68,15 +69,15 @@ static unsigned int hubProduct = 0x0058; static usb_dev_handle *hub = NULL; typedef struct _usb_hub_descriptor { - u_int8_t bLength; - u_int8_t bDescriptorType; - u_int8_t nNbrPorts; - u_int8_t wHubCharacteristicLow; - u_int8_t wHubCharacteristicHigh; - u_int8_t bPwrOn2PwrGood; - u_int8_t bHubContrCurrent; - u_int8_t deviceRemovable; - u_int8_t PortPwrCtrlMask[8]; + uint8_t bLength; + uint8_t bDescriptorType; + uint8_t nNbrPorts; + uint8_t wHubCharacteristicLow; + uint8_t wHubCharacteristicHigh; + uint8_t bPwrOn2PwrGood; + uint8_t bHubContrCurrent; + uint8_t deviceRemovable; + uint8_t PortPwrCtrlMask[8]; } usb_hub_descriptor; /****************************************/ |