diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-13 17:36:53 -0500 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-13 17:36:53 -0500 |
commit | c755f88f8c6862ef1497375df2d09454c99a0632 (patch) | |
tree | 31aea0e4d35aaf78324ffed113d6499e338d3feb /cmd/sbc_harness/usb_keyboard.c | |
parent | 4b918e6f721f34e4014fa3f0b5032037991e321f (diff) |
Gather macros into libmisc/macro.h
Diffstat (limited to 'cmd/sbc_harness/usb_keyboard.c')
-rw-r--r-- | cmd/sbc_harness/usb_keyboard.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd/sbc_harness/usb_keyboard.c b/cmd/sbc_harness/usb_keyboard.c index f4816c1..b781d4d 100644 --- a/cmd/sbc_harness/usb_keyboard.c +++ b/cmd/sbc_harness/usb_keyboard.c @@ -8,11 +8,10 @@ #include <libusb/tusb_helpers.h> /* for TUD_ENDPOINT_IN */ #include <libusb/usb_common.h> +#include <libmisc/macro.h> #include "usb_keyboard.h" -#define UNUSED(name) - /** * A USB-HID "Report Descriptor" (see USB-HID 1.11 ยง6.2.2 "Report * Descriptor") describing a keyboard. @@ -108,7 +107,11 @@ uint16_t tud_hid_get_report_cb(uint8_t instance, uint8_t report_id, hid_report_t // Invoked when received SET_REPORT control request or // received data on OUT endpoint ( Report ID = 0, Type = 0 ) -void tud_hid_set_report_cb(uint8_t UNUSED(instance), uint8_t UNUSED(report_id), hid_report_type_t UNUSED(report_type), uint8_t const *UNUSED(buffer), uint16_t UNUSED(bufsize)) +void tud_hid_set_report_cb(uint8_t LM_UNUSED(instance), + uint8_t LM_UNUSED(report_id), + hid_report_type_t LM_UNUSED(report_type), + uint8_t const *LM_UNUSED(buffer), + uint16_t LM_UNUSED(bufsize)) { // TODO not implemented } |