请问STM32F0总中断开关是那个,怎么设置?

[复制链接]
 楼主| a105 发表于 2013-1-26 12:07 | 显示全部楼层 |阅读模式
zlutian 发表于 2014-4-9 15:14 | 显示全部楼层
我也有这个疑问,希望大侠解答啊
hugo0chen 发表于 2017-2-7 15:27 | 显示全部楼层
__enable_irq();  开
__disable_irq();关
对应的源文,在core_cmFunc.h中
/** \brief  Enable IRQ Interrupts

  This function enables IRQ interrupts by clearing the I-bit in the CPSR.
  Can only be executed in Privileged modes.
*/
__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void)
{
  __ASM volatile ("cpsie i" : : : "memory");
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

7

主题

12

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

7

主题

12

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部