Skip to content

Commit

Permalink
Added function for disabling UART
Browse files Browse the repository at this point in the history
  • Loading branch information
pichenettes committed Jul 5, 2012
1 parent 8bf4e30 commit 4e640da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ struct Serial {
SerialPort::RxInterrupt::set();
}
}

static inline void Disable() {
SerialPort::Tx::clear();
SerialPort::Rx::clear();
SerialPort::RxInterrupt::clear();
}

static inline void Write(Value v) { Impl::IO::Write(v); }
static inline uint8_t writable() { return Impl::IO::writable(); }
static inline uint8_t NonBlockingWrite(Value v) {
Expand Down

0 comments on commit 4e640da

Please sign in to comment.