4322| 4
|
NVIC_PriorityGroupConfig的问题 |
10金钱
最佳答案在NVIC初始化函数中,是根据之前设置优先级分组先计算掩码,然后用掩码和输入参数一起来运算得到优先级参数。比如你把中断配置为分组1 ,这样Init函数内部就会通过位移运算。只取NVIC_IRQChannelPreemptionPriority 的最低位
和NVIC_IRQChannelSubPriority 的低3位。也就是说你这个函数可以正常运行但抢占优先级不是2而是0。
| ||
| ||
| ||
| ||
| ||
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.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
|手机版|OpenEdv-开源电子网
( 粤ICP备12000418号-1 )
GMT+8, 2025-6-18 05:57
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网