cm0中断优先级

在这里插入图片描述
英文原版:Each priority field holds a priority value, 0-192. Thelower the value, the greater the priority of thecorresponding interrupt. The processor implementsonly bits[7:6] of each field, bits [5:0] read as zeroand ignore writes. This means writing 255 to apriority register saves value 192 to the register.
意思是IPR这个32位的寄存器,有4个中断的优先级,但是8位中只有高2位[7:6]代表优先级,及2bit能代表的0~4,剩余的[5:0]都是0。
在这里插入图片描述
hal库中是下面这样的
在这里插入图片描述
及cm0这个arm的内核不支持次优先级,且抢占优先级能设置的为0~4,符合手册里的描述。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值