add consumer control to hid_composite examples

both no OS and freeRTOS
This commit is contained in:
hathach
2021-02-01 14:47:39 +07:00
parent 0799a91073
commit 3d95835f22
7 changed files with 65 additions and 10 deletions

View File

@@ -74,7 +74,8 @@ uint8_t const * tud_descriptor_device_cb(void)
uint8_t const desc_hid_report[] =
{
TUD_HID_REPORT_DESC_KEYBOARD( HID_REPORT_ID(REPORT_ID_KEYBOARD) ),
TUD_HID_REPORT_DESC_MOUSE ( HID_REPORT_ID(REPORT_ID_MOUSE) )
TUD_HID_REPORT_DESC_MOUSE ( HID_REPORT_ID(REPORT_ID_MOUSE) ),
TUD_HID_REPORT_DESC_CONSUMER( HID_REPORT_ID(REPORT_ID_CONSUMER_CONTROL ))
};
// Invoked when received GET HID REPORT DESCRIPTOR