| 
 5530| 3
 | 在中断实验中,遇到如下函数定义,没能看明白,麻烦解释一下。谢谢 | 
| 
1金钱 
 最佳答案结构体定义:函数指针(用来指向中断服务子程序)对应的参数(用来存放传递给中断的参数,一般为空但是也可以给中断传递参数进去)
定义了一个中断向量表(结构体数组):static sys_irq_handle_t irqTable[NUMBER_OF_INT_VECTORS];
要用中断时先用中断号和中断服务子程序去注册,也就是对结构体数组赋值(对应中断号为结构体数组下标)
中断发生后再start.s中会调用system_irqhandler同时将中断号放在R0寄存器中传递给system_irqha ... | ||
| 
 | ||
| He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you. 过于执着就会陷入其中,迷失自己,困住自己。 | ||
| 
 | ||
| 
 | ||
| 森罗万象 | ||
	
	 
 
 /1
 /1  
 |手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-11-1 07:06
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网