bitfield struct don`t work Topic is solved

If you have a simple question and just want an answer.
Schorsch
Member
Posts: 12
Joined: Sun Feb 16, 2014 8:36 am

bitfield struct don`t work

Post by Schorsch »

Hello everybody!

 

I tried to implement following code:

struct

{

unsigned test1:1;

unsigned test2:3;

} bit;

I get allwas an error. Knows anybody the problem.

 

Thanks in advance for your answers!

Greatings

 

Schorsch



View Solution
User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

Bitfields aren't supported in XC but should work in C.