LPC2124 arm7 用mdk4.0 编写中断函数如何写?

[复制链接]
3950|2
 楼主| refresher 发表于 2010-12-27 12:05 | 显示全部楼层 |阅读模式
void IRQ_Eint1(void) __attribute__ ((interrupt));

void IRQ_Eint1(void)
{
。。。。


这样写的时候,出现警告:

warning: #1207-D attribute "interrupt" ignored.

所以中断无法进入中断函数。。如何写啊

裸奔的
diweo 发表于 2010-12-31 15:14 | 显示全部楼层
本帖最后由 diweo 于 2011-1-2 15:42 编辑

..
20070936 发表于 2011-1-1 22:35 | 显示全部楼层
向量地址寄存器VICVectAddr0-15保存向量IRQ slot 中断服务程序的地址
void __irq EINT1(void)   //名字任意取
{
  ...
}
...

VICVectAddr0=(unsigned long)EINT1;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

14

帖子

0

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