- 在CMakeLists.txt中添加SU-03T语音模块依赖。 - 在main.cpp中实现SU-03T接收回调函数,处理接收消息。 - 完善各UI源文件文档,包括动作、屏幕和字体,明确模块作用与数据流向。 - 更新主应用逻辑,初始化并启动SU-03T接收器。 - 修改过程中确保兼容性,保留原有接口。
30 lines
711 B
C
30 lines
711 B
C
/*
|
|
* 文件: components/sntp_time/include/sntp_time.h
|
|
* 角色: SNTP 对时与时间刷新
|
|
* 说明:
|
|
* - 本文件用于实现当前模块的核心功能或接口定义。
|
|
* - 修改前请先确认该模块与其它任务/外设之间的数据流关系。
|
|
* - 涉及协议与硬件时,优先保持现有接口兼容,避免联调回归。
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "esp_err.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief 初始化 SNTP 并等待首次对时完成
|
|
*
|
|
* @param timeout_ms 等待首次同步的超时时间(毫秒)
|
|
* @return esp_err_t ESP_OK 表示已完成同步
|
|
*/
|
|
esp_err_t sntp_timp_sync_time(uint32_t timeout_ms);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|