Please read chapter 3.4.1.7 of SDCC manual for the __sbit syntax in SDCC.

However, the port bits are included in the device headers, so you can do
e.g. the following:



#include <8051.h>

#define RELAY P1_4
#define K1    P2_7


void main(void) {
  if (!K1) RELAY = 0;
  else RELAY = 1;   
}



JW



------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to