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.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 protocol/usb_hid/parser.h (limited to 'protocol/usb_hid/parser.h') diff --git a/protocol/usb_hid/parser.h b/protocol/usb_hid/parser.h new file mode 100644 index 0000000000..dc14c82705 --- /dev/null +++ b/protocol/usb_hid/parser.h @@ -0,0 +1,7 @@ +#include "hid.h" + +class KBDReportParser : public HIDReportParser +{ +public: + virtual void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf); +}; -- cgit v1.2.3 From c5060ea81942b0e3f8577536ff78402a19abe3d3 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 25 Aug 2012 15:49:08 +0900 Subject: test build of 'Host shield' in minimal env. --- protocol/usb_hid/parser.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocol/usb_hid/parser.h') diff --git a/protocol/usb_hid/parser.h b/protocol/usb_hid/parser.h index dc14c82705..703eb1ed4c 100644 --- a/protocol/usb_hid/parser.h +++ b/protocol/usb_hid/parser.h @@ -1,3 +1,6 @@ +#ifndef PARSER_H +#define PARSER_H + #include "hid.h" class KBDReportParser : public HIDReportParser @@ -5,3 +8,5 @@ class KBDReportParser : public HIDReportParser public: virtual void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf); }; + +#endif -- cgit v1.2.3