|
58 | 58 | #![allow(non_camel_case_types)]
|
59 | 59 | #![allow(non_snake_case)]
|
60 | 60 |
|
61 |
| -#[macro_use] |
| 61 | +#[cfg_attr(any(feature = "time", feature = "sync"), macro_use)] |
62 | 62 | extern crate alloc;
|
63 | 63 |
|
| 64 | +#[cfg(feature = "hooks")] |
64 | 65 | mod hooks;
|
65 | 66 | mod prelude;
|
66 | 67 | mod shim;
|
67 | 68 |
|
| 69 | +#[cfg(feature = "allocator")] |
68 | 70 | mod allocator;
|
69 | 71 | mod base;
|
| 72 | +#[cfg(feature = "sync")] |
70 | 73 | mod critical;
|
| 74 | +#[cfg(feature = "time")] |
71 | 75 | mod delays;
|
| 76 | +#[cfg(feature = "interrupt")] |
72 | 77 | mod isr;
|
| 78 | +#[cfg(feature = "sync")] |
73 | 79 | mod mutex;
|
| 80 | +#[cfg(feature = "sync")] |
74 | 81 | mod queue;
|
| 82 | +#[cfg(feature = "sync")] |
75 | 83 | mod semaphore;
|
| 84 | +#[cfg(any(feature = "time", feature = "sync"))] |
76 | 85 | mod task;
|
| 86 | +#[cfg(feature = "time")] |
77 | 87 | mod timers;
|
| 88 | +#[cfg(any(feature = "time", feature = "sync"))] |
78 | 89 | mod units;
|
79 | 90 | mod utils;
|
80 | 91 |
|
| 92 | +#[cfg(feature = "sync")] |
81 | 93 | pub mod patterns;
|
82 | 94 |
|
83 | 95 | // Internal stuff that is only public for first Proof of Concept
|
84 | 96 | pub use crate::base::*;
|
85 | 97 | pub use crate::shim::*;
|
86 | 98 | // ----------
|
87 | 99 |
|
| 100 | +#[cfg(feature = "allocator")] |
88 | 101 | pub use crate::allocator::*;
|
89 | 102 | pub use crate::base::FreeRtosError;
|
| 103 | +#[cfg(feature = "sync")] |
90 | 104 | pub use crate::critical::*;
|
| 105 | +#[cfg(feature = "time")] |
91 | 106 | pub use crate::delays::*;
|
| 107 | +#[cfg(feature = "hooks")] |
92 | 108 | pub use crate::hooks::*;
|
| 109 | +#[cfg(feature = "interrupt")] |
93 | 110 | pub use crate::isr::*;
|
| 111 | +#[cfg(feature = "sync")] |
94 | 112 | pub use crate::mutex::*;
|
| 113 | +#[cfg(feature = "sync")] |
95 | 114 | pub use crate::queue::*;
|
| 115 | +#[cfg(feature = "sync")] |
96 | 116 | pub use crate::semaphore::*;
|
| 117 | +#[cfg(any(feature = "time", feature = "sync"))] |
97 | 118 | pub use crate::task::*;
|
| 119 | +#[cfg(feature = "time")] |
98 | 120 | pub use crate::timers::*;
|
| 121 | +#[cfg(any(feature = "time", feature = "sync"))] |
99 | 122 | pub use crate::units::*;
|
100 | 123 |
|
101 | 124 | pub use crate::utils::shim_sanity_check;
|
0 commit comments