Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need UART "Flush" method on RP2040 #3537

Closed
soypat opened this issue Mar 9, 2023 · 1 comment · Fixed by #3832
Closed

Need UART "Flush" method on RP2040 #3537

soypat opened this issue Mar 9, 2023 · 1 comment · Fixed by #3832
Labels
enhancement New feature or request rp2040 RP2040 (Pi Pico, RP2040 Feather, etc)

Comments

@soypat
Copy link
Contributor

soypat commented Mar 9, 2023

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.

@deadprogram deadprogram added enhancement New feature or request rp2040 RP2040 (Pi Pico, RP2040 Feather, etc) labels Mar 10, 2023
@soypat soypat linked a pull request Jul 13, 2023 that will close this issue
@soypat
Copy link
Contributor Author

soypat commented Sep 5, 2023

#3832 Closes this

@soypat soypat closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rp2040 RP2040 (Pi Pico, RP2040 Feather, etc)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants