#ifndef _REAL_TIMER_DS1302
#define _REAL_TIMER_DS1302
sbit DS1302_CLK = P3^1; //实时时钟时钟线引脚
sbit DS1302_IO = P3^2; //实时时钟数据线引脚
sbit DS1302_RST = P3^0; //实时时钟复位线引脚
sbit ACC0 = ACC^0;
sbit ACC7 = ACC^7;
typedef struct_SYSTEMTIME
{
unsigned char Second;
unsigned char Minute;
unsigned char Hour;
unsigned char Day;
unsigned char Month;
unsigned char Year;
unsigned char DateString[9];
unsigned char TimeString[9];
}SYSTEMTIME;
DS1302.H(12): error C129: missing ';' before '{'
答案:2 悬赏:0 手机版
解决时间 2021-02-27 18:45
- 提问者网友:心如荒岛囚我终老
- 2021-02-27 13:36
最佳答案
- 五星知识达人网友:傲气稳了全场
- 2021-02-27 13:51
typedef struct _SYSTEMTIME //问题在这,将struct和_SYSTEMTIME之间架一个空格
{
unsigned char Second;
unsigned char Minute;
unsigned char Hour;
unsigned char Day;
unsigned char Month;
unsigned char Year;
unsigned char DateString[9];
unsigned char TimeString[9];
}SYSTEMTIME;
{
unsigned char Second;
unsigned char Minute;
unsigned char Hour;
unsigned char Day;
unsigned char Month;
unsigned char Year;
unsigned char DateString[9];
unsigned char TimeString[9];
}SYSTEMTIME;
全部回答
- 1楼网友:迷人又混蛋
- 2021-02-27 14:25
typedef struct_systemtime struct与_systemtime中间少个空格
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯