编译一段代码,总是提示如下错误

[复制链接]
710|1
 楼主| 快笨死了 发表于 2017-8-9 09:06 | 显示全部楼层 |阅读模式
出错代码:
#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__'
dirtwillfly 发表于 2017-8-9 10:02 | 显示全部楼层
你用的什么IDE,什么单片机?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

19

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部