hithesh123
Full Member level 6
Basic question about while loop. It's common to use while loop for checking interrupt flag. Can I use while to check 2 interrupt flags -
while((!INT1F) & (!INT2F));
IAR gives me an error "Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this ...."
Interrupt subroutine question -
let's say i am in a while loop waiting for interrupt flag - while(!INT1F);
This while loop is inside a function called ack().
But a time out interrupt occurs and I wanna get out of the function ack(). Is this possible?
while((!INT1F) & (!INT2F));
IAR gives me an error "Warning[Pa082]: undefined behavior: the order of volatile accesses is undefined in this ...."
Interrupt subroutine question -
let's say i am in a while loop waiting for interrupt flag - while(!INT1F);
This while loop is inside a function called ack().
But a time out interrupt occurs and I wanna get out of the function ack(). Is this possible?