GeekIMU/2.Firmware/STM32/Firmware/system/sys/sys.c

12 lines
301 B
C
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#include "sys.h"
#include "stm32f10x_rcc.h"
#include "misc.h"
void NVIC_Configuration(void)
{
// 开启外设的时钟
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB, ENABLE);
//设置NVIC中断分组2:2位抢占优先级2位响应优先级
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
}