forked from Imagelibrary/rtems
no_cpu: replace no_cpu_isr with rtems_isr
This commit is contained in:
@@ -38,7 +38,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* functions */
|
/* functions */
|
||||||
|
|
||||||
no_cpu_isr_entry set_vector( /* returns old vector */
|
rtems_isr_entry set_vector( /* returns old vector */
|
||||||
rtems_isr_entry handler, /* isr routine */
|
rtems_isr_entry handler, /* isr routine */
|
||||||
rtems_vector_number vector, /* vector number */
|
rtems_vector_number vector, /* vector number */
|
||||||
int type /* RTEMS or RAW intr */
|
int type /* RTEMS or RAW intr */
|
||||||
|
|||||||
@@ -25,13 +25,13 @@
|
|||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
|
||||||
no_cpu_isr_entry set_vector( /* returns old vector */
|
rtems_isr_entry set_vector( /* returns old vector */
|
||||||
rtems_isr_entry handler, /* isr routine */
|
rtems_isr_entry handler, /* isr routine */
|
||||||
rtems_vector_number vector, /* vector number */
|
rtems_vector_number vector, /* vector number */
|
||||||
int type /* RTEMS or RAW intr */
|
int type /* RTEMS or RAW intr */
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
no_cpu_isr_entry previous_isr;
|
rtems_isr_entry previous_isr;
|
||||||
|
|
||||||
if ( type )
|
if ( type )
|
||||||
rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr );
|
rtems_interrupt_catch( handler, vector, (rtems_isr_entry *) &previous_isr );
|
||||||
|
|||||||
@@ -34,12 +34,6 @@ extern "C" {
|
|||||||
/** This defines the type for a priority bit map entry. */
|
/** This defines the type for a priority bit map entry. */
|
||||||
typedef uint16_t Priority_bit_map_Control;
|
typedef uint16_t Priority_bit_map_Control;
|
||||||
|
|
||||||
/** This defines the return type for an ISR entry point. */
|
|
||||||
typedef void no_cpu_isr;
|
|
||||||
|
|
||||||
/** This defines the prototype for an ISR entry point. */
|
|
||||||
typedef no_cpu_isr ( *no_cpu_isr_entry )( void );
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user