diff options
author | tmk <hasu@tmk-kbd.com> | 2015-04-10 01:25:48 +0900 |
---|---|---|
committer | tmk <hasu@tmk-kbd.com> | 2015-04-10 01:25:48 +0900 |
commit | 6746e37088ce8ba03529c1226bd216705edb2b1f (patch) | |
tree | a256db88ec3e9e8b1b70839fcd9459d972ce26e0 /protocol/usb_hid/override_Serial.cpp | |
parent | b4e2d325f355a4d083106476393775e75e11f284 (diff) | |
download | qmk_firmware-6746e37088ce8ba03529c1226bd216705edb2b1f.tar.gz qmk_firmware-6746e37088ce8ba03529c1226bd216705edb2b1f.zip |
Remove core library and build files
Diffstat (limited to 'protocol/usb_hid/override_Serial.cpp')
-rw-r--r-- | protocol/usb_hid/override_Serial.cpp | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/protocol/usb_hid/override_Serial.cpp b/protocol/usb_hid/override_Serial.cpp deleted file mode 100644 index e1755a5dc..000000000 --- a/protocol/usb_hid/override_Serial.cpp +++ /dev/null | |||
@@ -1,51 +0,0 @@ | |||
1 | /* | ||
2 | * Null implementation of Serial to dump debug print into blackhole | ||
3 | */ | ||
4 | #include "Arduino.h" | ||
5 | #include "sendchar.h" | ||
6 | |||
7 | #include "USBAPI.h" | ||
8 | |||
9 | |||
10 | void Serial_::begin(uint16_t baud_count) | ||
11 | { | ||
12 | } | ||
13 | |||
14 | void Serial_::end(void) | ||
15 | { | ||
16 | } | ||
17 | |||
18 | void Serial_::accept(void) | ||
19 | { | ||
20 | } | ||
21 | |||
22 | int Serial_::available(void) | ||
23 | { | ||
24 | return 0; | ||
25 | } | ||
26 | |||
27 | int Serial_::peek(void) | ||
28 | { | ||
29 | return -1; | ||
30 | } | ||
31 | |||
32 | int Serial_::read(void) | ||
33 | { | ||
34 | return -1; | ||
35 | } | ||
36 | |||
37 | void Serial_::flush(void) | ||
38 | { | ||
39 | } | ||
40 | |||
41 | size_t Serial_::write(uint8_t c) | ||
42 | { | ||
43 | sendchar(c); | ||
44 | return 1; | ||
45 | } | ||
46 | |||
47 | Serial_::operator bool() { | ||
48 | return true; | ||
49 | } | ||
50 | |||
51 | Serial_ Serial; | ||