/*
* USB HID descriptor
*/
-typedef struct usb_hid_descriptor
+typedef struct usb_HidDesc
{
uint8_t bLength;
uint8_t bDescriptorType;
uint8_t bNumDescriptors;
uint8_t bDescriptorHidType;
uint16_t wDescriptorLength;
-} PACKED usb_hid_descriptor_t;
+} PACKED usb_HidDesc;
#endif /* USB_HID_H */
0xC0, // End Collection
};
-static const usb_hid_descriptor_t usb_hid_descriptor =
+static const usb_HidDesc usb_hid_descriptor =
{
.bLength = sizeof(usb_hid_descriptor),
.bDescriptorType = HID_DT_HID,
}
/* Send a keyboard event */
-void usb_keyboard_send_event(uint8_t mod, uint8_t code)
+void usb_keyboardSendEvent(uint8_t mod, uint8_t code)
{
report[0] = mod;
report[2] = code;
*
* TODO: support more than one device at the same time.
*/
-int usb_keyboard_init(UNUSED_ARG(int, unit))
+int usb_keyboardInit(UNUSED_ARG(int, unit))
{
#if CONFIG_KERN
MOD_CHECK(proc);
#ifndef USB_KEYBOARD_H
#define USB_KEYBOARD_H
-void usb_keyboard_send_event(uint8_t mod, uint8_t code);
-int usb_keyboard_init(int unit);
+void usb_keyboardSendEvent(uint8_t mod, uint8_t code);
+int usb_keyboardInit(int unit);
#endif /* USB_KEYBOARD_H */
0xC0 // End Collection
};
-static const usb_hid_descriptor_t usb_hid_descriptor =
+static const usb_HidDesc usb_hid_descriptor =
{
.bLength = sizeof(usb_hid_descriptor),
.bDescriptorType = HID_DT_HID,