根据函数注释,返回时间参数,就可以了
[mw_shl_code=c,true]//获得时间
//User defined function to give a current time to fatfs module */
//31-25: Year(0-127 org.1980), 24-21: Month(1-12), 20-16: Day(1-31) */
//15-11: Hour(0-23), 10-5: Minute(0-59), 4-0: Second(0-29 *2) */
DWORD get_fattime (void)
{
return 0;
}[/mw_shl_code]
[mw_shl_code=c,true]//获得时间 //User defined function to give a current time to fatfs module */ //31-25: Year(0-127 org.1980), 24-21: Month(1-12), 20-16: Day(1-31) */ //15-11: Hour(0-23), 10-5: Minute(0-59), 4-0: Second(0-29 *2) */ DWORD get_fattime (void) { return 0; }[/mw_shl_code]
---------------------------------
哦,这样啊,TimeValue.year 这些就是从8563里面获得的吧?这个是全局的是吗?
---------------------------------
时间日期结构体数据
http://www.openedv.com/posts/list/32492.htm这个帖子有底层驱动函数
---------------------------------
恩,好的,谢谢了,我回头看看。现在要整UC/OS下的看门狗了,等整完了,回来再看。
一周热门 更多>