mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Small optimization in HardwareSerial.
begin(long) -> begin(unsigned long)
This commit is contained in:
parent
896b1a48a1
commit
13e3ba87e3
@ -191,7 +191,7 @@ HardwareSerial::HardwareSerial(ring_buffer *rx_buffer,
|
|||||||
|
|
||||||
// Public Methods //////////////////////////////////////////////////////////////
|
// Public Methods //////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void HardwareSerial::begin(long baud)
|
void HardwareSerial::begin(unsigned long baud)
|
||||||
{
|
{
|
||||||
uint16_t baud_setting;
|
uint16_t baud_setting;
|
||||||
bool use_u2x = true;
|
bool use_u2x = true;
|
||||||
|
@ -48,7 +48,7 @@ class HardwareSerial : public Stream
|
|||||||
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
|
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
|
||||||
volatile uint8_t *udr,
|
volatile uint8_t *udr,
|
||||||
uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udre, uint8_t u2x);
|
uint8_t rxen, uint8_t txen, uint8_t rxcie, uint8_t udre, uint8_t u2x);
|
||||||
void begin(long);
|
void begin(unsigned long);
|
||||||
void end();
|
void end();
|
||||||
virtual int available(void);
|
virtual int available(void);
|
||||||
virtual int peek(void);
|
virtual int peek(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user