Write an LED blink using the standard library version

1. Create a new project in STM32CubeMX, select STM32F103VCT6 as the target device, and configure the required pin and clock settings. Set the GPIO pins needed for LED connection to output mode.

2. After generating the code, open the project directory and create a new main.c file in the Src folder.

3. Write the following code in the main.c file:

#include "stm32f10x.h"

void GPIO_Init(void);
void SysTick_Init(void);

int m

Guess you like

Origin blog.csdn.net/qq_38689263/article/details/132032593