tm4c129x_hal/
lib.rs

1//! HAL for the tm4c129x family of microcontrollers
2//!
3//! This is an implementation of the [`embedded-hal`] traits for the tm4c129x
4//! family of microcontrollers.
5//!
6//! [`embedded-hal`]: https://github.com/japaric/embedded-hal
7//!
8//! # Usage
9//!
10//! To build applications (binary crates) using this crate follow the
11//! [cortex-m-quickstart] instructions and add this crate as a dependency in
12//! step number 5 and make sure you enable the "rt" Cargo feature of this crate.
13//!
14//! [cortex-m-quickstart]: https://docs.rs/cortex-m-quickstart/~0.2.3
15//!
16//! # Examples
17//!
18//! Examples of *using* these abstractions like these can be found in the
19//! documentation of the [`f3`] crate.
20//!
21//! [`f3`]: https://docs.rs/f3/~0.5.1
22
23#![no_std]
24#![deny(missing_docs)]
25#![deny(warnings)]
26#![allow(deprecated)]
27
28pub use tm4c129x::{self, CorePeripherals, Peripherals};
29pub use tm4c_hal::{bb, delay, time};
30
31// Enable use of interrupt macro
32#[cfg(feature = "rt")]
33pub use crate::tm4c129x::interrupt;
34
35use sealed::Sealed;
36mod sealed {
37    // To prevent implementation of `*Pin` traits on arbitrary types
38    pub trait Sealed {}
39
40    impl Sealed for () {}
41}
42
43pub mod gpio;
44pub mod hib;
45pub mod i2c;
46pub mod prelude;
47pub mod serial;
48// pub mod spi;
49pub mod sysctl;
50
51use embedded_hal as hal;