Crate metro_m0

Source

Re-exports§

pub use atsamd_hal as hal;
pub use hal::ehal;
pub use hal::pac;
pub use pins::*;

Modules§

pins
Definitions related to pins and pin aliases

Macros§

pin_alias
Refer to fields of the Pins struct by alternate names

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.
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.
uart
Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.

Type Aliases§

FlashPads
SPI pads for the flash chip
FlashSpi
SPI master for the labelled SPI peripheral
I2c
I2C master for the labelled I2C peripheral
I2cPads
I2C pads for the labelled I2C peripheral
Spi
SPI master for the labelled SPI peripheral
SpiPads
SPI pads for the labelled SPI peripheral
Uart
UART device for the labelled RX & TX pins
UartPads
UART pads

Attribute Macros§

entry