microzig
microzig copied to clipboard
RP2040 Uart Refactor
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