0
cthsieh

I have a block of codes that should be executed in an atomic way. Does Ameba provide something like

ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {

... instructions

}

in Arduino?

* Refer to  https://forum.arduino.cc/index.php?topic=73838.0  for demonstration of atomic access.

cthsieh 回答了