mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-08-06 10:27:34 +00:00
Updated printable to reduce mutex operations when printing newlines
This commit is contained in:
@@ -32,8 +32,17 @@ namespace sta
|
||||
*
|
||||
* @param str String buffer
|
||||
* @param length String length
|
||||
* @param newline If true, send a \r\n to start a new line.
|
||||
*/
|
||||
void print(const char * str, size_t length) override;
|
||||
void print(const char * str, size_t length, bool newline = false) override;
|
||||
|
||||
/**
|
||||
* @brief Read string.
|
||||
*
|
||||
* @param str String buffer
|
||||
* @param length String length
|
||||
*/
|
||||
void read(char * str, size_t length) override;
|
||||
|
||||
private:
|
||||
UART * intf_;
|
||||
|
Reference in New Issue
Block a user