No.82287 作者:dragontan 邮件:tzghit@163.com ID:8857 登陆:12次 文章数:26篇 最后登陆IP:211.148.203.40 最后登陆:2005/8/19 10:17:45 注册:2003/2/3 22:15:00 财富:106 发帖时间:2005/8/15 18:16:56 发贴者IP:211.148.203.40 标题:dragontan:C51编程:关于EXTERN和位变量的使用问题?! 摘要:No.82287C51编程:关于EXTERN和位变量的使用问题?! 大家好,我定义了一个位变量SYS_RST,在整个工程文件中的调用方式是这样: ---- SYS_RST Matches (4 in 3 files) ---- Main.c (e:\tzg\触摸屏~1\touch_~3):extern bit SYS_RST; Main.c (e:\tzg\触摸屏~1\touch_~3): SYS_RST = 0; Uart.c (e:\tzg\触摸屏~1\touch_~3):SYS_RST = 0; Uart.h (e:\tzg\触摸屏~1\touch_~3):sbit SYS_RST = P2^6; //used in main.c Uart.c头部有#include "uart.h"; Mai ......
>>返回讨论的主题
|