Expand description
Board support crate for Adafruit’s Grand Central M4 Express, an ATSAMD51-based board in an Arduino Mega form factor.
Re-exports§
pub use atsamd_hal as hal;pub use hal::ehal;pub use hal::pac;
Macros§
- periph_
alias - Refer to fields of the
Peripheralsstruct by alternate names - pin_
alias - Refer to fields of the
Pinsstruct by alternate names
Structs§
Constants§
- FLASH_
CS_ ID - DynPinId
for the
FlashCsalias. - FLASH_
CS_ MODE - DynPinMode
for the
FlashCsalias. - FLASH_
D0_ ID - DynPinId
for the
FlashD0alias. - FLASH_
D0_ MODE - DynPinMode
for the
FlashD0alias. - FLASH_
D1_ ID - DynPinId
for the
FlashD1alias. - FLASH_
D1_ MODE - DynPinMode
for the
FlashD1alias. - FLASH_
D2_ ID - DynPinId
for the
FlashD2alias. - FLASH_
D2_ MODE - DynPinMode
for the
FlashD2alias. - FLASH_
D3_ ID - DynPinId
for the
FlashD3alias. - FLASH_
D3_ MODE - DynPinMode
for the
FlashD3alias. - FLASH_
SCLK_ ID - DynPinId
for the
FlashSclkalias. - FLASH_
SCLK_ MODE - DynPinMode
for the
FlashSclkalias. - MISO_ID
- DynPinId
for the
Misoalias. - MISO_
MODE - DynPinMode
for the
Misoalias. - MOSI_ID
- DynPinId
for the
Mosialias. - MOSI_
MODE - DynPinMode
for the
Mosialias. - RED_
LED_ ID - DynPinId
for the
RedLedalias. - RED_
LED_ MODE - DynPinMode
for the
RedLedalias. - SCL1_ID
- DynPinId
for the
Scl1alias. - SCL1_
MODE - DynPinMode
for the
Scl1alias. - SCLK_ID
- DynPinId
for the
Sclkalias. - SCLK_
MODE - DynPinMode
for the
Sclkalias. - SCL_ID
- DynPinId
for the
Sclalias. - SCL_
MODE - DynPinMode
for the
Sclalias. - SDA1_ID
- DynPinId
for the
Sda1alias. - SDA1_
MODE - DynPinMode
for the
Sda1alias. - SDA_ID
- DynPinId
for the
Sdaalias. - SDA_
MODE - DynPinMode
for the
Sdaalias. - SD_
CARD_ DETECT_ ID - DynPinId
for the
SdCardDetectalias. - SD_
CARD_ DETECT_ MODE - DynPinMode
for the
SdCardDetectalias. - SD_
CS_ ID - DynPinId
for the
SdCsalias. - SD_
CS_ MODE - DynPinMode
for the
SdCsalias. - SD_
MISO_ ID - DynPinId
for the
SdMisoalias. - SD_
MISO_ MODE - DynPinMode
for the
SdMisoalias. - SD_
MOSI_ ID - DynPinId
for the
SdMosialias. - SD_
MOSI_ MODE - DynPinMode
for the
SdMosialias. - SD_
SCLK_ ID - DynPinId
for the
SdSclkalias. - SD_
SCLK_ MODE - DynPinMode
for the
SdSclkalias. - UART_
RX1_ ID - DynPinId
for the
UartRx1alias. - UART_
RX1_ MODE - DynPinMode
for the
UartRx1alias. - UART_
RX2_ ID - DynPinId
for the
UartRx2alias. - UART_
RX2_ MODE - DynPinMode
for the
UartRx2alias. - UART_
RX3_ ID - DynPinId
for the
UartRx3alias. - UART_
RX3_ MODE - DynPinMode
for the
UartRx3alias. - UART_
RX_ ID - DynPinId
for the
UartRxalias. - UART_
RX_ MODE - DynPinMode
for the
UartRxalias. - UART_
TX1_ ID - DynPinId
for the
UartTx1alias. - UART_
TX1_ MODE - DynPinMode
for the
UartTx1alias. - UART_
TX2_ ID - DynPinId
for the
UartTx2alias. - UART_
TX2_ MODE - DynPinMode
for the
UartTx2alias. - UART_
TX3_ ID - DynPinId
for the
UartTx3alias. - UART_
TX3_ MODE - DynPinMode
for the
UartTx3alias. - UART_
TX_ ID - DynPinId
for the
UartTxalias. - UART_
TX_ MODE - DynPinMode
for the
UartTxalias. - USB_
DM_ ID - DynPinId
for the
UsbDmalias. - USB_
DM_ MODE - DynPinMode
for the
UsbDmalias. - USB_
DP_ ID - DynPinId
for the
UsbDpalias. - USB_
DP_ MODE - DynPinMode
for the
UsbDpalias.
Functions§
- i2c_
master - Convenience for setting up the labelled SDA, SCL pins to operate as an I2C master running at the specified frequency.
- qspi_
master - 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.
- spi_
master - Convenience for setting up the 2x3 header block for SPI. This powers up SERCOM7 and configures it for use as an SPI Master in SPI Mode 0.
- uart
- Convenience for setting up the labelled RX, TX pins to operate as a UART device running at the specified baud.
Type Aliases§
- FlashCs
- Alias for a configured
Pin - Flash
CsId PinIdfor theFlashCsalias- Flash
CsMode PinModefor theFlashCsalias- FlashD0
- Alias for a configured
Pin - Flash
D0Id PinIdfor theFlashD0alias- Flash
D0Mode PinModefor theFlashD0alias- FlashD1
- Alias for a configured
Pin - FlashD2
- Alias for a configured
Pin - FlashD3
- Alias for a configured
Pin - Flash
D1Id PinIdfor theFlashD1alias- Flash
D1Mode PinModefor theFlashD1alias- Flash
D2Id PinIdfor theFlashD2alias- Flash
D2Mode PinModefor theFlashD2alias- Flash
D3Id PinIdfor theFlashD3alias- Flash
D3Mode PinModefor theFlashD3alias- Flash
Sclk - Alias for a configured
Pin - Flash
Sclk Id PinIdfor theFlashSclkalias- Flash
Sclk Mode PinModefor theFlashSclkalias- I2c
- I2C master for the labelled I2C peripheral
- I2cPads
- I2C pads for the labelled I2C peripheral
- I2cSercom
- Alias for the
Sercom3peripheral - I2cSercom2
- Alias for the
Sercom6peripheral - Miso
- Alias for a configured
Pin - MisoId
PinIdfor theMisoalias- Miso
Mode PinModefor theMisoalias- Mosi
- Alias for a configured
Pin - MosiId
PinIdfor theMosialias- Mosi
Mode PinModefor theMosialias- RedLed
- Alias for a configured
Pin - RedLed
Id PinIdfor theRedLedalias- RedLed
Mode PinModefor theRedLedalias- Scl
- Alias for a configured
Pin - Scl1
- Alias for a configured
Pin - Scl1Id
PinIdfor theScl1alias- Scl1
Mode PinModefor theScl1alias- SclId
PinIdfor theSclalias- SclMode
PinModefor theSclalias- Sclk
- Alias for a configured
Pin - SclkId
PinIdfor theSclkalias- Sclk
Mode PinModefor theSclkalias- SdCard
Detect - Alias for a configured
Pin - SdCard
Detect Id PinIdfor theSdCardDetectalias- SdCard
Detect Mode PinModefor theSdCardDetectalias- SdCs
- Alias for a configured
Pin - SdCsId
PinIdfor theSdCsalias- SdCs
Mode PinModefor theSdCsalias- SdMiso
- Alias for a configured
Pin - SdMiso
Id PinIdfor theSdMisoalias- SdMiso
Mode PinModefor theSdMisoalias- SdMosi
- Alias for a configured
Pin - SdMosi
Id PinIdfor theSdMosialias- SdMosi
Mode PinModefor theSdMosialias- SdSclk
- Alias for a configured
Pin - SdSclk
Id PinIdfor theSdSclkalias- SdSclk
Mode PinModefor theSdSclkalias- Sda
- Alias for a configured
Pin - Sda1
- Alias for a configured
Pin - Sda1Id
PinIdfor theSda1alias- Sda1
Mode PinModefor theSda1alias- SdaId
PinIdfor theSdaalias- SdaMode
PinModefor theSdaalias- Spi
- SPI master for the labelled SPI peripheral
- SpiPads
- SPI pads for the labelled SPI peripheral
- SpiSercom
- Alias for the
Sercom7peripheral - Uart
- UART device for the labelled RX & TX pins
- Uart
Pads - UART Pads for the labelled UART peripheral
- UartRx
- Alias for a configured
Pin - UartRx1
- Alias for a configured
Pin - UartRx2
- Alias for a configured
Pin - UartRx3
- Alias for a configured
Pin - Uart
Rx1Id PinIdfor theUartRx1alias- Uart
Rx1Mode PinModefor theUartRx1alias- Uart
Rx2Id PinIdfor theUartRx2alias- Uart
Rx2Mode PinModefor theUartRx2alias- Uart
Rx3Id PinIdfor theUartRx3alias- Uart
Rx3Mode PinModefor theUartRx3alias- Uart
RxId PinIdfor theUartRxalias- Uart
RxMode PinModefor theUartRxalias- Uart
Sercom - Alias for the
Sercom0peripheral - Uart
Sercom2 - Alias for the
Sercom1peripheral - Uart
Sercom3 - Alias for the
Sercom5peripheral - UartTx
- Alias for a configured
Pin - UartTx1
- Alias for a configured
Pin - UartTx2
- Alias for a configured
Pin - UartTx3
- Alias for a configured
Pin - Uart
Tx1Id PinIdfor theUartTx1alias- Uart
Tx1Mode PinModefor theUartTx1alias- Uart
Tx2Id PinIdfor theUartTx2alias- Uart
Tx2Mode PinModefor theUartTx2alias- Uart
Tx3Id PinIdfor theUartTx3alias- Uart
Tx3Mode PinModefor theUartTx3alias- Uart
TxId PinIdfor theUartTxalias- Uart
TxMode PinModefor theUartTxalias- UsbDm
- Alias for a configured
Pin - UsbDmId
PinIdfor theUsbDmalias- UsbDm
Mode PinModefor theUsbDmalias- UsbDp
- Alias for a configured
Pin - UsbDpId
PinIdfor theUsbDpalias- UsbDp
Mode PinModefor theUsbDpalias