Skip to content

Commit 7d985f9

Browse files
committed
[HID] Changed 'u8' to 'uint8_t' in definitions
1 parent fa52c41 commit 7d985f9

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

hardware/arduino/avr/libraries/HID/HID.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323

2424
HID_ HID;
2525

26-
static u8 HID_ENDPOINT_INT;
26+
static uint8_t HID_ENDPOINT_INT;
2727

2828
//================================================================================
2929
//================================================================================
3030
// HID Interface
3131

32-
static u8 HID_INTERFACE;
32+
static uint8_t HID_INTERFACE;
3333

3434
HIDDescriptor _hidInterface;
3535

@@ -40,10 +40,10 @@ static uint8_t modules_count = 0;
4040
//================================================================================
4141
// Driver
4242

43-
u8 _hid_protocol = 1;
44-
u8 _hid_idle = 1;
43+
uint8_t _hid_protocol = 1;
44+
uint8_t _hid_idle = 1;
4545

46-
int HID_GetInterface(u8* interfaceNum)
46+
int HID_GetInterface(uint8_t* interfaceNum)
4747
{
4848
interfaceNum[0] += 1; // uses 1
4949
_hidInterface =
@@ -91,13 +91,13 @@ void HID_::SendReport(u8 id, const void* data, int len)
9191
USB_Send(HID_TX | TRANSFER_RELEASE,data,len);
9292
}
9393

94-
bool HID_Setup(USBSetup& setup, u8 i)
94+
bool HID_Setup(USBSetup& setup, uint8_t i)
9595
{
9696
if (HID_INTERFACE != i) {
9797
return false;
9898
} else {
99-
u8 r = setup.bRequest;
100-
u8 requestType = setup.bmRequestType;
99+
uint8_t r = setup.bRequest;
100+
uint8_t requestType = setup.bmRequestType;
101101
if (REQUEST_DEVICETOHOST_CLASS_INTERFACE == requestType)
102102
{
103103
if (HID_GET_REPORT == r)

hardware/arduino/avr/libraries/HID/HID.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,22 @@ class HID_
6464

6565
typedef struct
6666
{
67-
u8 len; // 9
68-
u8 dtype; // 0x21
69-
u8 addr;
70-
u8 versionL; // 0x101
71-
u8 versionH; // 0x101
72-
u8 country;
73-
u8 desctype; // 0x22 report
74-
u8 descLenL;
75-
u8 descLenH;
67+
uint8_t len; // 9
68+
uint8_t dtype; // 0x21
69+
uint8_t addr;
70+
uint8_t versionL; // 0x101
71+
uint8_t versionH; // 0x101
72+
uint8_t country;
73+
uint8_t desctype; // 0x22 report
74+
uint8_t descLenL;
75+
uint8_t descLenH;
7676
} HIDDescDescriptor;
7777

7878
typedef struct
7979
{
80-
InterfaceDescriptor hid;
81-
HIDDescDescriptor desc;
82-
EndpointDescriptor in;
80+
InterfaceDescriptor hid;
81+
HIDDescDescriptor desc;
82+
EndpointDescriptor in;
8383
} HIDDescriptor;
8484

8585
#define HID_TX HID_ENDPOINT_INT

0 commit comments

Comments
 (0)