]> git.donarmstrong.com Git - tmk_firmware.git/blob - protocol/usb_hid/USBAPI.h
Add USB HID(host) protocol.(not finished)
[tmk_firmware.git] / protocol / usb_hid / USBAPI.h
1 /*
2  * Override original arduino USBAPI.h.
3  */
4 #include <stdint.h>
5 #include "Stream.h"
6
7
8 class NullSerial : public Stream
9 {
10 public:
11         void begin(uint16_t baud_count);
12         void end(void);
13
14         virtual int available(void);
15         virtual void accept(void);
16         virtual int peek(void);
17         virtual int read(void);
18         virtual void flush(void);
19         virtual size_t write(uint8_t);
20         operator bool();
21 };
22 extern NullSerial Serial;