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 15:22:49 -08:00
committed by GitHub
co-authored by Jacob Dahl Jacob Dahl
parent 41d3403ec7
commit d3f912ad25
8 changed files with 144 additions and 5 deletions
@@ -66,6 +66,7 @@ public:
ssize_t readAtLeast(uint8_t *buffer, size_t buffer_size, size_t character_count = 1, uint32_t timeout_ms = 0);
ssize_t write(const void *buffer, size_t buffer_size);
ssize_t writeBlocking(const void *buffer, size_t buffer_size, uint32_t timeout_ms = 0);
void flush();