#include "stm32f10x.h" #include "stm32f10x_conf.h" void GPIO_init(void); void Delay(uint32_t nCount); //PA0-LED void GPIO_init(void) { GPIO_InitTypeDef GPIO_InitStruct; /* Configure all unused GPIO port pins in Analog Input mode (floating input trigger OFF), this will reduce the power consumption and increase the device immunity against EMI/EMC *************************************************/ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOC | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE, ENABLE);