GPIO_InitStructure0.GPIO_Pin = LED0_GPIO_PIN; /*设置引脚模式为通用推挽输出*/ GPIO_InitStructure0.GPIO_Mode = GPIO_Mode_Out_PP; /*设置引脚速率为50MHz */ GPIO_InitStructure0.GPIO_Speed = GPIO_Speed_50MHz; /*调用库函数,初始化GPIO*/ GPIO_Init(LED0_GPIO_PORT, &GPIO_InitStructure0); } ...