mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-16 00:43:00 +03:00
Function added to detect baudrate (#4978)
* Function added to detect baudrate * Added uart_start_detect_baudrate, detectBaudrate() wrappers for HardwareSerial and an example usage SerialDetectBaudrate.ino * Some layout changes to pass Travis tests * Some more nitty-gritty layout changes to pass Travis tests * Some even more nitty-gritty layout changes to pass Travis tests * renamed one function to testBaudrate() and updated doc/reference.rst * Minor updates to doc/reference.rst * New lines added
This commit is contained in:
@ -184,6 +184,12 @@ public:
|
||||
return uart_has_overrun(_uart);
|
||||
}
|
||||
|
||||
void startDetectBaudrate();
|
||||
|
||||
unsigned long testBaudrate();
|
||||
|
||||
unsigned long detectBaudrate(time_t timeoutMillis);
|
||||
|
||||
protected:
|
||||
int _uart_nr;
|
||||
uart_t* _uart = nullptr;
|
||||
|
Reference in New Issue
Block a user