..\DRIVE\DS1302.C(126): warning C235: parameter 1: different types
void DS1302_GetTime(TIMESYS *TIME)//----TIMESYS是结构体别名
{
TIME->SEC=Read_1302(SEC);<----点击鼠标,指向这里
TIME->MIN=Read_1302(MIN);
TIME->HOUR=Read_1302(HOUR);
TIME->DAY=Read_1302(DAY);
TIME->DATE=Read_1302(DATE);
TIME->MONTH=Read_1302(MONTH);
TIME->YEAR=Read_1302(YEAR);
}
--------------------------------------------------------------------------
SEC 。。。YEAR都是结构体的unsigned char变量
--------------------------------------------------------------------------
请高手解答,在此谢谢了 |