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
The ARMv6 and ARMv7 instruction sets contain the LDREX and STREX instructions. It would be handy to add an AtomicOps trait with atomic_get/atomic_set and/or atomic_modify methods based on these instructions. This is possibly duplicating the AtomicXXX types in the core library, however I can see this being useful for splitting I/O ports into thread safe groups.
The text was updated successfully, but these errors were encountered:
The suggestion to split registers into ownable fields comes later in the issue
That's an option too. I did notice just after posting this that VolatileCell has an as_ptr method, so it would be possible to implement something at a higher level.
The ARMv6 and ARMv7 instruction sets contain the LDREX and STREX instructions. It would be handy to add an
AtomicOps
trait withatomic_get
/atomic_set
and/oratomic_modify
methods based on these instructions. This is possibly duplicating theAtomicXXX
types in the core library, however I can see this being useful for splitting I/O ports into thread safe groups.The text was updated successfully, but these errors were encountered: