diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-12-02 16:41:57 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-14 12:41:25 -0500 |
commit | bac1f17cf6ce225876dc7b6b2a809bcd98010391 (patch) | |
tree | 9783743b31fdadd66d1b3c9e5a3e14dc661ec313 /app/include/zmk/hid.h | |
parent | a4652fa25da83ae036613157fb566eb1ce1426fe (diff) |
refactor(app): replace Zephyr integer types with C99 integer types
u8_t → uint8_t
u16_t → uint16_t
u32_t → uint32_t
u64_t → uint64_t
s8_t → int8_t
s16_t → int16_t
s32_t → int32_t
s64_t → int64_t
Prerequisite for #223
See: https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.4.0
PR: #467
Diffstat (limited to 'app/include/zmk/hid.h')
-rw-r--r-- | app/include/zmk/hid.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/include/zmk/hid.h b/app/include/zmk/hid.h index 306bc26..1f755aa 100644 --- a/app/include/zmk/hid.h +++ b/app/include/zmk/hid.h @@ -19,7 +19,7 @@ #define ZMK_HID_CONSUMER_NKRO_SIZE 6 -static const u8_t zmk_hid_report_desc[] = { +static const uint8_t zmk_hid_report_desc[] = { /* USAGE_PAGE (Generic Desktop) */ HID_GI_USAGE_PAGE, HID_USAGE_GD, @@ -141,28 +141,28 @@ static const u8_t zmk_hid_report_desc[] = { // struct zmk_hid_boot_report // { -// u8_t modifiers; -// u8_t _unused; -// u8_t keys[6]; +// uint8_t modifiers; +// uint8_t _unused; +// uint8_t keys[6]; // } __packed; struct zmk_hid_keyboard_report_body { zmk_mod_flags modifiers; - u8_t _reserved; - u8_t keys[ZMK_HID_KEYBOARD_NKRO_SIZE]; + uint8_t _reserved; + uint8_t keys[ZMK_HID_KEYBOARD_NKRO_SIZE]; } __packed; struct zmk_hid_keyboard_report { - u8_t report_id; + uint8_t report_id; struct zmk_hid_keyboard_report_body body; } __packed; struct zmk_hid_consumer_report_body { - u16_t keys[ZMK_HID_CONSUMER_NKRO_SIZE]; + uint16_t keys[ZMK_HID_CONSUMER_NKRO_SIZE]; } __packed; struct zmk_hid_consumer_report { - u8_t report_id; + uint8_t report_id; struct zmk_hid_consumer_report_body body; } __packed; |