#include "delay.h"
#include "usart.h"
#include "stdlib.h"
#include "sys.h"
#include "usart.h"
#include "led.h"
#include "lcd.h"
#include "hc05.h"
#include "usart3.h"
#include "key.h"
#include "string.h"
u8 idfind(u8 *buf,u8 *val,u8 len);
char s[20];
char m[7]={'n','4','.','v','a','l','='};
char n[3]={'3','0'};
int date;
void HMISends(char *buf1);
void HMISendb(u8 buf);
void beepms(u16 va);
u8 key,beep; //报错
void beepms(u16 va)
{
beep=1;
delay_ms(va);
beep=0;
}
void HMISendstart(void)
{
delay_ms(200);
HMISendb(0xff);
delay_ms(200);
}
工程文件
错误:
main.c(27): error: #40: expected an identifier
u8 key,beep;
main.c(27): error: #79: expected a type specifier
u8 key,beep;
改用uint8_t吧
一周热门 更多>