删除RTC,改用TIM进行非中断定时时间戳

This commit is contained in:
不吃油炸鸡
2026-02-02 10:37:50 +08:00
parent 68d900e3ea
commit 508718358a
22 changed files with 25405 additions and 35195 deletions

View File

@@ -6,8 +6,8 @@
#include "tim.h"
#include "stm32f4xx_it.h"
#include "adc.h"
#include "rtc.h"
#include "i2c.h"
// user
#include "user_TasksInit.h"
@@ -96,8 +96,8 @@ void HardwareInitTask(void *argument)
// lcd
// done in lvgl disp init
// rtc
SetReferenceTime();
// tim5 for elapsed time (us)
HAL_TIM_Base_Start(&htim5);
// ui
// LVGL and disp init