typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus; 这句话意思就是给enum {RESET = 0, SET = !RESET}起了别名:FlagStatus和ITStatus 在这之后出现的 FlagStatus和ITStatus 你可以视为 enum {RESET = 0, SET = !RESET} 这样做目的...
bitactiion就是一个枚举类型的变量,表示这个位是高电平还是低电平。 在库文件stm32f10x_gpio中,有说: typedef enum { Bit_RESET = 0, Bit_SET }...
typedef enum { Bit_RESET = 0, Bit_SET }BitAction;stm32f10x_gpio.c里的原函数: void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitActi...