AnsweredAssumed Answered

What does the _ mean?

Question asked by Adam Ebrahim on Sep 24, 2009
Latest reply on Sep 28, 2009 by Adam Ebrahim

Hello

I have CW 5.9.0 build 2404 and the DEMOQE128 board with the MCF51QE128.

I'm trying to undestand the  MCF51QE128.h file, I'd like to know what the _  means and does (see after union):

 

typedef union {
  byte Byte;
  struct {
    byte PTAD0       :1;                                       /* Port A Data Register Bit 0 */
    byte PTAD1       :1;                                       /* Port A Data Register Bit 1 */
    byte PTAD2       :1;                                       /* Port A Data Register Bit 2 */
    byte PTAD3       :1;                                       /* Port A Data Register Bit 3 */
    byte PTAD4       :1;                                       /* Port A Data Register Bit 4 */
    byte PTAD5       :1;                                       /* Port A Data Register Bit 5 */
    byte PTAD6       :1;                                       /* Port A Data Register Bit 6 */
    byte PTAD7       :1;                                       /* Port A Data Register Bit 7 */
  } Bits;
} PTADSTR;
extern volatile PTADSTR _PTAD @0xFFFF8000; 

 

#define PTAD                            _PTAD.Byte

 

Does an equivelant in gcc exsist?

Thank you for any help.

Message Edited by BobbyMK on 2009-09-24 06:16 PM

Outcomes