|
開(kāi)頭的程序是這樣的:
#include "reg51.h"
#include "include.h"
#include "pwm.h"
#include "speed.h"
#include "uart3.h"
#include "lcd12864.h"
#include "distance.h"
#define MAIN_Fosc 11059200L //定義主時(shí)鐘
#define UART3_BUF_LENGTH 1
#define u8 unsigned int
#define u16 unsigned int
u8 TX3_Cnt; //發(fā)送計(jì)數(shù)
u8 RX3_Cnt; //接收計(jì)數(shù)
bit B_TX3_Busy; //發(fā)送忙標(biāo)志
bit flag_count=0;
u8 idata RX3_Buffer[UART3_BUF_LENGTH]={" "}; //接收緩沖
u8 speed[] = {"模式: "};
u8 dis[] = {"距離: 厘米"};
u8 name[] = {"姓名: "};
u8 stu_id[] = {"學(xué)號(hào): "};
報(bào)錯(cuò):
xccx.c(2): warning C318: can't open file 'include.h'
xccx.c(3): warning C318: can't open file 'pwm.h'
xccx.c(4): warning C318: can't open file 'speed.h'
xccx.c(5): warning C318: can't open file 'uart3.h'
xccx.c(6): warning C318: can't open file 'lcd12864.h'
xccx.c(7): warning C318: can't open file 'distance.h'
XCCX.C(16): error C247: non-address/-constant initializer
求問(wèn)是怎么回事呀?謝謝謝謝
|
|