MAIN.C(47): warning C206: 'Write_DS1302': missing function-prototype MAIN.C(47): error C267: 'Write
voidSET_DS1302(){uchari;Write_DS1302(0x8E,0x00);//显示出错在这一行for(i=1;i<7;i++){Write_DS13...
void SET_DS1302()
{
uchar i;
Write_DS1302(0x8E,0x00); //显示出错在这一行
for(i=1;i<7;i++)
{
Write_DS1302(0x80+2*i,(DateTime[i]/10<<4)|(DateTime[i]%10));
}
Write_DS1302(0x8E,0x80);
请问具体该怎么改,我百度了下有人说在开头定义下write_ds1302,该怎么做? 展开
{
uchar i;
Write_DS1302(0x8E,0x00); //显示出错在这一行
for(i=1;i<7;i++)
{
Write_DS1302(0x80+2*i,(DateTime[i]/10<<4)|(DateTime[i]%10));
}
Write_DS1302(0x8E,0x80);
请问具体该怎么改,我百度了下有人说在开头定义下write_ds1302,该怎么做? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询