From 895cd4dfa29f0f3c623544f4868ac63e619c69d9 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 14 Aug 2012 00:17:31 +0900 Subject: Add USB HID(host) protocol.(not finished) --- protocol/usb_hid/parser.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 protocol/usb_hid/parser.cpp (limited to 'protocol/usb_hid/parser.cpp') diff --git a/protocol/usb_hid/parser.cpp b/protocol/usb_hid/parser.cpp new file mode 100644 index 0000000000..cf64322302 --- /dev/null +++ b/protocol/usb_hid/parser.cpp @@ -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(buf[i]); + Serial.print(" "); + } + Serial.print("\r\n"); +*/ + //PORTC &= ~(1<<7); +} -- cgit v1.2.1