本屌做的atmega128下的avr密码锁实验,这段key的代码返回时出现错误,求解
//-----------------------------------------------------------------// 名称: 键盘矩阵扫描程序
//-----------------------------------------------------------------
#include <iom128v.h>
#include <macros.h>
#define INT8U unsigned char
#define INT16U unsigned int
//当前按键序号,该矩阵中序号范围为0-15,0xFF表示无按键
INT8U KeyNo = 0xFF ;
//-----------------------------------------------------------------
// 判断键盘矩阵是否有键按下
//-----------------------------------------------------------------
INT8U KeyMatrix_Down()
{
DDRE = 0xf0;
PORTE = 0x0f;
delay_ms(1);
return PINE !=0x0f 1:0;
}
//-----------------------------------------------------------------
// 键盘矩阵扫描子程序
//-----------------------------------------------------------------
void Keys_Scan()
{
}
错误:
!E E:\课程设计\加密电子密码锁\AVR-C\Key.c(26): syntax error; found `1' expecting `;'
!W E:\课程设计\加密电子密码锁\AVR-C\Key.c(26):[warning] expression with no effect elided
!E E:\课程设计\加密电子密码锁\AVR-C\Key.c(26): syntax error; found `:' expecting `;'
!E E:\课程设计\加密电子密码锁\AVR-C\Key.c(26): illegal statement termination
!E E:\课程设计\加密电子密码锁\AVR-C\Key.c(26): skipping `:'
!W E:\课程设计\加密电子密码锁\AVR-C\Key.c(26):[warning] expression with no effect elided
!W E:\课程设计\加密电子密码锁\AVR-C\Key.c(33):[warning] old-style function definition for `Keys_Scan'
D:\kcsj\bin\imakew.exe: Error code 1
Done: there are error(s). Exit code: 1. Mon Nov 18 16:24:59 2013
求解- -