[−][src]Crate metro_m0
Re-exports
pub extern crate atsamd_hal as hal; |
pub use cortex_m_rt::entry; |
pub use hal::target_device as pac; |
Modules
calibration | NVM Software Calibration Area Mapping |
clock | Configuring the system clock sources.
You will typically need to create an instance of |
delay | Delays |
gpio | Working with GPIO pins.
The pins are associated with the PORT hardware. This module
defines a |
pad | |
prelude | Import the prelude to gain convenient access to helper traits |
pwm | |
sercom | Working with the SERCOM peripherals. |
time | Time units |
timer | Working with timer counter hardware |
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. |
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 |
uart | Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud. |