mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-13 02:22:55 +03:00
Implement invert for HardwareSerial (#6816)
* Simple i/f to turn on inverted logic on UART0. * Refactor invert from HardwareSerial to uart * Final refactoring of invert bits into config bitmap. * Overload instead of default arg for subclassing. * Prevent unwanted effects if setting invert on other than UART0 - only that has these flags defined and documented.
This commit is contained in:
committed by
Earle F. Philhower, III
parent
b478429fe4
commit
007e495e0d
@ -73,18 +73,23 @@ public:
|
||||
|
||||
void begin(unsigned long baud)
|
||||
{
|
||||
begin(baud, SERIAL_8N1, SERIAL_FULL, 1);
|
||||
begin(baud, SERIAL_8N1, SERIAL_FULL, 1, false);
|
||||
}
|
||||
void begin(unsigned long baud, SerialConfig config)
|
||||
{
|
||||
begin(baud, config, SERIAL_FULL, 1);
|
||||
begin(baud, config, SERIAL_FULL, 1, false);
|
||||
}
|
||||
void begin(unsigned long baud, SerialConfig config, SerialMode mode)
|
||||
{
|
||||
begin(baud, config, mode, 1);
|
||||
begin(baud, config, mode, 1, false);
|
||||
}
|
||||
|
||||
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin);
|
||||
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin)
|
||||
{
|
||||
begin(baud, config, mode, tx_pin, false);
|
||||
}
|
||||
|
||||
void begin(unsigned long baud, SerialConfig config, SerialMode mode, uint8_t tx_pin, bool invert);
|
||||
|
||||
void end();
|
||||
|
||||
|
Reference in New Issue
Block a user