Start
Is the lock taken?
SPINLOCK_LOCK_REG_i[0] TAKEN = 0
Disable all interrupts
Enable all interrupts
Critical code section
End
SPINLOCK_LOCK_REG_i[0] TAKEN = 0
Enable all interrupts
Take a lock
Free a lock
Yes
No
Preliminary
Spinlock
www.ti.com
Figure 1-91. Take and Release Spinlock
242
Chip Level Resources
SPRUGX9 – 15 April 2011
© 2011, Texas Instruments Incorporated