diff options
| author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-08-16 04:15:17 -0400 |
|---|---|---|
| committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-08-16 06:13:48 -0400 |
| commit | fcb4afcd5029702e79185e66c10561d727e04877 (patch) | |
| tree | 15b44e464ab865020146b60d527a3e46f08a8cd5 /wirish | |
| parent | 96c474d94baf8a0d56fa8c5b5de23dfd58bb8186 (diff) | |
HardwareSerial: Add pin accessors.
Diffstat (limited to 'wirish')
| -rw-r--r-- | wirish/comm/HardwareSerial.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wirish/comm/HardwareSerial.h b/wirish/comm/HardwareSerial.h index a347051..c76ea17 100644 --- a/wirish/comm/HardwareSerial.h +++ b/wirish/comm/HardwareSerial.h @@ -67,6 +67,10 @@ public: void flush(void); virtual void write(unsigned char); using Print::write; + + /* Pin accessors */ + int txPin(void) { return this->tx_pin; } + int rxPin(void) { return this->rx_pin; } private: usart_dev *usart_device; uint8 tx_pin; |
