void NVIC_Configuration(void)
{
NVIC_InitTypeDef NVIC_InitStructure;
/* Enable the TIM3 global Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = TIM4_IRQChannel;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
}
这段函数直接用寄存器操作编程该如何写呢?查了半天资料,只晓得跟SCB->AIRCR、NVIC->IPR以及NVIC->ISER这几个寄存器有关,具体怎么写呢,有没有高手提点一下,谢啦 |