diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-07-15 22:56:50 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-07-18 23:25:03 -0400 |
commit | a852f8d6a62d5e94afd7092c64c242ab4d5a1c60 (patch) | |
tree | 78dca1559a5101e93836ca17076e1a7e13457457 /wirish | |
parent | f23dcac7b9235887b75fb4a04f715693ad99b34f (diff) | |
download | librambutan-a852f8d6a62d5e94afd7092c64c242ab4d5a1c60.tar.gz librambutan-a852f8d6a62d5e94afd7092c64c242ab4d5a1c60.zip |
added SerialN.end()
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/comm/HardwareSerial.cpp | 4 | ||||
-rw-r--r-- | wirish/comm/HardwareSerial.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/wirish/comm/HardwareSerial.cpp b/wirish/comm/HardwareSerial.cpp index 3e855ea..93cf909 100644 --- a/wirish/comm/HardwareSerial.cpp +++ b/wirish/comm/HardwareSerial.cpp @@ -97,6 +97,10 @@ void HardwareSerial::begin(uint32 baud) { usart_init(usartNum, baud); } +void HardwareSerial::end(void) { + usart_disable(usartNum); +} + HardwareSerial Serial1(1); HardwareSerial Serial2(2); HardwareSerial Serial3(3); diff --git a/wirish/comm/HardwareSerial.h b/wirish/comm/HardwareSerial.h index a488244..5ed81cd 100644 --- a/wirish/comm/HardwareSerial.h +++ b/wirish/comm/HardwareSerial.h @@ -39,6 +39,7 @@ class HardwareSerial : public Print { public: HardwareSerial(uint8); void begin(uint32); + void end(void); uint32 available(void); uint8 read(void); void flush(void); |