diff options
| author | Ha Thach <[email protected]> | 2021-06-28 17:39:09 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-28 17:39:09 +0700 |
| commit | 6e939de9d673979721b83b0b3ab724ebd652770c (patch) | |
| tree | e086e54a0a71b3391ff44d198830c1e69d5bc762 /src/class | |
| parent | e3cca973ecf03741c0069b2164ebd08a4ccca98a (diff) | |
| parent | 832d22d7addf9b1e4b88556c544f60bd9fa32dd6 (diff) | |
Merge pull request #891 from hathach/host-rp2040-double-buffer
RP2040 double buffer
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/hid/hid_host.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c index 761258f1b..16d908a5d 100644 --- a/src/class/hid/hid_host.c +++ b/src/class/hid/hid_host.c @@ -37,16 +37,6 @@ // MACRO CONSTANT TYPEDEF //--------------------------------------------------------------------+ -/* - "KEYBOARD" : in_len=8 , out_len=1, usage_page=0x01, usage=0x06 # Generic Desktop, Keyboard - "MOUSE" : in_len=4 , out_len=0, usage_page=0x01, usage=0x02 # Generic Desktop, Mouse - "CONSUMER" : in_len=2 , out_len=0, usage_page=0x0C, usage=0x01 # Consumer, Consumer Control - "SYS_CONTROL" : in_len=1 , out_len=0, usage_page=0x01, usage=0x80 # Generic Desktop, Sys Control - "GAMEPAD" : in_len=6 , out_len=0, usage_page=0x01, usage=0x05 # Generic Desktop, Game Pad - "DIGITIZER" : in_len=5 , out_len=0, usage_page=0x0D, usage=0x02 # Digitizers, Pen - "XAC_COMPATIBLE_GAMEPAD" : in_len=3 , out_len=0, usage_page=0x01, usage=0x05 # Generic Desktop, Game Pad - "RAW" : in_len=64, out_len=0, usage_page=0xFFAF, usage=0xAF # Vendor 0xFFAF "Adafruit", 0xAF - */ typedef struct { uint8_t itf_num; @@ -452,9 +442,9 @@ uint8_t tuh_hid_parse_report_descriptor(tuh_hid_report_info_t* report_info_arr, uint8_t const data8 = desc_report[0]; - TU_LOG2("tag = %d, type = %d, size = %d, data = ", tag, type, size); - for(uint32_t i=0; i<size; i++) TU_LOG2("%02X ", desc_report[i]); - TU_LOG2("\r\n"); + TU_LOG(3, "tag = %d, type = %d, size = %d, data = ", tag, type, size); + for(uint32_t i=0; i<size; i++) TU_LOG(3, "%02X ", desc_report[i]); + TU_LOG(3, "\r\n"); switch(type) { |
