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
// SPDX-License-Identifier: Apache-2.0 OR MIT
//
// Copyright (c) 2018-2019 by the author(s)
//
// Author(s):
//   - Tock Project Developers <tock-dev@googlegroups.com>
//   - Andre Richter <andre.o.richter@gmail.com>

//! Unified interface for type-safe MMIO and CPU register access.
//!
//! Based on [tock-register-interface].
//!
//! # Minimum Supported Rust Version (MSRV)
//!
//! This crate is guaranteed to compile on stable Rust 1.39 and up. It *might* compile with older
//! versions but that may change in any new patch release.
//!
//! [tock-register-interface]: https://github.com/tock/tock/tree/master/libraries/tock-register-interface

#![no_std]

pub use tock_registers::{
    register_bitfields, register_bitmasks, register_fields, register_structs,
    registers::{
        Field, FieldValue, InMemoryRegister, IntLike, LocalRegisterCopy, RegisterLongName,
        TryFromValue,
    },
    test_fields,
};

pub mod cpu;

/// MMIO traits.
pub mod mmio {
    pub use tock_registers::registers::{ReadOnly, ReadWrite, WriteOnly};
}