Hello!
I'm setting a status variable in the ISR and in the main loop. In assembler the OR operation is atomic.
Is the OR Operation in C also atomic?
here is may example:
volatile int my_status = 0;
void main(void) {
...
my_status |= BIT7;
}
void isr(){
my_status |= BIT0;
}
Do I need to disable the ISR in the main?
-Thomas