summaryrefslogtreecommitdiff
path: root/src/usbh_driver_hub_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/usbh_driver_hub_private.h')
-rw-r--r--src/usbh_driver_hub_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usbh_driver_hub_private.h b/src/usbh_driver_hub_private.h
index 4b98880..df38243 100644
--- a/src/usbh_driver_hub_private.h
+++ b/src/usbh_driver_hub_private.h
@@ -61,6 +61,8 @@
#define CURRENT_PORT_NONE -1
+#define EMPTY_PACKET_READ_STATE 255
+
struct _hub_device {
usbh_device_t *device[USBH_HUB_MAX_DEVICES + 1];
uint8_t buffer[USBH_HUB_BUFFER_SIZE];
@@ -68,6 +70,8 @@ struct _hub_device {
uint8_t endpoint_in_address;
uint8_t endpoint_in_toggle;
uint8_t state;
+ uint8_t state_after_empty_read;
+
uint8_t desc_len;
uint16_t ports_num;
int8_t index;