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/class/cdc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tinyusb/class/cdc.h') diff --git a/tinyusb/class/cdc.h b/tinyusb/class/cdc.h index e4660d9b0..a33ec594b 100644 --- a/tinyusb/class/cdc.h +++ b/tinyusb/class/cdc.h @@ -101,7 +101,7 @@ uint16_t tusb_cdc_recv(uint8_t* buffer, uint16_t max); * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t tusb_cdc_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *const pControlIntfDesc, USB_INTERFACE_DESCRIPTOR const *const pDataIntfDesc, uint32_t* mem_base, uint32_t* mem_size); +tusb_error_t tusb_cdc_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *const pControlIntfDesc, USB_INTERFACE_DESCRIPTOR const *const pDataIntfDesc, uint32_t* mem_base, uint32_t* mem_size); /** \brief notify cdc driver that usb is configured * @@ -110,7 +110,7 @@ TUSB_Error_t tusb_cdc_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *c * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t tusb_cdc_configured(USBD_HANDLE_T hUsb); +tusb_error_t tusb_cdc_configured(USBD_HANDLE_T hUsb); #endif #endif -- cgit v1.3.1