luat_soc_sdk_2024 V1.0
时钟接�(RTC)

函数

int luat_rtc_set (struct tm *tblock)
 è®¾ç½®ç³»ç»Ÿæ—¶é—´
 
int luat_rtc_get (struct tm *tblock)
 èŽ·å�–系统时间
 

详细�述

函数说明

◆ luat_rtc_get()

int luat_rtc_get ( struct tm * tblock)

获�系统时间

�数
tblock
返回
int =0�功,其他失败

◆ luat_rtc_set()

int luat_rtc_set ( struct tm * tblock)

设置系统时间

�数
tblock
返回
int =0�功,其他失败