公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
君行健
Level 1
Level 1
5 replies posted 5 questions asked First question asked
#define IFX_INTERRUPT(isr, vectabNum, prio) void __interrupt(prio) __vector_table(vectabNum) isr(void)
0 点赞
14 回复数
海中水
Level 5
Level 5
750 replies posted 500 replies posted 250 replies posted
这个是定义中断函数在中断链表的序号的好定义。希望对你有所帮助。
0 点赞
君行健
Level 1
Level 1
5 replies posted 5 questions asked First question asked
你好,请问__vector_table(vectabNum) 中的vectabNum代表什么? 还有中断入口就是中断向量吗?这个代表什么?是优先级吗?
0 点赞
海中水
Level 5
Level 5
750 replies posted 500 replies posted 250 replies posted
vectabNum代表中断向量表中的序号,他和优先级还有点区别,第三个参数prio是优先级,中断向量里指向中断的入口。不过我的理解也不一定对。
0 点赞
User12775
Level 5
Level 5
First solution authored First like received
prio是优先级 vectabNum就是中断序号 isr是函数指针 这个写法就是为了你省事情而作的宏转意, 没有非常特别的意义
0 点赞
海中水
Level 5
Level 5
750 replies posted 500 replies posted 250 replies posted
楼主Automan解释的好像比我到位。
0 点赞
Motor_Controlle
Level 3
Level 3
50 replies posted 25 replies posted 10 replies posted
一个宏定义而已
0 点赞
118
Level 4
Level 4
应该是中断优先级的序号
0 点赞
118
Level 4
Level 4
学习了
0 点赞
imwxzwsam
Level 3
Level 3
50 replies posted 25 replies posted 10 replies posted
学习了
0 点赞
飞马
Level 5
Level 5
100 comments on blog 50 comments on blog 25 comments on blog
学习来的
0 点赞
meng0604010
Level 4
Level 4
50 replies posted 25 replies posted 10 replies posted
学习
0 点赞
天河之外
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted
学习了
0 点赞
JCET-GAO
Level 3
Level 3
Distributor - Jingchuan(GC)
100 comments on blog 50 comments on blog 25 comments on blog
学习
0 点赞
SIX_66
Level 6
Level 6
First comment on blog 500 replies posted 250 replies posted
学习学习
0 点赞