MC Potgieter

Code Completion

Discussion created by MC Potgieter on Feb 4, 2008
Latest reply on Feb 5, 2008 by MC Potgieter
I have 2 type defenitions

typedef struct {
    u8 StartByte;
    u8 Route;
    u8 Command;
    u8 Length;
    u8 HCS;
    u8 Data[PROTOCOL_DATA_SIZE];
}TProtocol;

typedef union {
    TProtocol Protocol;
    u8 Data[COMMS_BUFFER_SIZE];

}TCommsBuffer;

TCommsBuffer UART1TXBuffer;

With type defenitions, the IDE editor will auto complete if I type

UART1TXBuffer.

and it will display a list where I can select either "Protocol" or "Data".

But with the these type defenitions it doesn't display the autocomplete list.

What should I do to make the IDE editor display the auto complete list?

(This question was posted with another problem in the Codewarrior for 8-bit and 16 bit section)

Outcomes