I want to use the following code in lpc2148...but i am getting compile error..
bdata unsigned char bd1 ; #define status=0; sbit d0 = bd1^0; sbit d1 = bd1^1; sbit d2 = bd1^2; sbit d3 = bd1^3; sbit d4 = bd1^4; sbit d5 = bd1^5; sbit d6 = bd1^6; sbit d7 = bd1^7;
After compiling i am getting,
error: #20: identifier "bd1" is undefined error: #20: identifier "sbit" is undefined
I am using keil4..
Plz let me know how to write this code compatible with LPC2148.....
Andrew Neil,
The ARM processor and compiler does not support the sbit and bdata keywords. They are extensions to the C51 compiler so it can access the special features of the x51 processor cores.