RTEMS
intrcatch.c
Go to the documentation of this file.
1 
8 /*
9  * COPYRIGHT (c) 1989-1999.
10  * On-Line Applications Research Corporation (OAR).
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifdef HAVE_CONFIG_H
18 #include "config.h"
19 #endif
20 
21 #include <rtems/rtems/intr.h>
22 #include <rtems/score/isr.h>
23 
24 #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE)
26  rtems_isr_entry new_isr_handler,
27  rtems_vector_number vector,
28  rtems_isr_entry *old_isr_handler
29 )
30 {
32  return RTEMS_INVALID_NUMBER;
33 
34  if ( new_isr_handler == NULL )
35  return RTEMS_INVALID_ADDRESS;
36 
37  if ( old_isr_handler == NULL )
38  return RTEMS_INVALID_ADDRESS;
39 
40  _ISR_Install_vector( vector, new_isr_handler, old_isr_handler );
41 
42  return RTEMS_SUCCESSFUL;
43 }
44 #endif
Data Related to the Management of Processor Interrupt Levels.
#define _ISR_Install_vector(_vector, _new_handler, _old_handler)
Install interrupt handler vector.
Definition: isr.h:134
This status code indicates that a specified number was invalid.
Definition: status.h:138
This status code indicates successful completion.
Definition: status.h:86
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:82
rtems_status_code rtems_interrupt_catch(rtems_isr_entry new_isr_handler, rtems_vector_number vector, rtems_isr_entry *old_isr_handler)
%
This header file defines the Interrupt Manager API.
This status code indicates that a specified address was invalid.
Definition: status.h:133
void(* rtems_isr_entry)(void *)
Interrupt service routines installed by rtems_interrupt_catch() shall have this function pointer type...
Definition: intr.h:103
#define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER
Definition: cpu.h:692
ISR_Vector_number rtems_vector_number
%
Definition: intr.h:90