|
STM8L 中,中断优先级通过下面函数设置,但此处仅 ITC_PriorityLevel_1,ITC_PriorityLevel_2,ITC_PriorityLevel_3 总共才3个中断优先级可设置,若我超过3个中断,该怎么设置? /** * @brief Sets the software priority of the specified interrupt source. * @note The modification of the software priority is only possible when * the interrupts are disabled. * @note The normal behavior is to disable the interrupt before calling * this function, and re-enable it after. * @note The priority level 0 cannot be set (see product specification * for more details). * @param IRQn : Specifies the peripheral interrupt source. * @param ITC_PriorityLevel : Specifies the software priority value to set * This parameter can be one of the following values: * @arg ITC_PriorityLevel_0: Software priority level 0 (cannot be written) * @arg ITC_PriorityLevel_1: Software priority level 1 * @arg ITC_PriorityLevel_2: Software priority level 2 * @arg ITC_PriorityLevel_3: Software priority level 3 * @retval None */ void ITC_SetSoftwarePriority(IRQn_TypeDef IRQn, ITC_PriorityLevel_TypeDef ITC_PriorityLevel) { } |
STM8S103飞线外接芯片,I2C不能得到slaveAddress应答,通讯失败。
测试标签123
IAR FOR ARM和IAR FOR STM8无法共存,
STM8L052,液晶内部电源怎么用?
STM8S105C6T6 UART2串口,能接收数据,不能发送数据
STM8S105K4 串口2 无奇偶校验,也能接收 偶校验的 数据
在STM8S的IAP使用中断和APP使用中断问题
STM8L151 SMBUS设计
STM8S103F复位异常
STM8L的LCD调试时不亮
微信公众号
手机版
所以,这么几个优先级就够了。
优先级的含义是,可以打断低优先级的中断。实际上不允许你嵌套太多的中断。非常费堆栈。