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/src/usb.c | |
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/src/usb.c')
-rw-r--r-- | app/src/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/usb.c b/app/src/usb.c index 79d03c7..d0253b5 100644 --- a/app/src/usb.c +++ b/app/src/usb.c @@ -31,7 +31,7 @@ static const struct hid_ops ops = { .int_in_ready = in_ready_cb, }; -int zmk_usb_hid_send_report(const u8_t *report, size_t len) { +int zmk_usb_hid_send_report(const uint8_t *report, size_t len) { switch (usb_status) { case USB_DC_SUSPEND: return usb_wakeup_request(); @@ -78,7 +78,7 @@ enum zmk_usb_conn_state zmk_usb_get_conn_state() { } } -void usb_status_cb(enum usb_dc_status_code status, const u8_t *params) { +void usb_status_cb(enum usb_dc_status_code status, const uint8_t *params) { usb_status = status; raise_usb_status_changed_event(); }; |