summaryrefslogtreecommitdiff
path: root/cmd/sbc_harness/usb_keyboard.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-13 17:36:53 -0500
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-13 17:36:53 -0500
commitc755f88f8c6862ef1497375df2d09454c99a0632 (patch)
tree31aea0e4d35aaf78324ffed113d6499e338d3feb /cmd/sbc_harness/usb_keyboard.c
parent4b918e6f721f34e4014fa3f0b5032037991e321f (diff)
Gather macros into libmisc/macro.h
Diffstat (limited to 'cmd/sbc_harness/usb_keyboard.c')
-rw-r--r--cmd/sbc_harness/usb_keyboard.c9
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
}