1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

serpente: add DMA triggers to spi config

This commit is contained in:
Koen Zandberg 2020-06-11 21:01:44 +02:00
parent 8df94ecf18
commit 1b29268584
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -164,6 +164,10 @@ static const spi_conf_t spi_config[] = {
.miso_pad = SPI_PAD_MISO_2,
.mosi_pad = SPI_PAD_MOSI_0_SCK_1,
.gclk_src = SAM0_GCLK_MAIN,
#ifdef MODULE_PERIPH_DMA
.tx_trigger = SERCOM1_DMAC_ID_TX,
.rx_trigger = SERCOM1_DMAC_ID_RX,
#endif
},
{ /* D0 … D2 (user pins) */
.dev = &SERCOM0->SPI,
@ -176,6 +180,10 @@ static const spi_conf_t spi_config[] = {
.miso_pad = SPI_PAD_MISO_2,
.mosi_pad = SPI_PAD_MOSI_0_SCK_1,
.gclk_src = SAM0_GCLK_MAIN,
#ifdef MODULE_PERIPH_DMA
.tx_trigger = SERCOM0_DMAC_ID_TX,
.rx_trigger = SERCOM0_DMAC_ID_RX,
#endif
},
};