usb_usb: usb_hid: Change for USB_Host_Shield_2.0
This commit is contained in:
parent
23037e108f
commit
a0b5bf4b67
4 changed files with 10 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
|||
#include "debug.h"
|
||||
|
||||
|
||||
void KBDReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
|
||||
void KBDReportParser::Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
|
||||
{
|
||||
dprintf("input %d:", hid->GetAddress());
|
||||
for (uint8_t i = 0; i < len; i++) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef PARSER_H
|
||||
#define PARSER_H
|
||||
|
||||
#include "hid.h"
|
||||
#include "usbhid.h"
|
||||
#include "report.h"
|
||||
|
||||
class KBDReportParser : public HIDReportParser
|
||||
|
|
@ -9,7 +9,7 @@ class KBDReportParser : public HIDReportParser
|
|||
public:
|
||||
report_keyboard_t report;
|
||||
uint16_t time_stamp;
|
||||
virtual void Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf);
|
||||
virtual void Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue