IntPriorityGroupingSet
IntPrioritySet
如何使用?
我是否可以更改启动代码中的 中断顺序来改变其优先级??
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.
如果中断的优先级设置为同一优先级,或者使用默认的优先级,则优先级顺序是按照启动代码的顺序。
可以使用IntPrioritySet设置优先级,设置的数字越小优先级越高。
一般情况下,需要实时处理的中断设置高优先级;中断服务程序要建议写得尽量短,高效。