Skip to content

Commit 5aa4daf

Browse files
author
Alarus
committed
Update hardware/arduino/cores/arduino/HardwareSerial.h
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
1 parent 6e8e13d commit 5aa4daf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hardware/arduino/cores/arduino/HardwareSerial.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
License along with this library; if not, write to the Free Software
1717
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1818
19-
Modified 28 September 2010 by Mark Sproul
19+
Modified 12 August 2012 by Alarus
2020
*/
2121

2222
#ifndef HardwareSerial_h
@@ -37,6 +37,7 @@ class HardwareSerial : public Stream
3737
volatile uint8_t *_ubrrl;
3838
volatile uint8_t *_ucsra;
3939
volatile uint8_t *_ucsrb;
40+
volatile uint8_t *_ucsrc;
4041
volatile uint8_t *_udr;
4142
uint8_t _rxen;
4243
uint8_t _txen;
@@ -47,9 +48,10 @@ class HardwareSerial : public Stream
4748
HardwareSerial(ring_buffer *rx_buffer, ring_buffer *tx_buffer,
4849
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
4950
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
50-
volatile uint8_t *udr,
51+
volatile uint8_t *ucsrc, volatile uint8_t *udr,
5152
uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udrie, uint8_t u2x);
5253
void begin(unsigned long);
54+
void begin(unsigned long, byte, char, byte);
5355
void end();
5456
virtual int available(void);
5557
virtual int peek(void);

0 commit comments

Comments
 (0)