mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-30 04:20:26 +00:00
minor update
This commit is contained in:
parent
2fed722b00
commit
f469250fa3
@ -67,6 +67,8 @@ typedef struct
|
||||
CFG_TUH_MEM_SECTION
|
||||
tu_static hidh_interface_t _hidh_itf[CFG_TUH_HID];
|
||||
|
||||
tu_static uint8_t _hidh_default_protocol = HID_PROTOCOL_BOOT;
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// Helper
|
||||
//--------------------------------------------------------------------+
|
||||
@ -211,9 +213,6 @@ static void set_protocol_complete(tuh_xfer_t* xfer)
|
||||
}
|
||||
}
|
||||
|
||||
CFG_TUH_MEM_SECTION
|
||||
tu_static uint8_t _hidh_default_protocol = HID_PROTOCOL_BOOT;
|
||||
|
||||
void tuh_hid_set_default_protocol(uint8_t protocol) {
|
||||
_hidh_default_protocol = protocol;
|
||||
}
|
||||
|
@ -97,9 +97,8 @@ uint8_t tuh_hid_parse_report_descriptor(tuh_hid_report_info_t* reports_info_arr,
|
||||
// Application can use set_protocol() to switch back to Report protocol.
|
||||
uint8_t tuh_hid_get_protocol(uint8_t dev_addr, uint8_t idx);
|
||||
|
||||
// Device by default is initialized in Boot protocol for simplicity. Application
|
||||
// can use this to modify the default protocol before calling tuh_init(), or use
|
||||
// set_protocol() to change the protocol after initialization.
|
||||
// Device by default is enumerated in Boot protocol for simplicity. Application
|
||||
// can use this to modify the default protocol for next enumeration.
|
||||
void tuh_hid_set_default_protocol(uint8_t protocol);
|
||||
|
||||
// Set protocol to HID_PROTOCOL_BOOT (0) or HID_PROTOCOL_REPORT (1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user