-
Notifications
You must be signed in to change notification settings - Fork 967
Closed
Labels
enhancementNew feature or requestNew feature or requestrp2040RP2040 (Pi Pico, RP2040 Feather, etc)RP2040 (Pi Pico, RP2040 Feather, etc)
Description
For applications where using RS485 integrated circuits such as the MAX485 we need a way to know that the peripheral is done transmitting. I've checked and the RP2040 does have a BUSY bit in a regsiter, so ideally the method would be simple as
func (u *UART) Flush() {
for u.Bus.UARTFR.Get() & (1<<3) != 0 { }
}
See page 431 of RP2040 datasheet.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestrp2040RP2040 (Pi Pico, RP2040 Feather, etc)RP2040 (Pi Pico, RP2040 Feather, etc)