Does GCC __atomic_test_and_set() work now?As of SDK 2.1.0 (well SDK 2.0.0 but there was a stupid bug for cross core use) C/C++ atomics should be fully supported.
On RP2350 for sizes <= 32 bits this is provided by the compiler (so you should check their documentation for that). For RP2040 (and RP2350 for exotically sized atomics incl 64 bits) a spin lock is used.
Statistics: Posted by carlk3 — Fri Dec 06, 2024 8:25 pm