出错代码:
#ifndef __ADCDRV2_H__
#define __ADCDRV2_H__
#define NUMSAMP 80 // NUMSAMP<1024
// External Functions
extern unsigned int flag_DMA0;
extern unsigned int BufferA[NUMSAMP] __attribute__((space(dma)));
extern unsigned int BufferB[NUMSAMP] __attribute__((space(dma)));
extern void initAdc1(void);
extern void __attribute__((__interrupt__)) _DMA0Interrupt(void);
extern unsigned int ProcessADCSamples(unsigned int *AdcBuffer);
#endif
错误提示:
DRIVER\ADCDRV2.H(58): error C129: missing ';' before '__attribute__' |