问题记录:エラー:#268:ブロック内の実行可能ステートメントの後に宣言が表示されない場合があります

//编译代码错误
..\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

ここに画像の説明を挿入
ここに画像の説明を挿入

おすすめ

転載: blog.csdn.net/Eterlove/article/details/123953146