|
@@ -59,6 +59,8 @@ RTM_EXPORT(rt_spin_lock)
|
|
/**
|
|
/**
|
|
* @brief This function will unlock the spinlock, will unlock the thread scheduler.
|
|
* @brief This function will unlock the spinlock, will unlock the thread scheduler.
|
|
*
|
|
*
|
|
|
|
+ * @note If the scheduling function is called before unlocking, it will be scheduled in this function.
|
|
|
|
+ *
|
|
* @param lock is a pointer to the spinlock.
|
|
* @param lock is a pointer to the spinlock.
|
|
*/
|
|
*/
|
|
void rt_spin_unlock(struct rt_spinlock *lock)
|
|
void rt_spin_unlock(struct rt_spinlock *lock)
|
|
@@ -95,6 +97,8 @@ RTM_EXPORT(rt_spin_lock_irqsave)
|
|
/**
|
|
/**
|
|
* @brief This function will unlock the spinlock and then restore current cpu interrupt status, will unlock the thread scheduler.
|
|
* @brief This function will unlock the spinlock and then restore current cpu interrupt status, will unlock the thread scheduler.
|
|
*
|
|
*
|
|
|
|
+ * @note If the scheduling function is called before unlocking, it will be scheduled in this function.
|
|
|
|
+ *
|
|
* @param lock is a pointer to the spinlock.
|
|
* @param lock is a pointer to the spinlock.
|
|
*
|
|
*
|
|
* @param level is interrupt status returned by rt_spin_lock_irqsave().
|
|
* @param level is interrupt status returned by rt_spin_lock_irqsave().
|