tm4c123x_hal/
lib.rs

1//! HAL for the tm4c123x family of microcontrollers
2//!
3//! This is an implementation of the [`embedded-hal`] traits for the tm4c123x family of
4//! 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 [cortex-m-quickstart]
11//! instructions and add this crate as a dependency in step number 5 and make sure you enable the
12//! "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 documentation of the [`f3`] crate.
19//!
20//! [`f3`]: https://docs.rs/f3/~0.5.1
21
22#![deny(missing_docs, warnings)]
23#![allow(deprecated)]
24#![no_std]
25
26pub use tm4c123x::{self, CorePeripherals, Peripherals};
27pub use tm4c_hal::{bb, delay, time};
28
29// Enable use of interrupt macro
30#[cfg(feature = "rt")]
31pub use crate::tm4c123x::interrupt;
32
33use embedded_hal as hal;
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 eeprom;
44pub mod gpio;
45pub mod hib;
46pub mod i2c;
47pub mod prelude;
48pub mod pwm;
49pub mod serial;
50pub mod spi;
51pub mod sysctl;
52pub mod timer;