Skip to main content

kernel/utilities/
mod.rs

1// Licensed under the Apache License, Version 2.0 or the MIT License.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// Copyright Tock Contributors 2022.
4
5//! Utility functions and macros provided by the kernel crate.
6
7pub mod arch_helpers;
8pub mod binary_write;
9pub mod capability_ptr;
10pub mod copy_range;
11pub mod copy_slice;
12pub mod dma_slice;
13pub mod helpers;
14pub mod io_write;
15pub mod leasable_buffer;
16pub mod machine_register;
17pub mod math;
18pub mod mut_imut_buffer;
19pub mod peripheral_management;
20pub mod single_thread_value;
21pub mod slice_uninit;
22pub mod static_init;
23pub mod storage_volume;
24pub mod streaming_process_slice;
25
26mod static_ref;
27pub use self::static_ref::StaticRef;
28
29/// The Tock `Cell` types.
30///
31/// This is a re-export of the `tock-cells` crate provided for convenience.
32///
33/// To use `TakeCell`, for example, users should use:
34///
35///     use kernel::utilities::cells::TakeCell;
36pub mod cells {
37    pub use tock_cells::map_cell::MapCell;
38    pub use tock_cells::numeric_cell_ext::NumericCellExt;
39    pub use tock_cells::optional_cell::OptionalCell;
40    pub use tock_cells::take_cell::TakeCell;
41}