What does this syntax mean ?

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

What does this syntax mean ?

Post by octal » Wed Jan 24, 2007 4:35 pm

Hi David,
in the file S1D10605.BAS i have found a special syntax that ends with the "@" symbol ... what does it mean (for example for the DC declaration)

Code: Select all

// port and pin settings, these are brought into
// the program by using the above options...
dim        
   DATA as GLCD_DATA,           // data in (PORT) 
   TRISData as _GLCD_DATA_TRIS, // data TRIS
   DC as GLCD_DC.GLCD_DC@,      // DC pin (data or command)
   EN as GLCD_EN.GLCD_EN@,      // EN pin
   RW as GLCD_RW.GLCD_RW@,      // RW pin (read or write)
   CS1 as GLCD_CS1.GLCD_CS1@,   // chip select
   RST as GLCD_RST.GLCD_RST@    // reset

best regards

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Wed Jan 24, 2007 4:39 pm

#option GLCD_CS1 = PORTD.7

GLCD_CS1 . GLCD_CS1@
PORT PIN

Post Reply