aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlarus <alarus@qip.ru>2012-08-12 20:18:50 +0600
committerAlarus <alarus@qip.ru>2012-08-12 20:18:50 +0600
commitb9bbc71dca6c1e7fcf7c5eddb28987c8ad121a2c (patch)
tree5bd6577a6cd643f15b5a0073eb555ce9f0c6fb7b
parent810803c6d3ab33a4496a89f41ef7e1dda15e8680 (diff)
Update hardware/arduino/cores/arduino/HardwareSerial.h
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
-rw-r--r--cores/arduino/HardwareSerial.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cores/arduino/HardwareSerial.h b/cores/arduino/HardwareSerial.h
index bf4924c..a04bb66 100644
--- a/cores/arduino/HardwareSerial.h
+++ b/cores/arduino/HardwareSerial.h
@@ -16,7 +16,7 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Modified 28 September 2010 by Mark Sproul
+ Modified 12 August 2012 by Alarus
*/
#ifndef HardwareSerial_h
@@ -37,6 +37,7 @@ class HardwareSerial : public Stream
volatile uint8_t *_ubrrl;
volatile uint8_t *_ucsra;
volatile uint8_t *_ucsrb;
+ volatile uint8_t *_ucsrc;
volatile uint8_t *_udr;
uint8_t _rxen;
uint8_t _txen;
@@ -47,9 +48,10 @@ class HardwareSerial : public Stream
HardwareSerial(ring_buffer *rx_buffer, ring_buffer *tx_buffer,
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
- volatile uint8_t *udr,
+ volatile uint8_t *ucsrc, volatile uint8_t *udr,
uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udrie, uint8_t u2x);
void begin(unsigned long);
+ void begin(unsigned long, byte, char, byte);
void end();
virtual int available(void);
virtual int peek(void);