Hello
I use HI-TECH C COMPILER (Holtek MCU) V9.10PL6 to compile a firmware.
I have a problem with the compilation of this kind of structure (copy from the manual (HI-TECH C for HOLTEK MCU p35))
Code:
struct {
unsigned lo : 1;
unsigned dummy : 14;
unsigned hi : 1;
} foo;
Error(741) W:\xxx...xxx.h 164: bitfield too large (14 bits)
Error(741) W:\xxx...xxx.h 164: bitfield too large (14 bits)
Error(741) W:\xxx...xxx.h 164: bitfield too large (14 bits)
if I change the struct to
Code:
struct {
unsigned lo : 1;
unsigned dummy : 8;
unsigned hi : 1;
} foo;
the compilation is completed successfully
Do you have a solution to solve the problem with a 14 bits field
regards