summaryrefslogtreecommitdiff
path: root/cmd/sbc_harness/usb_keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sbc_harness/usb_keyboard.c')
-rw-r--r--cmd/sbc_harness/usb_keyboard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/sbc_harness/usb_keyboard.c b/cmd/sbc_harness/usb_keyboard.c
index 3cf0bb3..5482fdc 100644
--- a/cmd/sbc_harness/usb_keyboard.c
+++ b/cmd/sbc_harness/usb_keyboard.c
@@ -11,6 +11,8 @@
#include "usb_keyboard.h"
+#define UNUSED(name) /* name __attribute__ ((unused)) */
+
/**
* A USB-HID "Report Descriptor" (see USB-HID 1.11 ยง6.2.2 "Report
* Descriptor") describing a keyboard.
@@ -107,8 +109,7 @@ 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 instance, uint8_t report_id, hid_report_type_t report_type, uint8_t const* buffer, uint16_t bufsize)
+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))
{
// TODO not implemented
- (void) report_id;
}