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
This commit is contained in:
hathach
2013-01-19 00:57:58 +07:00
parent d8c8b9e38a
commit cfe7a3d23b
20 changed files with 55 additions and 48 deletions

View File

@@ -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

View File

@@ -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
}