rp/pio: enable pio interrupts only once

since we never actually *disable* these interrupts for any length of
time we can simply enable them globally. we also initialize all pio
interrupt flags to not cause system interrupts since state machine
irqa are not necessarily meant to cause a system interrupt when set. the
fifo interrupts are sticky and can likewise only be cleared inside the
handler by disabling them.
This commit is contained in:
pennae
2023-04-25 18:47:51 +02:00
parent f2469776f4
commit a9074fd09b
2 changed files with 15 additions and 36 deletions

View File

@ -156,6 +156,7 @@ pub fn init(_config: config::Config) -> Peripherals {
#[cfg(feature = "time-driver")]
timer::init();
dma::init();
pio::init();
}
peripherals