Cygdrvdsrlock, Cygdrvdsrunlock, Cyg_drv_dsr_lock – Comtrol eCos User Manual

Page 397: Cyg_drv_dsr_unlock

Advertising
background image

Chapter 18. Device Driver Interface to the Kernel

Arguments:

lock

- pointer to spinlock to clear

istate

- interrupt state to restore

Result:

None

Level:

ISR

Description:

This function behaves exactly like

cyg_drv_spinlock_clear()

except that it also restores an interrupt

state saved by

cyg_drv_spinlock_spin_intsave()

. The

istate

argument must have been initialized by

a previous call to

cyg_drv_spinlock_spin_intsave()

.

cyg_drv_dsr_lock

Function:

void cyg_drv_dsr_lock()

Arguments:

None

Result:

None

Level:

DSR

Description:

Disables scheduling of DSRs. This function maintains a counter of the number of times it has been called.

cyg_drv_dsr_unlock

Function:

void cyg_drv_dsr_unlock()

Arguments:

None

293

Advertising