Skip to content
Next Next commit
Update Serial.h for 9-bit support
Added to write function declarations for functions being added to the serial.cpp to support the 9-bit functionality of the processor. 

The "bool wake" allows turning on the 9-bit, also known as the wake bit.
  • Loading branch information
vashadow authored Oct 5, 2024
commit 90e4f56186f743e73cf53242d19cd42fc5482e42
2 changes: 2 additions & 0 deletions cores/arduino/Serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ class UART : public arduino::HardwareSerial {
size_t write(uint8_t c);
size_t write(uint8_t* c, size_t len);
size_t write_raw(uint8_t* c, size_t len);
size_t write_9bit(uint8_t c, bool wake);
size_t write_9bit(uint8_t* c, bool wake, size_t len);
using Print::write;
operator bool(); // { return true; }

Expand Down