feat: 添加RTC管理模块并集成SNTP时间同步功能

实现RTC时间管理功能,支持通过SNTP自动同步网络时间并持久化存储
提供时间来源追踪和掉电保持功能,优化LCD显示的时间更新机制
This commit is contained in:
2026-02-24 01:06:41 +08:00
parent 43a5042c9e
commit addfb3faad
9 changed files with 798 additions and 50 deletions

View File

@@ -74,7 +74,6 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle)
GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
/* I2C1 clock enable */