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

ww_iceberg ww_iceberg 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
说说以下程序的意思
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)();
}
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
ww_iceberg
其他硬件开发 2,432 成员 4,281 内容