#include "stm32f10x.h" // Device header #include "Delay.h" int main(void) { RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE); GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.GPIO_Mode=GPIO_Mode_Out_PP; GPIO_InitStructure.GPIO_Pin=GPIO_Pin_8; GPIO_InitStructure.GPIO_Speed=GPIO_Speed_50MHz; GPIO_Init(GPIOA,&GPIO_InitStructure); //GPIO_SetBits(GPIOA,GPIO_Pin_8); //GPIO_ResetBits(GPIOA,GPIO_Pin_8); GPIO_WriteBit(GPIOA,GPIO_Pin_8,Bit_RESET); while (1) { GPIO_WriteBit(GPIOA,GPIO_Pin_8,Bit_RESET); Delay_s(5); GPIO_WriteBit(GPIOA,GPIO_Pin_8,Bit_SET); Delay_s(5); } }