freertos_next/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6
7#[cfg_attr(any(feature = "time", feature = "sync"), macro_use)]
8extern crate alloc;
9
10pub mod prelude;
11
12mod assert_callback;
13mod base_type;
14mod shim;
15
16#[cfg(feature = "allocator")]
17mod allocator;
18mod base;
19#[cfg(feature = "sync")]
20mod critical;
21#[cfg(feature = "time")]
22mod delays;
23#[cfg(feature = "sync")]
24mod event_group;
25#[cfg(feature = "interrupt")]
26mod isr;
27#[cfg(feature = "sync")]
28mod mutex;
29#[cfg(cortex_m)]
30mod os_trait_impls;
31#[cfg(feature = "sync")]
32mod queue;
33#[cfg(feature = "sync")]
34mod semaphore;
35#[cfg(any(feature = "time", feature = "sync"))]
36mod task;
37#[cfg(feature = "time")]
38mod timers;
39#[cfg(any(feature = "time", feature = "sync"))]
40mod units;
41mod utils;
42
43#[cfg(feature = "sync")]
44pub mod patterns;
45
46// Internal stuff that is only public for first Proof of Concept
47pub use crate::base::*;
48pub use crate::shim::*;
49pub use os_trait::{self, os_type_alias};
50// ----------
51
52#[cfg(feature = "allocator")]
53pub use crate::allocator::*;
54pub use crate::assert_callback::*;
55pub use crate::base::FreeRtosError;
56#[cfg(feature = "sync")]
57pub use crate::critical::*;
58#[cfg(feature = "time")]
59pub use crate::delays::*;
60#[cfg(feature = "sync")]
61pub use crate::event_group::*;
62#[cfg(feature = "interrupt")]
63pub use crate::isr::*;
64#[cfg(feature = "sync")]
65pub use crate::mutex::*;
66#[cfg(cortex_m)]
67pub use crate::os_trait_impls::*;
68#[cfg(feature = "sync")]
69pub use crate::queue::*;
70#[cfg(feature = "sync")]
71pub use crate::semaphore::*;
72#[cfg(any(feature = "time", feature = "sync"))]
73pub use crate::task::*;
74#[cfg(feature = "time")]
75pub use crate::timers::*;
76#[cfg(any(feature = "time", feature = "sync"))]
77pub use crate::units::*;
78#[cfg(feature = "cpu-clock")]
79pub use crate::utils::cpu_clock_hz;
80pub use crate::utils::{shim_sanity_check, str_from_c_string};