PaulS:
It is not necessary to disable interrupts to perform an atomic operation.
True, toggling interrupts is the generic procedure. Sometimes you might want to grab / reset a counter or manipulate other volatile variables.
PaulS:
It is not necessary to disable interrupts to perform an atomic operation.
True, toggling interrupts is the generic procedure. Sometimes you might want to grab / reset a counter or manipulate other volatile variables.