mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
USB libraries: replace non-portable u8 with uint8_t
This commit is contained in:
parent
f9b9cd03d4
commit
bd9d215986
@ -27,7 +27,7 @@
|
|||||||
//================================================================================
|
//================================================================================
|
||||||
// Keyboard
|
// Keyboard
|
||||||
|
|
||||||
static const u8 _hidReportDescriptor[] PROGMEM = {
|
static const uint8_t _hidReportDescriptor[] PROGMEM = {
|
||||||
|
|
||||||
// Keyboard
|
// Keyboard
|
||||||
0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 47
|
0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 47
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#if defined(_USING_HID)
|
#if defined(_USING_HID)
|
||||||
|
|
||||||
static const u8 _hidReportDescriptor[] PROGMEM = {
|
static const uint8_t _hidReportDescriptor[] PROGMEM = {
|
||||||
|
|
||||||
// Mouse
|
// Mouse
|
||||||
0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 54
|
0x05, 0x01, // USAGE_PAGE (Generic Desktop) // 54
|
||||||
@ -88,7 +88,7 @@ void Mouse_::click(uint8_t b)
|
|||||||
|
|
||||||
void Mouse_::move(signed char x, signed char y, signed char wheel)
|
void Mouse_::move(signed char x, signed char y, signed char wheel)
|
||||||
{
|
{
|
||||||
u8 m[4];
|
uint8_t m[4];
|
||||||
m[0] = _buttons;
|
m[0] = _buttons;
|
||||||
m[1] = x;
|
m[1] = x;
|
||||||
m[2] = y;
|
m[2] = y;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user