code clean up and added comments
This commit is contained in:
+6
-15
@@ -123,11 +123,11 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
|
||||
char const* string_desc_arr [] =
|
||||
{
|
||||
(const char[]) { 0x09, 0x04 }, // 0: is supported language is English (0x0409)
|
||||
"Raspberry Pi", // 1: Manufacturer
|
||||
"Pico Web Keyboard", // 2: Product
|
||||
"1234567890123456789", // 3: Serials, should use chip ID
|
||||
"Pico Web Keyboard CDC", // 4: CC Interface
|
||||
"TinyUSB Keyboard", // 5: HID Keyboard Interface
|
||||
"Raspberry Pi", // 1: Manufacturer
|
||||
"Pico Web Keyboard", // 2: Product
|
||||
"1234567890123456789", // 3: Serials, should use chip ID
|
||||
"Pico Web Keyboard CDC", // 4: CDC Interface
|
||||
"TinyUSB Keyboard", // 5: HID Keyboard Interface
|
||||
};
|
||||
|
||||
static uint16_t _desc_str[32];
|
||||
@@ -181,15 +181,6 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
|
||||
uint8_t const * tud_hid_descriptor_report_cb(uint8_t itf)
|
||||
{
|
||||
(void) itf;
|
||||
//switch(itf) {
|
||||
// case 0:
|
||||
return desc_hid_report;
|
||||
// case 1:
|
||||
// return desc_nkro_report;
|
||||
// case 2:
|
||||
// return desc_media_report;
|
||||
// default:
|
||||
// return 0;
|
||||
//}
|
||||
return desc_hid_report;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user