summaryrefslogtreecommitdiff
path: root/protocol/usb_hid/USBAPI.h
blob: e3390d49a87b8937c21ce3a2f807a8b0c3b29849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;