platforms: Serial new dedicated writeBlocking method (#25537)

* platforms: Serial new dedicated writeBlocking method

* finish writeBlocking()

* add back fsync

* updated posix, added string constant for port not open error

* format

* fix build

* remove fsync

* actually remove fsync

* remove fsync from write

* review feedback

---------

Co-authored-by: Jacob Dahl <dahl.jakejacob@gmail.com>
Co-authored-by: Jacob Dahl <37091262+dakejahl@users.noreply.github.com>
This commit is contained in:
Daniel Agar
2025-09-15 19:22:49 -04:00
committed by GitHub
parent 41d3403ec7
commit d3f912ad25
8 changed files with 144 additions and 5 deletions
+5
View File
@@ -89,6 +89,11 @@ ssize_t Serial::write(const void *buffer, size_t buffer_size)
return _impl.write(buffer, buffer_size);
}
ssize_t Serial::writeBlocking(const void *buffer, size_t buffer_size, uint32_t timeout_ms)
{
return _impl.writeBlocking(buffer, buffer_size, timeout_ms);
}
void Serial::flush()
{
return _impl.flush();