mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
samd21-xpro: add DMA triggers to spi config
This commit is contained in:
parent
9a3a5fc343
commit
fc302edc6f
@ -256,6 +256,10 @@ 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,
|
||||||
|
#ifdef MODULE_PERIPH_DMA
|
||||||
|
.tx_trigger = SERCOM0_DMAC_ID_TX,
|
||||||
|
.rx_trigger = SERCOM0_DMAC_ID_RX,
|
||||||
|
#endif
|
||||||
},
|
},
|
||||||
{ /* EXT2 */
|
{ /* EXT2 */
|
||||||
.dev = &SERCOM1->SPI,
|
.dev = &SERCOM1->SPI,
|
||||||
@ -268,6 +272,10 @@ 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,
|
||||||
|
#ifdef MODULE_PERIPH_DMA
|
||||||
|
.tx_trigger = SERCOM1_DMAC_ID_TX,
|
||||||
|
.rx_trigger = SERCOM1_DMAC_ID_RX,
|
||||||
|
#endif
|
||||||
},
|
},
|
||||||
{ /* EXT3 */
|
{ /* EXT3 */
|
||||||
.dev = &SERCOM5->SPI,
|
.dev = &SERCOM5->SPI,
|
||||||
@ -280,6 +288,10 @@ 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,
|
||||||
|
#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