1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sodaq-sara-sff: Add DMA config to SPI peripheral

This commit is contained in:
Koen Zandberg 2020-06-16 09:44:51 +02:00
parent 01a6044400
commit 9daaaf25a5
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -127,6 +127,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 = SERCOM0_DMAC_ID_TX,
.rx_trigger = SERCOM0_DMAC_ID_RX,
#endif
}
};