OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 3508|回复: 1

STM8 中断优先级怎么设置的?

[复制链接]

36

主题

98

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
230
金钱
230
注册时间
2016-3-26
在线时间
83 小时
发表于 2017-5-20 14:48:05 | 显示全部楼层 |阅读模式
20金钱

STM8 中断优先级怎么设置的?



最佳答案

查看完整内容[请看2#楼]

/** * @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 ...
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

36

主题

98

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
230
金钱
230
注册时间
2016-3-26
在线时间
83 小时
 楼主| 发表于 2017-5-20 14:48:06 | 显示全部楼层
本帖最后由 li13158 于 2017-5-20 16:01 编辑

/**  * @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)



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-9-27 06:44

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表