打印

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

[复制链接]
541|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

粉丝