Expand description
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 as hal;pub use atsam4e16e_pac as pac;
Modules§
- chipid
- clock
- delay
- Delays
- efc
- HAL interface to the Enhanced Embedded Flash Controller (EEFC) peripheral
- gpio
- General Purpose Input / Output
- pdc
- PDC Traits for use with PDC-enabled peripherals
- prelude
- Import the prelude to gain convenient access to helper traits
- rtt
- serial
- spi
- SPI Implementation
- static_
memory_ controller - timer
- toggleable
- If you can read and write the output state, a pin is toggleable by software.
- watchdog
Macros§
Enums§
- PinState
- Digital output pin state
Traits§
- Input
Pin - Single digital input pin
- IoPin
- Single pin that can switch from input to output mode, and vice-versa.
- Output
Pin - Single digital push-pull output pin
- Stateful
Output Pin - Push-pull output pin that can read its output state
- Toggleable
Output Pin - Output pin that can be toggled