The purpose of the experiment: use SysTick to generate a time base of 1s, and the LED flashes at a frequency of 1s.
Programming Essentials
1. Set the value of the reload register
2. Clear the value of the current value register
3. Configuration control and status registers
Process
We created two files: bsp_SysTick.c and bsp_SysTick.h files are used to store the SysTick driver and related macro definitions, and the interrupt service function is placed in the stm32f10x_it.h file.