diff options
| author | hathach <[email protected]> | 2013-04-25 17:48:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-25 17:48:55 +0700 |
| commit | c0104b996e9ea0c5c25861ccf24e0255431a8f9c (patch) | |
| tree | e6bc02cedad783d2c4d771ac4a9633be23b982d5 /tinyusb/host/hcd.h | |
| parent | 3763e22c9a91e9bb21f9fa3dc5dafc9eea6254b7 (diff) | |
implement hcd_port_speed_get
move port reset & speed detection from isr context to usbh enumeration task
- decrease time in isr significantly from 50 ms to 580us
fix bug with osal_task_delay for freeRTOS buil
Diffstat (limited to 'tinyusb/host/hcd.h')
| -rw-r--r-- | tinyusb/host/hcd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h index 999fbf734..fed45bf8a 100644 --- a/tinyusb/host/hcd.h +++ b/tinyusb/host/hcd.h @@ -105,8 +105,9 @@ tusb_error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT; // PORT API //--------------------------------------------------------------------+ /// return the current connect status of roothub port -bool hcd_port_connect_status(uint8_t core_id) ATTR_CONST ATTR_WARN_UNUSED_RESULT; -void hcd_port_reset(uint8_t core_id); +bool hcd_port_connect_status(uint8_t hostid) ATTR_PURE ATTR_WARN_UNUSED_RESULT; // TODO make inline if possible +void hcd_port_reset(uint8_t hostid); +tusb_speed_t hcd_port_speed_get(uint8_t hostid) ATTR_PURE ATTR_WARN_UNUSED_RESULT; // TODO make inline if possible #ifdef __cplusplus } |
