为什么加入下面内容,程序就进入了void HardFault_Handler(void)

2019-07-14 22:40发布

/*定时器4中断配置*/  NVIC_InitTypeDef NVIC_InitStructure;

  NVIC_PriorityGroupConfig(NVIC_PriorityGroup_3);

NVIC_InitStructure.NVIC_IRQChannel = tiM4_IRQn;
  NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
  NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1;
  NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
  NVIC_Init(&NVIC_InitStructure);


0条回答

一周热门 更多>