I am getting errors (fails to compile with numerous errors generated) with this:
typedef struct StatusByte{ unsigned int B0:1; unsigned int B1:1; unsigned int B2:1; unsigned int B3:1; unsigned int B4:1; unsigned int B5:1; unsigned int B6:1; unsigned int B7:1; };
struct StatusByte SysStatus;
void main(void){
SysStatus.B0 = 0x00; //<---ERROR HERE WHICH THROWS EVERYTHING OFF???? //I.E. No Errors when omitted //more code...... //more code......
}
Which goes to show how important it is to give the full context of the code in question.
And post the full text of the error messages.