OpenEdv-开源电子网

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

关于__disable_irq关中断

[复制链接]

3

主题

10

帖子

0

精华

初级会员

Rank: 2

积分
54
金钱
54
注册时间
2018-2-22
在线时间
9 小时
发表于 2019-4-15 21:12:00 | 显示全部楼层 |阅读模式
5金钱
cmsis_armcc.h中下面代码被注释掉了,不能用__disable_irq();关中断么?
Can only be executed in Privileged modes. 特权模式是什么模式呢?哪位大神指导一下?

[mw_shl_code=c,true]/**
  \brief   Enable IRQ Interrupts
  \details Enables IRQ interrupts by clearing the I-bit in the CPSR.
           Can only be executed in Privileged modes.
*/
/* intrinsic void __enable_irq();     */


/**
  \brief   Disable IRQ Interrupts
  \details Disables IRQ interrupts by setting the I-bit in the CPSR.
           Can only be executed in Privileged modes.
*/
/* intrinsic void __disable_irq();    */[/mw_shl_code]

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165536
金钱
165536
注册时间
2010-12-1
在线时间
2117 小时
发表于 2019-4-16 02:25:03 | 显示全部楼层
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-6-10 13:37

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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