diff options
| author | hathach <[email protected]> | 2013-01-19 00:57:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-19 00:57:58 +0700 |
| commit | cfe7a3d23b4639c3578b166fc865450bc439d82c (patch) | |
| tree | 7a831618538324b04bfd9e0f918a78a0aea92b34 /tinyusb/host | |
| parent | d8c8b9e38ad94ab84c24f22c2ecb79ce4d78b7ba (diff) | |
change error type to lower case for more consistency
change Error Enum to TUSB prefix for more consistency
start to add check for OS configure
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/hcd.c | 4 | ||||
| -rw-r--r-- | tinyusb/host/hcd.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tinyusb/host/hcd.c b/tinyusb/host/hcd.c index 28fe7008f..0fb6e68df 100644 --- a/tinyusb/host/hcd.c +++ b/tinyusb/host/hcd.c @@ -39,10 +39,10 @@ #ifdef TUSB_CFG_HOST -TUSB_Error_t hcd_init(uint8_t coreid) +tusb_error_t hcd_init(uint8_t coreid) { - return tERROR_NONE; + return TUSB_ERROR_NONE; } #endif diff --git a/tinyusb/host/hcd.h b/tinyusb/host/hcd.h index 2bb667057..1e5b338ae 100644 --- a/tinyusb/host/hcd.h +++ b/tinyusb/host/hcd.h @@ -66,15 +66,15 @@ * \note */ -TUSB_Error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT; +tusb_error_t hcd_init(uint8_t hostid) ATTR_WARN_UNUSED_RESULT; -//TUSB_Error_t hcd_pipe_open( +//tusb_error_t hcd_pipe_open( // uint8_t hostid, uint8_t device_address, // // )ATTR_WARN_UNUSED_RESULT; -TUSB_Error_t hcd_pipe_close()ATTR_WARN_UNUSED_RESULT; -TUSB_Error_t hcd_pipe_transfer()ATTR_WARN_UNUSED_RESULT; -TUSB_Error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT; +tusb_error_t hcd_pipe_close()ATTR_WARN_UNUSED_RESULT; +tusb_error_t hcd_pipe_transfer()ATTR_WARN_UNUSED_RESULT; +tusb_error_t hcd_pipe_cancel()ATTR_WARN_UNUSED_RESULT; #ifdef __cplusplus } |
