You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional support for C11 atomic functions using spin lock number PICO_SPINLOCK_ID_ATOMIC.
and
On RP2040, all functions are implemented via spinlock.
Well ... no? PICO_SPINLOCK_ID_ATOMIC doesn't seem to be used anywhere in the pico-sdk sources and spinlocks are nowhere to be found in atomic.c.
The atomic operations in atomic.c call atomic_lock() which itself only calls save_and_disable_interrupts(), and if I'm not mistaken this only disables interrupts on the current cpu core.
The text was updated successfully, but these errors were encountered:
From SDK 2.0.0 release notes:
and
Well ... no?
PICO_SPINLOCK_ID_ATOMIC
doesn't seem to be used anywhere in the pico-sdk sources and spinlocks are nowhere to be found in atomic.c.The atomic operations in atomic.c call
atomic_lock()
which itself only callssave_and_disable_interrupts()
, and if I'm not mistaken this only disables interrupts on the current cpu core.The text was updated successfully, but these errors were encountered: