struct lcd_pin_map { // This structure is overlayed
BOOLEAN unused; //
BOOLEAN rs; // on to an I/O port to gain
BOOLEAN rw; // access to the LCD pins.
BOOLEAN enable; // The bits are allocated from
int data : 4;
// low order up. ENABLE will be pin D0
} lcd;
ve
Kod:
#locate lcd = getenv("SFR:PORTD") // This puts the entire structure
// on to port D