学习STM32笔记1 NVIC设置
/*******************************************************************************
设置 嵌套向量中断控制器
*******************************************************************************/
void NVIC_Configuration(void)
{
#ifdef VECT_TAB_RAM
/* Set the Vector Table base location at 0x20000000 */
NVIC_SetVectorTable(NVIC_VectTab_RAM, 0x0);
#else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
#endif
}
/*
NVIC_SetVectorTable 设置向量表的位置和偏移
NVIC_ VectTab 描述
NVIC_VectTab_FLASH 向量表位于FLASH
NVIC_VectTab_RAM 向量表位于RAM 用于设置各种中断的优先级、与向量表的地址等等
*/