💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
打开hal\_rtc.h文件,接口列表如下: * 驱动程序初始化: ``` void hal_rtc_init(void); ``` * 设置时间: ``` int hal_rtc_set(const hal_rtc_datatime_t *value); ``` * 获取当前RTC中的时间(精确到秒): ``` const hal_rtc_datatime_t* hal_rtc_get(void); ``` * 获取当前RTC中的子秒(毫米,0~999): ``` uint16_t hal_rtc_get_subsecond(void); ``` * 设置闹钟唤醒回调函数: ``` void hal_rtc_alarm_set_callback(void (*on_timeout)(void)); ``` * 启动闹钟 ``` int hal_rtc_start_alarm(uint16_t time); ``` <br/>