1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:52:44 +01:00

boards/samr30-xpro: add SPI dev for ext pin header

This commit is contained in:
Juergen Fitschen 2020-05-22 14:24:40 +02:00
parent ee0a254a21
commit a1b3a80985

View File

@ -96,6 +96,18 @@ static const spi_conf_t spi_config[] = {
.miso_pad = SPI_PAD_MISO_0, .miso_pad = SPI_PAD_MISO_0,
.mosi_pad = SPI_PAD_MOSI_2_SCK_3, .mosi_pad = SPI_PAD_MOSI_2_SCK_3,
.gclk_src = SAM0_GCLK_MAIN, .gclk_src = SAM0_GCLK_MAIN,
},
{ /* EXT1 & EXT3 Pin Header */
.dev = &(SERCOM5->SPI),
.miso_pin = GPIO_PIN(PB, 2),
.mosi_pin = GPIO_PIN(PB, 22),
.clk_pin = GPIO_PIN(PB, 23),
.miso_mux = GPIO_MUX_D,
.mosi_mux = GPIO_MUX_D,
.clk_mux = GPIO_MUX_D,
.miso_pad = SPI_PAD_MISO_0,
.mosi_pad = SPI_PAD_MOSI_2_SCK_3,
.gclk_src = SAM0_GCLK_MAIN,
} }
}; };