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/class/hid_device.h | |
| 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/class/hid_device.h')
| -rw-r--r-- | tinyusb/class/hid_device.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tinyusb/class/hid_device.h b/tinyusb/class/hid_device.h index 31c3a489f..41bcb8fe7 100644 --- a/tinyusb/class/hid_device.h +++ b/tinyusb/class/hid_device.h @@ -65,7 +65,7 @@ * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t tusb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *const pIntfDesc, uint8_t const * const pHIDReportDesc, uint32_t ReportDescLength, uint32_t* mem_base, uint32_t* mem_size); +tusb_error_t tusb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *const pIntfDesc, uint8_t const * const pHIDReportDesc, uint32_t ReportDescLength, uint32_t* mem_base, uint32_t* mem_size); /** \brief Notify HID class that usb is configured * @@ -74,7 +74,7 @@ TUSB_Error_t tusb_hid_init(USBD_HANDLE_T hUsb, USB_INTERFACE_DESCRIPTOR const *c * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t tusb_hid_configured(USBD_HANDLE_T hUsb); +tusb_error_t tusb_hid_configured(USBD_HANDLE_T hUsb); /** \brief Used by Application to send Keycode to Host * @@ -83,7 +83,7 @@ TUSB_Error_t tusb_hid_configured(USBD_HANDLE_T hUsb); * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t tusb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], uint8_t numkey); +tusb_error_t tusb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], uint8_t numkey); /** \brief * @@ -92,7 +92,7 @@ TUSB_Error_t tusb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], ui * \return Error Code of the \ref TUSB_ERROR enum * \note */ -TUSB_Error_t tusb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y); +tusb_error_t tusb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y); #endif /* ROM DRIVRER */ |
