问题记录:error: #268: declaration may not appear after executable statement in block

//编译代码错误
..\Sre\Input_Capture.c(29): error:  #268: declaration may not appear after executable statement in block
  		GPIO_InitTypeDef GPIO_InitStructure;
..\Sre\Input_Capture.c(36): error:  #268: declaration may not appear after executable statement in block
  	 NVIC_InitTypeDef NVIC_InitStructure;
..\Sre\Input_Capture.c(43): error:  #268: declaration may not appear after executable statement in block
  		TIM_ICInitTypeDef  TIM_ICInitStructure;  
..\Sre\Input_Capture.c: 1 warning, 3 errors

问题记录:error: #268: declaration may not appear after executable statement in block_第1张图片
问题记录:error: #268: declaration may not appear after executable statement in block_第2张图片

你可能感兴趣的:(单片机系列,嵌入式,蓝桥杯)