|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2004-12-13 21:22:52
|
显示全部楼层
会楼上,我检查了“place”的定义:
主程序中:
#include <iom162.h>
#include <stdio.h>
#define unch unsigned char
#define unit unsigned int
extern void led_clear(void);
extern void display(void);
unch flag=0; //bit0:0 ok, 1 setting state
unch matrix[3]; //number of pre digital
unch place=0; //display place //定义了外部变量
void delay(unit i){......}
void main() {......}
另一程序中
#include <iom162.h>
#include <stdio.h>
#define unit unsigned int
#define unch unsigned char
extern void delay(unit i);
extern unch flag;
extern unch matrix[3]; //number of pre digital
extern unch place; //display place //声明了外部变量
void display(void){......} //其中使用了place变量
void led_clear(void) {......}
有错吗?请指教一下。 |
|