diff --git a/src/serial.rs b/src/serial.rs index 6f164669e..16345547f 100644 --- a/src/serial.rs +++ b/src/serial.rs @@ -26,4 +26,7 @@ pub trait Write { /// Writes a single word to the serial interface fn write(&mut self, word: Word) -> nb::Result<(), Self::Error>; + + /// Ensures that none of the previously written words are still buffered + fn flush(&mut self) -> nb::Result<(), Self::Error>; }