Crate metro_m0 [] [src]

Re-exports

pub use hal::atsamd21g18a::*;
pub use hal::*;

Macros

default_handler

This macro lets you override the default exception handler

exception

Assigns a handler to an exception

interrupt

Structs

Pins

Maps the pins to their arduino names and the numbers printed on the board.

Functions

flash_spi_master

Convenience for accessing the on-board SPI Flash device. This powers up SERCOM5 and configures it for use as an SPI Master.

i2c_master

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

pins

Returns the pins for the device

spi_master

Convenience for setting up the 2x3 header block for SPI. This powers up SERCOM4 and configures it for use as an SPI Master in SPI Mode 0. Unlike the flash_spi_master function, this one does not accept a CS pin; configuring a pin for CS is the responsibility of the caller, because it could be any OutputPin, or even a pulled up line on the slave.