1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#![cfg_attr(target_os = "none", no_std)]
#![feature(naked_functions)]
#![cfg_attr(not(target_os = "none"), feature(never_type))]
#![allow(unused)]
pub mod syscall;
pub mod core;
pub mod scheduler;
pub mod sync;
pub mod startup;
pub mod memory_protection;
pub use crate::scheduler::IScheduler;
pub use crate::syscall::ISyscall;
pub use crate::core::ICore;
pub use crate::sync::ISync;
pub use crate::startup::IStartup;
pub use crate::memory_protection::IMemoryProtection;
#[cfg(not(target_os = "none"))]
pub mod mock;
#[cfg(not(target_os = "none"))]
pub use crate::mock as arch;
#[cfg(all(arm_cortex_m, target_os = "none"))]
pub mod cortex_m;
#[cfg(all(arm_cortex_m, target_os = "none"))]
pub use crate::cortex_m as arch;