求求各位大哥帮帮忙啊..急(1)

ww_iceberg 2007-06-24 05:39:15
说说以下程序的意思
void IsrIRQ( )
{
int count = 0;
unsigned int isr_pending;
unsigned int isr_mask = 0x00000001;
unsigned int isr_mask_set = rINTMSK; /* 读取中断掩码 */
ISR_ROUTINE_ENTRY isr_routine_entry = (ISR_ROUTINE_ENTRY)0x0;
isr_pending = (rINTPND & ~isr_mask_set); /* 读取中断状态 */
/* 查表 */
while(isr_mask)
{
if(isr_pending&isr_mask)
{
/* 找到中断源,获取中断例程入口地址 */
isr_routine_entry = (ISR_ROUTINE_ENTRY)(*(int*)(HandleADC+count));
break;
}
count+=4;
isr_mask <<= 1;
}
/* 调用中断服务例程 */
if(isr_routine_entry) (*isr_routine_entry)();
}
...全文
160 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ww_iceberg 2007-06-24
  • 打赏
  • 举报
回复
。。。就是不知道啊,不过是嵌入式系统里面的东西
pilixuanke 2007-06-24
  • 打赏
  • 举报
回复
中断向量表?

2,425

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 其他硬件开发
社区管理员
  • 其他硬件开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧