Skip to content
Snippets Groups Projects
Commit 9daf3c74 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

boards/iotlab-m3: disable DMA with SPI

parent 209d90bc
No related branches found
No related tags found
No related merge requests found
...@@ -74,16 +74,12 @@ extern "C" { ...@@ -74,16 +74,12 @@ extern "C" {
*/ */
#ifdef MODULE_PERIPH_DMA #ifdef MODULE_PERIPH_DMA
static const dma_conf_t dma_config[] = { static const dma_conf_t dma_config[] = {
{ .stream = 1 }, /* DMA1 Channel 2 - SPI1_RX */
{ .stream = 2 }, /* DMA1 Channel 3 - SPI1_TX */
{ .stream = 3 }, /* DMA1 Channel 4 - USART1_TX */ { .stream = 3 }, /* DMA1 Channel 4 - USART1_TX */
{ .stream = 5 }, /* DMA1 Channel 6 - USART2_TX */ { .stream = 5 }, /* DMA1 Channel 6 - USART2_TX */
}; };
#define DMA_0_ISR isr_dma1_channel2 #define DMA_0_ISR isr_dma1_channel4
#define DMA_1_ISR isr_dma1_channel3 #define DMA_1_ISR isr_dma1_channel6
#define DMA_2_ISR isr_dma1_channel4
#define DMA_3_ISR isr_dma1_channel6
#define DMA_NUMOF (sizeof(dma_config) / sizeof(dma_config[0])) #define DMA_NUMOF (sizeof(dma_config) / sizeof(dma_config[0]))
#endif #endif
...@@ -129,7 +125,7 @@ static const uart_conf_t uart_config[] = { ...@@ -129,7 +125,7 @@ static const uart_conf_t uart_config[] = {
.bus = APB2, .bus = APB2,
.irqn = USART1_IRQn, .irqn = USART1_IRQn,
#ifdef MODULE_PERIPH_DMA #ifdef MODULE_PERIPH_DMA
.dma = 2, .dma = 0,
.dma_chan = 2 .dma_chan = 2
#endif #endif
}, },
...@@ -141,7 +137,7 @@ static const uart_conf_t uart_config[] = { ...@@ -141,7 +137,7 @@ static const uart_conf_t uart_config[] = {
.bus = APB1, .bus = APB1,
.irqn = USART2_IRQn, .irqn = USART2_IRQn,
#ifdef MODULE_PERIPH_DMA #ifdef MODULE_PERIPH_DMA
.dma = 3, .dma = 1,
.dma_chan = 2 .dma_chan = 2
#endif #endif
} }
......
...@@ -41,9 +41,9 @@ static const spi_conf_t spi_config[] = { ...@@ -41,9 +41,9 @@ static const spi_conf_t spi_config[] = {
.rccmask = RCC_APB2ENR_SPI1EN, .rccmask = RCC_APB2ENR_SPI1EN,
.apbbus = APB2, .apbbus = APB2,
#ifdef MODULE_PERIPH_DMA #ifdef MODULE_PERIPH_DMA
.tx_dma = 1, .tx_dma = DMA_STREAM_UNDEF,
.tx_dma_chan = 1, .tx_dma_chan = 1,
.rx_dma = 0, .rx_dma = DMA_STREAM_UNDEF,
.rx_dma_chan = 1, .rx_dma_chan = 1,
#endif #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment