搜索
 找回密码
 立即注册

简单一步 , 微信登陆

MST779 系统默认时间的修改

作者:charles | 时间:2016-9-28 12:20:18 | 阅读:3913| 只看该作者
我们的系统默认时间不做更改的话,都是1980-1-6 00:00:00,如果需要在开机后将其改为其他值的话,可以参考如下代码:
//MApp_Init.c
void MApp_Init(void)
{
..............
    if ( msAPI_Power_Is1STBootUp() )
    {
        msAPI_Power_STBootUp();
       // Added by smc-steven, Init RTC when 1st boot up, 20100805
        MDrv_RTC_Init(MST_XTAL_CLOCK_HZ);
#ifdef ENABLE_BBY_DYNEX_SPEC //for BBY Dynex UI Spec/*Creass.liu at 2011-02-11*/
        msAPI_Timer_SetSystemTime(946368000);//946368000 = 2010-01-01 12:00 AM
#else //for BBY Insignia UI Spec
       msAPI_Timer_SetSystemTime(914832000);//914832000 = 2009-01-01 12:00 AM // Andyadd for BBY UI Spec,20101115
#endif

.............

}
上面这些数字可以通过UI设置好+打印信息得出。

收藏
收藏0
分享
分享
点赞
点赞0
反对
反对0
该会员没有填写今日想说内容.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册
手机版