diff options
| author | hathach <[email protected]> | 2013-03-23 12:13:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-23 12:13:02 +0700 |
| commit | e14864759d6fd1d9a0a24cb3b5104fee975a29d1 (patch) | |
| tree | 79417cfcfc8566d24187c8f95ceb10960c3e1f2c /tinyusb/core | |
| parent | d7ba86c85eb8cb5b15de53e503e75d04bf0cc836 (diff) | |
refractor
- rename TUSB_DEVICE_STATE_READY to TUSB_DEVICE_STATE_CONFIGURED
- move device_state to core/tusb_types.h
- remove usbh_device_hcd_data_cleaned_up_cb, hcd now set the state directly
Diffstat (limited to 'tinyusb/core')
| -rw-r--r-- | tinyusb/core/tusb_types.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tinyusb/core/tusb_types.h b/tinyusb/core/tusb_types.h index 1d69b9326..d9750c279 100644 --- a/tinyusb/core/tusb_types.h +++ b/tinyusb/core/tusb_types.h @@ -153,6 +153,17 @@ enum { #define TUSB_DESC_CONFIG_POWER_MA(x) ((x)/2) +/// Device State +enum tusb_device_state_{ + TUSB_DEVICE_STATE_UNPLUG = 0 , + TUSB_DEVICE_STATE_ADDRESSED , + + TUSB_DEVICE_STATE_CONFIGURED , + + TUSB_DEVICE_STATE_REMOVING , + TUSB_DEVICE_STATE_SAFE_REMOVE , +}; + #ifdef __cplusplus } #endif |
