machine/rp: use the blockReset() and unresetBlockWait() helper functions for all peripheral reset/unreset operations

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2026-01-13 01:22:20 +01:00
committed by Ron Evans
parent ff58c50118
commit 8bd2233b57
4 changed files with 8 additions and 18 deletions
+2 -4
View File
@@ -148,10 +148,8 @@ func initUART(uart *UART) {
}
// reset UART
rp.RESETS.RESET.SetBits(resetVal)
rp.RESETS.RESET.ClearBits(resetVal)
for !rp.RESETS.RESET_DONE.HasBits(resetVal) {
}
resetBlock(resetVal)
unresetBlockWait(resetVal)
}
// handleInterrupt should be called from the appropriate interrupt handler for