AnsweredAssumed Answered

Kinetis K40 codewarrior structure problem

Question asked by Marek Lagger Laszlo on Nov 17, 2012
Latest reply on Dec 7, 2012 by Marek Lagger Laszlo

Hello,

 

I am using eclipse based codewarrior for mcu 10.1 and I cant use structures, what Iam doing wrong?

 

 

struct steering {

     int P;

};

 

steering left;

left.P=0;

 

typedef struct{

     int x;

     int y;

} new_struct;

 

new_struct.x=0;

 

In both examples I am getting declaration syntax error. It can make a structure but if I want to change its member I am getting declaration syntax error.

Thank You

 

Outcomes