Cygdrvisrunlock, Cygdrvspinlockinit, Cyg_drv_isr_unlock – Comtrol eCos User Manual
Page 393: Cyg_drv_spinlock_init, Cyg_drv_spinlock_destroy

Chapter 18. Device Driver Interface to the Kernel
Description:
Disables delivery of interrupts, preventing all ISRs running. This function maintains a counter of the number
of times it is called.
cyg_drv_isr_unlock
Function:
void cyg_drv_isr_unlock()
Arguments:
None
Result:
None
Level:
ISR
Description:
Re-enables delivery of interrupts, allowing ISRs to run. This function decrements the counter maintained by
cyg_drv_isr_lock()
, and only re-allows interrupts when it goes to zero.
cyg_drv_spinlock_init
Function:
void cyg_drv_spinlock_init(cyg_spinlock_t *lock, cyg_bool_t locked )
Arguments:
lock
- pointer to spinlock to initialize
locked
- initial state of lock
Result:
None
Level:
Thread
Description:
Initialize a spinlock. The
locked
argument indicates how the spinlock should be initialized:
TRUE
for locked
or
FALSE
for unlocked state.
289