Create atomic.h

Two macros for atomic operations. It saves Interrupt state and restore one after.