summaryrefslogtreecommitdiff
path: root/tinyusb/core
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-03-23 17:31:51 +0700
committerhathach <[email protected]>2013-03-23 17:31:51 +0700
commit44e09cc397df4e7fc47c37a4d967fe17a3d82e16 (patch)
treef8f1459fc355d174df4f1724d9dbb7f08bb137d7 /tinyusb/core
parent4adfc6a6d8a77ca9526ec04e62c83ea88ffdddd7 (diff)
enhance some tests
add test for usbh_isr error invoke fix bug if device unplugged before is set to new address - clean up & close control addr0 in usbh_device_unplugged_isr
Diffstat (limited to 'tinyusb/core')
-rw-r--r--tinyusb/core/tusb_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h
index aff92aebb..f0797bfdc 100644
--- a/tinyusb/core/tusb_types.h
+++ b/tinyusb/core/tusb_types.h
@@ -154,7 +154,7 @@ enum {
#define TUSB_DESC_CONFIG_POWER_MA(x) ((x)/2)
/// Device State
-enum tusb_device_state_{
+typedef enum {
TUSB_DEVICE_STATE_UNPLUG = 0 ,
TUSB_DEVICE_STATE_ADDRESSED ,
@@ -162,7 +162,7 @@ enum tusb_device_state_{
TUSB_DEVICE_STATE_REMOVING ,
TUSB_DEVICE_STATE_SAFE_REMOVE ,
-};
+}tusb_device_state_t;
typedef enum {
BUS_EVENT_XFER_COMPLETE,