While not compiled

Perhaps someone can tell me why the line "while(EE_busy & 0x01);" is not compiled?

volatile UINT8 EE_busy;

EE_busy = 0x01;
do
EE_busy = hs_NvmRDSR();
while(EE_busy & 0x01);

Thanks

Rich

Parents
  • What makes you say that it "is not compiled"?
    How did you reach that conclusion?

    Remember that the 'C' compiler looks at statements - not lines.

    You could equally have written:

    do EE_busy = hs_NvmRDSR(); while(EE_busy & 0x01);
    and that would be completely equivalent as far as the compiler is concerned.

    How would it compile that "line" of code...?

Reply
  • What makes you say that it "is not compiled"?
    How did you reach that conclusion?

    Remember that the 'C' compiler looks at statements - not lines.

    You could equally have written:

    do EE_busy = hs_NvmRDSR(); while(EE_busy & 0x01);
    and that would be completely equivalent as far as the compiler is concerned.

    How would it compile that "line" of code...?

Children
More questions in this forum