heshiminmang 发表于 2016-11-19 16:55:35

STM32F030 HAL库怎么关总中断?

STM32F030 HAL库怎么关总中断?

大林林 发表于 2017-1-12 16:13:07

尝试下下面这个函数


/**
* @briefDisables a device specific interrupt in the NVIC interrupt controller.
* @paramIRQn External interrupt number.
*         This parameter can be an enumerator of IRQn_Type enumeration
*         (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h))
* @retval None
*/
void HAL_NVIC_DisableIRQ(IRQn_Type IRQn)
{
/* Check the parameters */
assert_param(IS_NVIC_DEVICE_IRQ(IRQn));

/* Disable interrupt */
NVIC_DisableIRQ(IRQn);
}

大林林 发表于 2017-1-12 16:14:06

大林林 发表于 2017-1-12 16:13
尝试下下面这个函数




不是同一个芯片,但是应该基础函数都有的

ewall 发表于 2017-7-30 14:29:24

ARM内核函数 __disable_irq();

any012 发表于 2018-12-10 12:02:14

大林林 发表于 2017-1-12 16:13
尝试下下面这个函数




这个不是关总中断吧?而是关闭某个中断。
页: [1]
查看完整版本: STM32F030 HAL库怎么关总中断?