intmain(void){floatresult=0;delay_init();//延时函数初始化NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//设置NVIC中缀分组2:2位抢占优先级,2位响应优先级uart_init(115200);//串口初始化为115200LED_Init();//LED端口初始化KEY_Init();//初始化与按键连接的硬件接口NVIC_Configuration();GPIO_Configuration();TIM_Configuration();while(1){result=Sensor_using();}}
1