USB: coding style fixes
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 24 Sep 2010 10:36:33 +0000 (10:36 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 24 Sep 2010 10:36:33 +0000 (10:36 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4287 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/usb_hid.h
bertos/drv/usb_keyboard.c
bertos/drv/usb_keyboard.h
bertos/drv/usb_mouse.c

index 0253809d3fa85163c8a676625deb8a433cc4b5c1..7cf09d52b552a4445524c600fb7fd3fee04bd843 100644 (file)
@@ -65,7 +65,7 @@
 /*
  * USB HID descriptor
  */
-typedef struct usb_hid_descriptor
+typedef struct usb_HidDesc
 {
        uint8_t bLength;
        uint8_t bDescriptorType;
@@ -74,6 +74,6 @@ typedef struct usb_hid_descriptor
        uint8_t bNumDescriptors;
        uint8_t bDescriptorHidType;
        uint16_t wDescriptorLength;
-} PACKED usb_hid_descriptor_t;
+} PACKED usb_HidDesc;
 
 #endif /* USB_HID_H */
index 69ad6417d3099eadaab86a397039b32cdbd36ef5..ff39b94f5be448ebaef3b721489ab0101143aea6 100644 (file)
@@ -151,7 +151,7 @@ static const uint8_t hid_report_descriptor[] =
        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,
@@ -279,7 +279,7 @@ static int usb_keyboard_hw_init(void)
 }
 
 /* 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;
@@ -291,7 +291,7 @@ void usb_keyboard_send_event(uint8_t mod, uint8_t 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);
index d3a331c6c937778a97928a5fc32002c5b0a1be76..25dad12815a532a2818c6717029883d3124f9ac2 100644 (file)
@@ -42,7 +42,7 @@
 #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 */
index 748ffc3ba6a3cdd02c15884f01a5079ca28cc9fe..7a59c769e4f6c1043d15390416da4c36aacc21b5 100644 (file)
@@ -140,7 +140,7 @@ static const uint8_t hid_report_descriptor[] =
        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,