Cygisrt, Cygdsrt, Cyg_dsr_t – Comtrol eCos User Manual

Page 410: Cyg_isr_t

Advertising
background image

Chapter 18. Device Driver Interface to the Kernel

cyg_ISR_t

Type:

typedef cyg_uint32 cyg_ISR_t( cyg_vector_t vector,

cyg_addrword_t data

)

Fields:

vector

- vector being delivered

data

- data value supplied by client

Result:

Bit mask indicating whether interrupt was handled and whether the DSR should be called.

Description:

Interrupt Service Routine definition. A pointer to a function with this prototype is passed to

cyg_interrupt_create()

when an interrupt object is created. When an interrupt is delivered the function

will be called with the vector number and the data value that was passed to

cyg_interrupt_create()

.

The return value is a bit mask containing one or both of the following bits:

CYG_ISR_HANDLED

indicates that the interrupt was handled by this ISR. It is a configuration option whether this will prevent
further ISR being run.

CYG_ISR_CALL_DSR

causes the DSR that was passed to

cyg_interrupt_create()

to be scheduled to be called.

cyg_DSR_t

Type:

typedef void cyg_DSR_t( cyg_vector_t vector,

cyg_ucount32 count,

cyg_addrword_t data

)

Fields:

vector

- vector being delivered

count

- number of times DSR has been scheduled

data

- data value supplied by client

306

Advertising