mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-01 12:24:14 +01:00
Update hardware/arduino/cores/arduino/HardwareSerial.h
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
This commit is contained in:
parent
6e8e13d7b3
commit
5aa4dafe21
@ -16,7 +16,7 @@
|
|||||||
License along with this library; if not, write to the Free Software
|
License along with this library; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
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
|
#ifndef HardwareSerial_h
|
||||||
@ -37,6 +37,7 @@ class HardwareSerial : public Stream
|
|||||||
volatile uint8_t *_ubrrl;
|
volatile uint8_t *_ubrrl;
|
||||||
volatile uint8_t *_ucsra;
|
volatile uint8_t *_ucsra;
|
||||||
volatile uint8_t *_ucsrb;
|
volatile uint8_t *_ucsrb;
|
||||||
|
volatile uint8_t *_ucsrc;
|
||||||
volatile uint8_t *_udr;
|
volatile uint8_t *_udr;
|
||||||
uint8_t _rxen;
|
uint8_t _rxen;
|
||||||
uint8_t _txen;
|
uint8_t _txen;
|
||||||
@ -47,9 +48,10 @@ class HardwareSerial : public Stream
|
|||||||
HardwareSerial(ring_buffer *rx_buffer, ring_buffer *tx_buffer,
|
HardwareSerial(ring_buffer *rx_buffer, ring_buffer *tx_buffer,
|
||||||
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
|
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
|
||||||
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
|
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);
|
uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udrie, uint8_t u2x);
|
||||||
void begin(unsigned long);
|
void begin(unsigned long);
|
||||||
|
void begin(unsigned long, byte, char, byte);
|
||||||
void end();
|
void end();
|
||||||
virtual int available(void);
|
virtual int available(void);
|
||||||
virtual int peek(void);
|
virtual int peek(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user