mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
samr21-xpro: Add DMA config for SPI peripherals
This commit is contained in:
parent
60f4502e6c
commit
5c3dad733d
@ -230,6 +230,10 @@ static const spi_conf_t spi_config[] = {
|
||||
.miso_pad = SPI_PAD_MISO_0,
|
||||
.mosi_pad = SPI_PAD_MOSI_2_SCK_3,
|
||||
.gclk_src = SAM0_GCLK_MAIN,
|
||||
#ifdef MODULE_PERIPH_DMA
|
||||
.tx_trigger = SERCOM4_DMAC_ID_TX,
|
||||
.rx_trigger = SERCOM4_DMAC_ID_RX,
|
||||
#endif
|
||||
},
|
||||
{
|
||||
.dev = &SERCOM5->SPI,
|
||||
@ -242,6 +246,10 @@ static const spi_conf_t spi_config[] = {
|
||||
.miso_pad = SPI_PAD_MISO_0,
|
||||
.mosi_pad = SPI_PAD_MOSI_2_SCK_3,
|
||||
.gclk_src = SAM0_GCLK_MAIN,
|
||||
#ifdef MODULE_PERIPH_DMA
|
||||
.tx_trigger = SERCOM5_DMAC_ID_TX,
|
||||
.rx_trigger = SERCOM5_DMAC_ID_RX,
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user