int main(void)
{
delay_init(); //延时函数初始化
JTAG_Set(JTAG_SWD_DISABLE);
JTAG_Set(SWD_ENABLE);
//设置NVIC中断分组2:2位抢占优先级,2位响应优先级
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
uart_init(9600);
LED_Init(); //初始化与LED连接的硬件接口
OLED_Init();
NRF24L01_Init();
Adc_Init();
KEY_EXTIX_Init();
TIM3_Int_Init(9999, 7199); //10Khz的计数频率,计数到5000为500ms
Detection_Hardware_Drive();//判断硬件状态
1