diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-09-14 16:13:28 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-09-14 16:13:28 +0200 |
| commit | addb08607007aac915ac33984a1816a5aa353ced (patch) | |
| tree | a28fcc841b3b83bbfd34553f7e514f2fc5a0f50f /src | |
| parent | 22ec841ee14cc313b1725ff6ab6de1b5706d2824 (diff) | |
Cleanup export and actually use rtic::export, made fn init inline
Diffstat (limited to 'src')
| -rw-r--r-- | src/export.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/export.rs b/src/export.rs index 927e951..8fdcb67 100644 --- a/src/export.rs +++ b/src/export.rs @@ -5,12 +5,10 @@ use core::{ pub use crate::tq::{NotReady, TimerQueue}; pub use bare_metal::CriticalSection; -#[cfg(armv7m)] -pub use cortex_m::register::basepri; pub use cortex_m::{ asm::wfi, interrupt, - peripheral::{scb::SystemHandler, syst::SystClkSource, DWT, NVIC}, + peripheral::{scb::SystemHandler, DWT, NVIC, SCB}, Peripherals, }; pub use heapless::sorted_linked_list::SortedLinkedList; @@ -22,6 +20,9 @@ pub type SCFQ<const N: usize> = Queue<u8, N>; pub type SCRQ<T, const N: usize> = Queue<(T, u8), N>; #[cfg(armv7m)] +use cortex_m::register::basepri; + +#[cfg(armv7m)] #[inline(always)] pub fn run<F>(priority: u8, f: F) where |
