高手哪位知道,单片机c语言: error C129: missing ';' before 'rom_sed'怎么修改错误??
#include<reg51.h>#include<intrins.h>
#include<stdlib.h>
#define uchar unsigned char
#define uint unsigned int
#define AddWr 0xa0
#define AddRd 0xa1
sbit Sda=P1^3;
sbit Scl=P1^4;
sbit WP=P1^5;
sbit TSOR=P1^0;
#define addWr 0xa2
#define addRd 0xa3
sbit sda=P1^1;
sbit scl=P1^2;
idata byte rom_sed[9];
idata byte rom_rec[7];
rom_sed[0]=0x00;
rom_sed[1]=0x00;
rom_sed[2]=0x00;
rom_sed[3]=0x55;
rom_sed[4]=0x23;
rom_sed[5]=0x31;
rom_sed[6]=0x06;
rom_sed[7]=0x92;
rom_sed[8]=0x99;
sbit FUZAI=P1^6;
sbit BELL=P1^7;
sbit RS=P2^7;
sbit RW=P2^1;
sbit EN=P2^5;
sbit S0=P3^0;
sbit S1=P3^1;
sbit S2=P3^2;
sbit S3=P3^3;
sbit S4=P3^4;
sbit S5=P3^5;
/*------------------全局变量------------------*/
static unsigned char max temp1,maxtemp2;
static unsigned char min temp1,mintemp2;
static unsigned char hour,min;
static unsigned char hourset str1[];
static unsigned char minset str2[];
static unsigned char countset;
static char line0[]="00:00";
static char line1[]=".C";
/*--------------------------------------------*/
void KeyboardDelay();
/*---------------LCD驱动电路------------------*/
void DelayL();
void DelayS();
void WriteCommand(unsigned char c);
void WriteData(unsigned char c);
void ShowChar(unsigned char pos,unsigned char c);
void ShowString(unsigned char line,char *ptr);
void InitLcd();
/*---------------时钟函数--------------------*/
void PCF8563WriteRead()
/*-----------温度传感器DS18B20驱动-----------*/
void Delay15();
void Delay60();
void Delay100ms();
void Write0TS();
void Write1TS();
bit ReadTS();
Void ResetTS();
void WriteByteTS(unsigned char byte);
unsigned char ReadByteTS();
void InitTS();
void GetTmepTS();
/*------------------------------------------*/
void KeyboardDelay();
/*-------------LCD驱动电路------------------*/
void DelayL();
void DelayS();
void WriteCommand(unsigned char c);
void WriteData(unsigned char c);
void ShowChar(unsigned char pos,unsigned char c);
void ShowString(unsigned char line,char *ptr);
void InitLcd();
/*----------------------主程序--------------*/
void main (void)
{
char code str1[]=" Hello World!";
char code str2[]=" 2005-5-20";
unsigned char i;
countset=0;
SP=0x50;
TSOR=1;
DelayL();
InitLcd();
DelayL();
ShowString(0,str1);
ShowString(1,str2);
for(i=0;i<15;i++)
Delay100ms();
InitInterupt();
Hoursetstr1[0]=00;
Minsetstr2[0]=00;
min=rom-rec[0];
Hour=rom-rec[1];
BELL=0;
FUZAI=0;
count=0;
P1=0xFF;
InitTS();
While(1)
{
GetTempTS();
line1[0]=0x20;
i=temp1;
if(I<max temp1&&i>min temp1)
FUZAI=1;
ine1[1]=i/10+0x30;
line1[2]=i%10+0x30;
line1[4]=temp2+0x3;
ShowString(1,line1);
line0[5]=hour/10+0x30;
line0[6]=hour%10+0x30;
line0[8]=min/10+0x30;
line0[9]=min%10+0x30;
ShowString(0,line0);
Delay100ms();
}
}