Crate atsamd21_hal [] [src]

Re-exports

pub extern crate atsamd21g18a;
pub extern crate embedded_hal as hal;

Modules

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 atsamd21 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.

prelude

Import the prelude to gain convenient access to helper traits

sercom

Working with the SERCOM peripherals.

target_device

Peripheral access API for ATSAMD21G18A microcontrollers (generated using svd2rust v0.12.1)

time

Time units

timer

Working with timer counter hardware

usb

USB Device support