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:
@ -157,6 +157,7 @@ pub fn init(_config: config::Config) -> Peripherals {
|
||||
timer::init();
|
||||
dma::init();
|
||||
pio::init();
|
||||
gpio::init();
|
||||
}
|
||||
|
||||
peripherals
|
||||
|
Reference in New Issue
Block a user