|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <los_task.h>#include <los_memory.h>#include "los_spinlock.h"#include "soc_osal.h"#include "osal_errno.h"#include "osal_inner.h"
函数 | |
| int | osal_spin_lock_init (osal_spinlock *lock) |
| Initialize a spin lock. | |
| void | osal_spin_lock (osal_spinlock *lock) |
| Lock the spinlock. | |
| int | osal_spin_trylock (osal_spinlock *lock) |
| Try to acquire the spin_lock. | |
| void | osal_spin_unlock (osal_spinlock *lock) |
| release the spin_lock. | |
| void | osal_spin_lock_bh (osal_spinlock *lock) |
| Disable soft interrupts and lock the spin lock. | |
| void | osal_spin_unlock_bh (osal_spinlock *lock) |
| release the spin_lock. | |
| void | osal_spin_lock_irqsave (osal_spinlock *lock, unsigned long *flags) |
| acquire the spin_lock. | |
| void | osal_spin_unlock_irqrestore (osal_spinlock *lock, unsigned long *flags) |
| release the spin_lock. | |
| void | osal_spin_lock_destroy (osal_spinlock *lock) |
| Destroy the spin_lock. | |