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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user