DS1302.H(12): error C129: missing ';' before '{'
#ifndef_REAL_TIMER_DS1302#define_REAL_TIMER_DS1302sbitDS1302_CLK=P3^1;//实时时钟时钟线引脚sbit...
#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; //定义的时间类型 展开
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; //定义的时间类型 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询