From cfe7a3d23b4639c3578b166fc865450bc439d82c Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 19 Jan 2013 00:57:58 +0700 Subject: 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 --- tinyusb/host/hcd.c | 4 ++-- tinyusb/host/hcd.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tinyusb/host') 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 } -- cgit v1.3.1