aboutsummaryrefslogtreecommitdiff
path: root/embassy-lora/src
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-06-01 02:22:46 +0200
committerDario Nieuwenhuis <[email protected]>2023-06-01 03:25:19 +0200
commit404aa292890503806a32eac5ae518dbeeadd60eb (patch)
treeb02ef548d1a95999a05655dbee4938327d487238 /embassy-lora/src
parent2a435e53b761182dabf9496963052f8323125f3a (diff)
cortex-m: remove owned interrupts.
Diffstat (limited to 'embassy-lora/src')
-rw-r--r--embassy-lora/src/iv.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-lora/src/iv.rs b/embassy-lora/src/iv.rs
index d515bc365..8d521040f 100644
--- a/embassy-lora/src/iv.rs
+++ b/embassy-lora/src/iv.rs
@@ -22,7 +22,7 @@ pub struct InterruptHandler {}
22#[cfg(feature = "stm32wl")] 22#[cfg(feature = "stm32wl")]
23impl interrupt::Handler<interrupt::SUBGHZ_RADIO> for InterruptHandler { 23impl interrupt::Handler<interrupt::SUBGHZ_RADIO> for InterruptHandler {
24 unsafe fn on_interrupt() { 24 unsafe fn on_interrupt() {
25 unsafe { SUBGHZ_RADIO::steal() }.disable(); 25 interrupt::SUBGHZ_RADIO::disable();
26 IRQ_SIGNAL.signal(()); 26 IRQ_SIGNAL.signal(());
27 } 27 }
28} 28}
@@ -49,7 +49,7 @@ where
49 rf_switch_rx: Option<CTRL>, 49 rf_switch_rx: Option<CTRL>,
50 rf_switch_tx: Option<CTRL>, 50 rf_switch_tx: Option<CTRL>,
51 ) -> Result<Self, RadioError> { 51 ) -> Result<Self, RadioError> {
52 unsafe { interrupt::SUBGHZ_RADIO::steal() }.disable(); 52 interrupt::SUBGHZ_RADIO::disable();
53 Ok(Self { 53 Ok(Self {
54 board_type: BoardType::Stm32wlSx1262, // updated when associated with a specific LoRa board 54 board_type: BoardType::Stm32wlSx1262, // updated when associated with a specific LoRa board
55 rf_switch_rx, 55 rf_switch_rx,
@@ -95,7 +95,7 @@ where
95 } 95 }
96 96
97 async fn await_irq(&mut self) -> Result<(), RadioError> { 97 async fn await_irq(&mut self) -> Result<(), RadioError> {
98 unsafe { interrupt::SUBGHZ_RADIO::steal() }.enable(); 98 unsafe { interrupt::SUBGHZ_RADIO::enable() };
99 IRQ_SIGNAL.wait().await; 99 IRQ_SIGNAL.wait().await;
100 Ok(()) 100 Ok(())
101 } 101 }