pub unsafe extern "C" fn rtapi_irq_new(
irq_num: c_uint,
owner: c_int,
handler: Option<unsafe extern "C" fn()>,
) -> c_intExpand description
‘rtapi_assign_interrupt_handler()’ is used to set up a handler for a hardware interrupt. ‘irq’ is the interrupt number, and ‘handler’ is a pointer to a function taking no arguments and returning void. ’handler will be called when the interrupt occurs. ‘owner’ is the ID of the calling module (see rtapi_init). Returns a status code. Note: The simulated RTOS does not support interrupts. Call only from within init/cleanup code, not from realtime tasks.