From fc9fc5c0573dc6af87b8e2bde8dfa80910b9be5a Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Fri, 30 Apr 2021 09:16:47 +0200 Subject: [PATCH] cpu/stm32/periph/spi: fix wrong parameter order --- cpu/stm32/periph/spi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/stm32/periph/spi.c b/cpu/stm32/periph/spi.c index 8491755394..1b083c66e4 100644 --- a/cpu/stm32/periph/spi.c +++ b/cpu/stm32/periph/spi.c @@ -237,16 +237,16 @@ int spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk) spi_config[bus].tx_dma_chan, (uint32_t*)&(dev(bus)->DR), DMA_MEM_TO_PERIPH, - 0, - DMA_DATA_WIDTH_BYTE); + DMA_DATA_WIDTH_BYTE, + 0); dma_acquire(spi_config[bus].rx_dma); dma_setup(spi_config[bus].rx_dma, spi_config[bus].rx_dma_chan, (uint32_t*)&(dev(bus)->DR), DMA_PERIPH_TO_MEM, - 0, - DMA_DATA_WIDTH_BYTE); + DMA_DATA_WIDTH_BYTE, + 0); } #endif dev(bus)->CR1 = cr1_settings;