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/05/13 09:01:57
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;这行.
我观察了一下,他的周围没有语法错误.怎么就不行呀.
是不是zifu.h这个头文件有问题啊,看一下它的内容
address
address
volatile uint i=((P3&0X00)4); 为什么报non-address/-constantinitializer,需用12位数据.
address concern address用法
non binding
non-accumulative
non-flowering
NON SPARATE
non-publication
non-polarized
non-diversifiable
non-operated
non-polarized
non-discretionary
non-teaching
non-Javadoc /** (non-Javadoc)* * @see */
英语翻译1.IntroductionThe question we address is whether application of International AccountingStandards (IAS) is associated with higher accounting quality than applicationof non-U.S.domestic standards.1 In particular,we investigate whetheraccou
FULL SET OF ORIGINAL MARINE BILLS OF LADING CLEAN ON BOARD FLUS 2 NON NEGOTIABLE COPIES MADE OUT OR ENDORSED TO ORDEROF BNP PARIBAS (CANADA) MARKED FREIGHT PREPAID AND NOTIFY APPLICANT'SFULL NAME AND ADDRESS.