template_program_irq

Name

template_program_irq --  program interrupts

Synopsis

int template_program_irq (struct candevice_t * candev);

Arguments

candev

Pointer to candevice/board structure

Description

The function template_program_irq is used for hardware that uses programmable interrupts. If your hardware doesn't use programmable interrupts you should not set the candevices_t->flags entry to PROGRAMMABLE_IRQ and leave this function unedited. Again this function is hardware specific so there's no example code.

Return value

The function returns zero on success or -ENODEV on failure

File

src/template.c