Skip to content

Need UART "Flush" method on RP2040 #3537

@soypat

Description

@soypat

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

No one assigned

    Labels

    enhancementNew feature or requestrp2040RP2040 (Pi Pico, RP2040 Feather, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions