【发布时间】:2019-03-29 19:08:23
【问题描述】:
我正在尝试使用 IAR 开发一个项目。 这是错误消息: 错误[Pe260]:缺少显式类型(假定为“int”)
问候。
当我尝试时:
void send_data_byte(unsigned char dattt) {
我看到一个新错误:
错误[Pe159]:声明与之前的“send_data_command”不兼容
我的 sen_data_command 函数在下面
send_data_byte(unsigned char dattt){
for(j=0;j<8;j++){
pwmstart(1);
pwmstop(18);
if(dattt & 0x01){
__delay_cycles(1687);
dattt=dattt>>1;
}
else
{
__delay_cycles(562);
dattt=dattt>>1;
}
}
pwmstop(1);
}
void send_data_command(unsigned char dat){
for (int r=0;r<160;r++)
{pwmstart(1);}
for (int y=0;y<80;y++)
{pwmstop(1);}
send_data_byte(dat);
repeat();
}
【问题讨论】: