文章目录 1. bsp_led.h 2.bsp_led.c 3. main.c 1. bsp_led.h #ifndef _BSP_LED_H #define _BSP_LED_H #include "stm32f10x.h" #define LED_G_GPIO_PIN GPIO_Pin_0 #define LED_G_GPIO_PORT GPIOB #define LED_G_GPIO_CLK RCC_APB2Periph_GPIOB #define ON 1 #