This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • You should probably post the assembly for the output from the code generator. (By "not compiled" I assume you mean the code isn't correct? Or you mean that there is a compiler error generated on this line?)

    The initialization in the first line is redundant, since the do will always execute at least once and promptly overwrite the value set outside the loop.

Reply
  • You should probably post the assembly for the output from the code generator. (By "not compiled" I assume you mean the code isn't correct? Or you mean that there is a compiler error generated on this line?)

    The initialization in the first line is redundant, since the do will always execute at least once and promptly overwrite the value set outside the loop.

Children
No data