1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Working with the SERCOM peripherals.
//!
//! The atsamd21 hardware has several SERCOM instances that can
//! be configured to perform a variety of serial communication
//! tasks. This configuration is expressed through the use of
//! type states to make it difficult to misuse.
//! Each sercom instance is associated with a group of IO pins
//! referred to as a Pad. When the pins are set to the appropriate
//! peripheral function mode they are routed to the sercom pad.
pub mod i2c;
pub mod spi;
pub mod uart;
pub use self::i2c::*;
#[allow(deprecated)]
pub use self::spi::*;
#[allow(deprecated)]
pub use self::uart::*;