Add USB HID(host) protocol.(not finished)
This commit is contained in:
parent
7350b7c6aa
commit
895cd4dfa2
7 changed files with 300 additions and 0 deletions
15
protocol/usb_hid/parser.cpp
Normal file
15
protocol/usb_hid/parser.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "parser.h"
|
||||
|
||||
void KBDReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
|
||||
{
|
||||
PORTB ^= (1<<0);
|
||||
/*
|
||||
Serial.print("KBDReport: ");
|
||||
for (uint8_t i = 0; i < len; i++) {
|
||||
PrintHex<uint8_t>(buf[i]);
|
||||
Serial.print(" ");
|
||||
}
|
||||
Serial.print("\r\n");
|
||||
*/
|
||||
//PORTC &= ~(1<<7);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue