本帖最后由 IFW 于 2022-3-3 20:02 编辑
Keil5出现expected a"{" 怎么解决?代码里有{
#ifndef _BSP_KEY_H
#define _BSP_KEY_H
#include "stm32f10x.h"
#define KEY_ON 1
#define KEY_OFF 0
#define KEY1_GPIO_PIN GPIO_Pin_0
#define KEY1_GPIO_PORT GPIOA
#define KEY1_GPIO_CLK RCC_APB2Periph_GPIOA
void KEY_GPIO_Config(void);
uint8_t Key_Scan(GPIO_TypeDef *GPIOx,uint16_t GPIO_Pin);
#endif /*_BSP_KEY_H */
|