I am writing to unsigned 16 bits variable in a interrupt.
The Interrupt runs independently from the main program.
Main program reads that 16 bit variable carelessly from the interrupt.
Are those operation atomic?
Is the program safe from the memory corruption hazard?