We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea183e9 commit 75c863cCopy full SHA for 75c863c
src/machine/machine_rp2040_uart.go
@@ -131,3 +131,9 @@ func (uart *UART) handleInterrupt(interrupt.Interrupt) {
131
}
132
uart.Receive(byte((uart.Bus.UARTDR.Get() & 0xFF)))
133
134
+
135
+// Flush blocks until all bytes in UART transmit buffer have been sent over the wire.
136
+func (uart *UART) Flush() {
137
+ for uart.Bus.UARTFR.HasBits(rp.UART0_UARTFR_BUSY) {
138
+ }
139
+}
0 commit comments