ArduinoCore-samd
ArduinoCore-samd copied to clipboard
Add cores/util/atomic.h
Provide macros compatible with the avr-libc ATOMIC_BLOCK code. Tested (only) by code inspection of the binary.
Any chance this PR is going to be accepted soon? Atomic block support is important for code that uses interrupts.
See also this library: https://github.com/wizard97/SimplyAtomic