aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/lib.rs
diff options
context:
space:
mode:
authorpennae <[email protected]>2023-04-25 18:47:51 +0200
committerpennae <[email protected]>2023-05-01 12:58:57 +0200
commita9074fd09bb2fa6265808f32e5cf303285fc0ec6 (patch)
tree1c21d3c5f068591522dc908e50bced5ba80894b3 /embassy-rp/src/lib.rs
parentf2469776f4f229dff23eb7f0bf59c00290620d9c (diff)
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.
Diffstat (limited to 'embassy-rp/src/lib.rs')
-rw-r--r--embassy-rp/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-rp/src/lib.rs b/embassy-rp/src/lib.rs
index 697f4308b..d69d12a30 100644
--- a/embassy-rp/src/lib.rs
+++ b/embassy-rp/src/lib.rs
@@ -156,6 +156,7 @@ pub fn init(_config: config::Config) -> Peripherals {
156 #[cfg(feature = "time-driver")] 156 #[cfg(feature = "time-driver")]
157 timer::init(); 157 timer::init();
158 dma::init(); 158 dma::init();
159 pio::init();
159 } 160 }
160 161
161 peripherals 162 peripherals