From 01a6044400273570fba79b8be7f3288dba76518d Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Tue, 16 Jun 2020 09:44:14 +0200 Subject: [PATCH 1/2] 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 }, }; From 9daaaf25a5f2c0c0a82f363ce54424f582c87c4e Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Tue, 16 Jun 2020 09:44:51 +0200 Subject: [PATCH 2/2] 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 } };