[][src]Crate trellis_m4

Re-exports

pub use adxl343;
pub use keypad;
pub use hal::target_device as pac;
pub use cortex_m_rt::entry;
pub use pins::Pins;

Modules

adc
clock

Configuring the system clock sources. You will typically need to create an instance of GenericClockController before you can set up most of the peripherals on the atsamd51 device. The other types in this module are used to enforce at compile time that the peripherals have been correctly configured.

delay

Delays

gpio

Working with GPIO pins. The pins are associated with the PORT hardware. This module defines a split method on the PORT type that is used to safely reference the individual pin configuration. The IO pins can be switched into alternate function modes, which routes the pins to different peripherals depending on the mode for the pin. The pin configuration is reflected through the use of type states to make the interface (ideally, or at least practically) impossible to misuse.

pad
pins

NeoTrellis M4 Express pins

prelude

Import the prelude to gain convenient access to helper traits

pwm
sercom

Working with the SERCOM peripherals.

time

Time units

timer

Working with timer counter hardware

trng

Structs

Keypad

NeoTrellis M4 Express 8x4 keypad

Constants

NEOPIXEL_COUNT

Number of Neopixels on the device

Functions

i2c_master

Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.

uart

Convenience for setting up the labelled SDA, SCL pins in the STEMMA JST connector to operate as a UART device at the specified baud rate.