I try to compile this model but it doesn't work.
It writes the following message in the command window.
Code: Select all
dsPIC_DMA_Buffers.c:3: error: syntax error before 'ADCBuffChannelDMA'
dsPIC_DMA_Buffers.c:3: warning: data definition has no type or storage class
gmake: *** [dsPIC_DMA_Buffers.o] Error 255
Code: Select all
//dsPIC_DMA_Buffers.c
#include "p33fxxxx.h"
volatile uint16_T ADCBuffChannelDMA[(2)] __attribute__((space(dma),aligned(256)));
Code: Select all
//test_ADC_private.h
extern volatile uint16_T ADCBuffChannelDMA[(2)] __attribute__((space(dma),aligned(256)));
Thanks for your help!
Michael
PS : I use the dsPIC33FJ128GP802 chip.