From 20d2b70ca1e03b6b7e53e2475a9d67ee072b3a5b Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 24 Nov 2020 22:26:41 +0100 Subject: [PATCH] msp432p401lp-cc256x: reserve 16 dma channel control structure (8 channels * 2 pri/alt) --- port/msp432p401lp-cc256x/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/port/msp432p401lp-cc256x/main.c b/port/msp432p401lp-cc256x/main.c index 8030691cf..c1746934b 100755 --- a/port/msp432p401lp-cc256x/main.c +++ b/port/msp432p401lp-cc256x/main.c @@ -170,10 +170,10 @@ void hal_led_toggle(void){ #include "hal_uart_dma.h" // DMA Control Table -// if not all channels are used, the alignment can be finer +// 8 channels are implemented => 16 channel control data structures (a 16 bytes) are needed // GCC -__attribute__ ((aligned (1024))) -static DMA_ControlTable MSP_EXP432P401RLP_DMAControlTable[32]; +__attribute__ ((aligned (256))) +static DMA_ControlTable MSP_EXP432P401RLP_DMAControlTable[16]; // RX Ping Pong Buffer - similar to circular buffer on other MCUs #define HAL_DMA_RX_BUFFER_SIZE 64