summaryrefslogtreecommitdiff
path: root/tinyusb/class/hid.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-11-29 16:32:49 +0700
committerhathach <[email protected]>2012-11-29 16:32:49 +0700
commitb8b92e120220ee19f623809673323344e257bd4b (patch)
tree6f3248e5da2d684d41be5f27e84e8beb6f023382 /tinyusb/class/hid.h
parent8f57cb6ccb65c0519d78661cb36be12e6079f965 (diff)
hid mouse working
Diffstat (limited to 'tinyusb/class/hid.h')
-rw-r--r--tinyusb/class/hid.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/tinyusb/class/hid.h b/tinyusb/class/hid.h
index aabf5df8a..74ce21278 100644
--- a/tinyusb/class/hid.h
+++ b/tinyusb/class/hid.h
@@ -38,19 +38,10 @@
#ifndef _TUSB_HID_H_
#define _TUSB_HID_H_
-#ifdef __cplusplus
- extern "C" {
-#endif
-
// TODO refractor
#include "common/common.h"
#include "device/dcd.h"
-TUSB_Error_t usb_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) ATTR_NON_NULL;
-TUSB_Error_t usb_hid_configured(USBD_HANDLE_T hUsb);
-
-TUSB_Error_t usb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], uint8_t numkey) ATTR_NON_NULL;
-TUSB_Error_t usb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y);
/** \brief Standard HID Boot Protocol Mouse Report.
*
@@ -136,6 +127,16 @@ enum USB_HID_LOCAL_CODE
};
#ifdef __cplusplus
+ extern "C" {
+#endif
+
+TUSB_Error_t usb_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) ATTR_NON_NULL;
+TUSB_Error_t usb_hid_configured(USBD_HANDLE_T hUsb);
+
+TUSB_Error_t usb_hid_keyboard_sendKeys(uint8_t modifier, uint8_t keycodes[], uint8_t numkey) ATTR_NON_NULL;
+TUSB_Error_t usb_hid_mouse_send(uint8_t buttons, int8_t x, int8_t y);
+
+#ifdef __cplusplus
}
#endif