GPIO_InitTypeDef GPIO_InitStructure;这一句是GPIO的初始化结构体,
它对应的结构体是typedef struct
{
uint16_t GPIO_Pin; /*!< Specifies the GPIO pins to be configured.
This parameter can be any value of @ref GPIO_pins_define */
GPIOSpeed_TypeDef GPIO_Speed; /*!< Specifies the speed for the selected pins.
This parameter can be a value of @ref GPIOSpeed_TypeDef */
GPIOMode_TypeDef GPIO_Mode; /*!< Specifies the operating mode for the selected pins.
This parameter can be a value of @ref GPIOMode_TypeDef */
}GPIO_InitTypeDef;
最后大括号后面不应该是结构体变量名嘛,,也就是GPIO_InitStructure,为什么他是GPIO_InitTypeDef,
还是我哪里理解错了, |