基础实验-Systick时钟计时实验
实验目的:掌握systick时钟计时的方法。
实验现象:LD5指示灯以1s时间间隔闪烁。
一、实验代码
int main(void)
{
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();