发现keil一直有个错误

stm32f10x_gpio.c(3): error:  #130: expected a "{"
  void GPIO_SetBits(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
stm32f10x_gpio.c(7): error:  #247: function "GPIO_RestBits" has already been defined
  void GPIO_RestBits(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin )

 反复调试过几次,原因如下:

.h头文件中,

void GPIO_RestBits(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)

 未加“;”

更多推荐

stm32f10x_gpio.c(3): error: #130: expected a “{“