aboutsummaryrefslogtreecommitdiff
path: root/libraries/HID/HID.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-09-28 15:44:32 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-09-28 17:05:35 +0200
commit691d9fb7f0e36d77cf8fbaadbe9f44255062bd43 (patch)
treecfabb787ac537da4dfad7f71133996dcd567c9ec /libraries/HID/HID.cpp
parentb53611a0d1b539b34f791febdd8a22bd066df3e7 (diff)
[HID] Changed 'u8' to 'uint8_t' in definitions
Diffstat (limited to 'libraries/HID/HID.cpp')
-rw-r--r--libraries/HID/HID.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp
index 8533f08..37270e7 100644
--- a/libraries/HID/HID.cpp
+++ b/libraries/HID/HID.cpp
@@ -23,13 +23,13 @@
HID_ HID;
-static u8 HID_ENDPOINT_INT;
+static uint8_t HID_ENDPOINT_INT;
//================================================================================
//================================================================================
// HID Interface
-static u8 HID_INTERFACE;
+static uint8_t HID_INTERFACE;
HIDDescriptor _hidInterface;
@@ -40,10 +40,10 @@ static uint8_t modules_count = 0;
//================================================================================
// Driver
-u8 _hid_protocol = 1;
-u8 _hid_idle = 1;
+uint8_t _hid_protocol = 1;
+uint8_t _hid_idle = 1;
-int HID_GetInterface(u8* interfaceNum)
+int HID_GetInterface(uint8_t* interfaceNum)
{
interfaceNum[0] += 1; // uses 1
_hidInterface =
@@ -91,13 +91,13 @@ void HID_::SendReport(u8 id, const void* data, int len)
USB_Send(HID_TX | TRANSFER_RELEASE,data,len);
}
-bool HID_Setup(USBSetup& setup, u8 i)
+bool HID_Setup(USBSetup& setup, uint8_t i)
{
if (HID_INTERFACE != i) {
return false;
} else {
- u8 r = setup.bRequest;
- u8 requestType = setup.bmRequestType;
+ uint8_t r = setup.bRequest;
+ uint8_t requestType = setup.bmRequestType;
if (REQUEST_DEVICETOHOST_CLASS_INTERFACE == requestType)
{
if (HID_GET_REPORT == r)