This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

controlsuite例程问题



HVPM_Sensored还有HVBLDC_Sensored历程中,在DeviceInit();中,有如下函数

这与其他通用例程的 InitPieVectTable();函数不太一样,如

请问是什么意思,有区别吗,互换可以吗

  • 这两段程序的作用都是给中断向量表赋一个初始值。用户后面再把需要的中断向量指向自定义的中断处理程序

    第一个程序中把所有中断向量的默认值都指向了ISR_ILLEGAL。

    第二个把中断向量的默认值指向了defualt_ISR.c中定义的中断向量。