keil错误:error c129: missing ';' before 'keyscan' 请大家指点迷津
#include<reg51.h>
#include <intrins.h>
#define uchar unsigned char
#define uint unsigned int
unsigned char table[]={0x3f,0x06,0x5b,0x4f,0x66,
0x6d,0x7d,0x07,0x7f,0x6f, 0x40,0x00};
Void keyscan()
{
Enum keydown kdwn
P1=oxff
If((p1&oxff)!=ox1f)
{
delay(1000) ;
If((p1&ox1f)!=ox1f)
{
Kdwn=p1&ox1f
Switch(kdwn)
{
Case clckws:clokwise( );break;
Case antclckws: anticlokwise( );break;
Case mstsp: motorstop( );break;
Case spdp: speedup( ); break;
Case spdwn: speeddown( ); break;
}
}
}
While((p1&ox1f)!=ox1f);
}
void time0_int(void) interrupt 1
{
time++;
TH0 = 0xec;
TL0 = 0x78;
if(change == 0)
{
PWM2 = 1;
if(time == high)
PWM1=0;
else if(time == period)
{
PWM1 = 1;
time = 0;
}
}
else
{ PWM1 = 1;
if(time == high)
PWM2=0;
else if(time == period)
{
PWM2 = 1;
time = 0;
}
}
}
Void main (void)
{
TMOD=OX01 ;
TH0=(65536-pulsewidth)
TL0= (65536-pulsewidth)
EA=1 ;
ET=0 ;
TR=0 ;
While(1)
{
keyscan() ;
}
}