From 01a6044400273570fba79b8be7f3288dba76518d Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Tue, 16 Jun 2020 09:44:14 +0200 Subject: [PATCH] boards/sodaq: Add DMA to common SPI config --- boards/common/sodaq/include/cfg_spi_default.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/common/sodaq/include/cfg_spi_default.h b/boards/common/sodaq/include/cfg_spi_default.h index 5deebd8188..b0d2dcc05d 100644 --- a/boards/common/sodaq/include/cfg_spi_default.h +++ b/boards/common/sodaq/include/cfg_spi_default.h @@ -44,6 +44,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 = SERCOM3_DMAC_ID_TX, + .rx_trigger = SERCOM3_DMAC_ID_RX, +#endif }, };