Crate metro_m4

source ·
Expand description

Board support crate for Adafruit’s Metro M4 Express, an ATSAMD51-based board in an ‘Arduino compatible’ shape and pinout

Re-exports

  • pub use atsamd_hal as hal;
  • pub use hal::ehal;
  • pub use hal::pac;

Macros

Structs

  • BSP replacement for the HAL Pins type

Constants

Functions

  • Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.
  • Convenience for setting up the onboard QSPI flash. Enables the clocks for the QSPI peripheral in single data rate mode assuming 120MHz system clock, for 4MHz QSPI mode 0 operation.
  • Convenience for setting up the 2x3 header block for SPI. This powers up SERCOM2 and configures it for use as an SPI Master in SPI Mode 0.
  • Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.

Type Definitions

Attribute Macros