mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 22:05:37 +01:00
Cleanup export and actually use rtic::export, made fn init inline
This commit is contained in:
parent
22ec841ee1
commit
addb086070
3 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
@ -21,6 +19,9 @@ pub use rtic_monotonic as monotonic;
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue