From 9daaaf25a5f2c0c0a82f363ce54424f582c87c4e Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Tue, 16 Jun 2020 09:44:51 +0200 Subject: [PATCH] sodaq-sara-sff: Add DMA config to SPI peripheral --- boards/sodaq-sara-sff/include/periph_conf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/sodaq-sara-sff/include/periph_conf.h b/boards/sodaq-sara-sff/include/periph_conf.h index 16bcb7099f..b0293795ca 100644 --- a/boards/sodaq-sara-sff/include/periph_conf.h +++ b/boards/sodaq-sara-sff/include/periph_conf.h @@ -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 } };