microzig icon indicating copy to clipboard operation
microzig copied to clipboard

RP2040 Uart Refactor

Open haydenridd opened this issue 1 year ago • 0 comments

Should start looking pretty familiar to the other PRs!

The highlights:

  • Removed configuration of GPIO pins by driver
  • Added full transaction error handling
  • Consolidated to new "uart.instance.[]" design pattern
  • Added new "apply()" and "apply_runtime()" pattern for dual comptime/runtime error checking
  • Added querying of current active UART errors
  • Tweaked + renamed to write_blocking() and read_blocking() and added a timeout to match other APIs
  • Tweaked syntax for using the UART as a logger + added ability to remove uart as logger

haydenridd avatar Jul 30 '24 19:07 haydenridd