|
本帖最后由 shahabuddeen 于 2020-5-21 16:34 編輯
KEIL編譯報錯
MAIN.C(7): error C141: syntax error near 'sbit'
MAIN.C(7): error C247: non-address/-constant initializer
報錯的程序在下面
#include "reg51.h"
#include "num.h"
#define uchar unsigned char
#define uint unsigned int
sbit SCL=P1^0;
sbit SDA=P1^1;
sbit K0=P2^0;
sbit K1=P2^1;
sbit K2=P2^2;
sbit K3=P2^3;
在線等,急。
|
|