[][src]Crate atsam4_hal

HAL for the ATSAM4 series of microcontrollers

This is an implementation of the embedded-hal traits for the ATSAM4 microcontrollers

Requirements

This crate requires arm-none-eabi-gcc to be installed and available in $PATH to build.

Usage

To build applications (binary crates) using this crate follow the cortex-m-quickstart instructions and add this crate as a dependency in step number 5 and make sure you enable the "rt" Cargo feature of this crate.

Re-exports

pub extern crate embedded_hal;
pub use atsam4e16e_pac as pac;

Modules

clock
delay

Delays

gpio

General Purpose Input / Output

serial
static_memory_controller
time

Time units

toggleable

If you can read and write the output state, a pin is toggleable by software.

Macros

define_pin_map

Traits

InputPin

Single digital input pin

OutputPin

Single digital push-pull output pin

StatefulOutputPin

Push-pull output pin that can read its output state

ToggleableOutputPin

Output pin that can be toggled

Functions

pre_init