新手上路
- 积分
- 28
- 金钱
- 28
- 注册时间
- 2016-5-24
- 在线时间
- 1 小时
|

楼主 |
发表于 2016-5-24 09:44:45
|
显示全部楼层
/** \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");
}
/** \brief Disable IRQ Interrupts
This function disables IRQ interrupts by setting the I-bit in the CPSR.
Can only be executed in Privileged modes.
*/
__attribute__( ( always_inline ) ) static __INLINE void __disable_irq(void)
{
__ASM volatile ("cpsid i");
} | 这个是core_cmFunc.h文件里面描述的 |
|