The API

This section details the Driver Kernel Interface. Note that most of these functions are identical to Kernel C API calls, and will in most configurations be wrappers for them. In non-kernel configurations they will be supported directly by the HAL, or by code to emulate the required behavior.

This API is defined in the header file <cyg/hal/drv_api.h>.

cyg_drv_isr_lock

cyg_drv_isr_unlock

cyg_drv_spinlock_init

cyg_drv_spinlock_destroy

cyg_drv_spinlock_spin

cyg_drv_spinlock_clear

cyg_drv_spinlock_try

cyg_drv_spinlock_test

cyg_drv_spinlock_spin_intsave

cyg_drv_spinlock_clear_intsave

cyg_drv_dsr_lock

cyg_drv_dsr_unlock

cyg_drv_mutex_init

cyg_drv_mutex_destroy

cyg_drv_mutex_lock

cyg_drv_mutex_trylock

cyg_drv_mutex_unlock

cyg_drv_mutex_release

cyg_drv_cond_init

cyg_drv_cond_destroy

cyg_drv_cond_wait

cyg_drv_cond_signal

cyg_drv_cond_broadcast

cyg_drv_interrupt_create

cyg_drv_interrupt_delete

cyg_drv_interrupt_attach

cyg_drv_interrupt_detach

cyg_drv_interrupt_mask

cyg_drv_interrupt_mask_intunsafe

cyg_drv_interrupt_unmask

cyg_drv_interrupt_unmask_intunsafe

cyg_drv_interrupt_acknowledge

cyg_drv_interrupt_configure

cyg_drv_interrupt_level

cyg_drv_interrupt_set_cpu

cyg_drv_interrupt_get_cpu

cyg_ISR_t

cyg_DSR_t