aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/buffered_uarte.rs
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-nrf/src/buffered_uarte.rs
parent2a435e53b761182dabf9496963052f8323125f3a (diff)
cortex-m: remove owned interrupts.
Diffstat (limited to 'embassy-nrf/src/buffered_uarte.rs')
-rw-r--r--embassy-nrf/src/buffered_uarte.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs
index 4d053c023..b4fe2d874 100644
--- a/embassy-nrf/src/buffered_uarte.rs
+++ b/embassy-nrf/src/buffered_uarte.rs
@@ -24,7 +24,7 @@ pub use pac::uarte0::{baudrate::BAUDRATE_A as Baudrate, config::PARITY_A as Pari
24 24
25use crate::gpio::sealed::Pin; 25use crate::gpio::sealed::Pin;
26use crate::gpio::{self, AnyPin, Pin as GpioPin, PselBits}; 26use crate::gpio::{self, AnyPin, Pin as GpioPin, PselBits};
27use crate::interrupt::{self, InterruptExt}; 27use crate::interrupt::{self};
28use crate::ppi::{ 28use crate::ppi::{
29 self, AnyConfigurableChannel, AnyGroup, Channel, ConfigurableChannel, Event, Group, Ppi, PpiGroup, Task, 29 self, AnyConfigurableChannel, AnyGroup, Channel, ConfigurableChannel, Event, Group, Ppi, PpiGroup, Task,
30}; 30};
@@ -362,8 +362,8 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
362 ppi_ch2.disable(); 362 ppi_ch2.disable();
363 ppi_group.add_channel(&ppi_ch2); 363 ppi_group.add_channel(&ppi_ch2);
364 364
365 unsafe { U::Interrupt::steal() }.pend(); 365 U::Interrupt::pend();
366 unsafe { U::Interrupt::steal() }.enable(); 366 unsafe { U::Interrupt::enable() };
367 367
368 Self { 368 Self {
369 _peri: peri, 369 _peri: peri,
@@ -375,7 +375,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarte<'d, U, T> {
375 } 375 }
376 376
377 fn pend_irq() { 377 fn pend_irq() {
378 unsafe { <U::Interrupt as Interrupt>::steal() }.pend() 378 U::Interrupt::pend()
379 } 379 }
380 380
381 /// Adjust the baud rate to the provided value. 381 /// Adjust the baud rate to the provided value.