rp/gpio: set up gpio interrupts only once

doing this setup work repeatedly, on every wait, is unnecessary. with
nothing ever disabling the interrupt it is sufficient to enable it once
during device init and never touch it again.
This commit is contained in:
pennae
2023-05-02 08:39:05 +02:00
parent 8fc92fdf62
commit 849011b826
4 changed files with 75 additions and 7 deletions

View File

@ -157,6 +157,7 @@ pub fn init(_config: config::Config) -> Peripherals {
timer::init();
dma::init();
pio::init();
gpio::init();
}
peripherals