diff options
Diffstat (limited to 'protocol/usb_hid/USBAPI.h')
-rw-r--r-- | protocol/usb_hid/USBAPI.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/protocol/usb_hid/USBAPI.h b/protocol/usb_hid/USBAPI.h new file mode 100644 index 0000000000..e3390d49a8 --- /dev/null +++ b/protocol/usb_hid/USBAPI.h @@ -0,0 +1,22 @@ +/* + * Override original arduino USBAPI.h. + */ +#include <stdint.h> +#include "Stream.h" + + +class NullSerial : public Stream +{ +public: + void begin(uint16_t baud_count); + void end(void); + + virtual int available(void); + virtual void accept(void); + virtual int peek(void); + virtual int read(void); + virtual void flush(void); + virtual size_t write(uint8_t); + operator bool(); +}; +extern NullSerial Serial; |