non-address/-constant initializer#ifndef XIANSHI_H#define XIANSHI_H#include "c8051F000.h"//#include "intrins.h"#include "zifu.h" sbit DCS=P1^0;sbit DSCL=P1^1;sbit DSI=P1^2;sbit DA0=P1^3;sbit DRES=P1^4;sbit DQ=P0^4;extern void Delay1ms(unsigned int t)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/29 03:22:51
non-address/-constantinitializer#ifndefXIANSHI_H#defineXIANSHI_H#include"c8051F000.h"//#include"intr

non-address/-constant initializer#ifndef XIANSHI_H#define XIANSHI_H#include "c8051F000.h"//#include "intrins.h"#include "zifu.h" sbit DCS=P1^0;sbit DSCL=P1^1;sbit DSI=P1^2;sbit DA0=P1^3;sbit DRES=P1^4;sbit DQ=P0^4;extern void Delay1ms(unsigned int t)
non-address/-constant initializer
#ifndef XIANSHI_H
#define XIANSHI_H
#include "c8051F000.h"
//#include "intrins.h"
#include "zifu.h"
sbit DCS=P1^0;
sbit DSCL=P1^1;
sbit DSI=P1^2;
sbit DA0=P1^3;
sbit DRES=P1^4;
sbit DQ=P0^4;
extern void Delay1ms(unsigned int t);
extern void Delay1us( unsigned int us);\x05
#endif
////////////////////////////////////////////
调试时出现:error c141:syntax error near sbit
error c247:non-address/-constant initializer
两个错误出现地点都为:sbit DCS=P1^0;这行.
我观察了一下,他的周围没有语法错误.怎么就不行呀.

non-address/-constant initializer#ifndef XIANSHI_H#define XIANSHI_H#include "c8051F000.h"//#include "intrins.h"#include "zifu.h" sbit DCS=P1^0;sbit DSCL=P1^1;sbit DSI=P1^2;sbit DA0=P1^3;sbit DRES=P1^4;sbit DQ=P0^4;extern void Delay1ms(unsigned int t)
是不是zifu.h这个头文件有问题啊,看一下它的内容