u8 idfind(u8 *buf,u8 *val,u8 len);
void HMISends(char *buf1);
void HMISendb(u8 buf);
int main(void)
{
delay_init(); //延时函数初始化
NVIC_Configuration(); //设置NVIC中断优先级
uart_init(9600); //串口初始化为9600
HMISendstart(); //为确保串口HMI正常通信
{
char a[][10]={' "rest" '}; // ‘ ’里为字符串
HMISends("t0.txt=20");
HMISendb(0xff);
HMISends("n0.val=11");
HMISendb(0xff);
HMISends("n1.val=11");
HMISendb(0xff);
HMISends("n2.val=11");
HMISendb(0xff);
HMISends(a[1]);
HMISendb(0xff);
}
while(1);
}
main.c(35): error: #26: too many characters in character constant
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>