forked from Imagelibrary/rtems
tm27: Avoid function pointer casts
Add TM27_USE_VECTOR_HANDLER to select the interrupt handler type used by the <tm27.h> implementation. Close #4820.
This commit is contained in:
@@ -28,7 +28,7 @@ int negate_sw_irw(uint32_t irqnum);
|
||||
|
||||
#define Install_tm27_vector( handler ) \
|
||||
rtems_interrupt_handler_install( \
|
||||
AU1X00_IRQ_SW0, "benchmark", 0, (rtems_interrupt_handler)handler, NULL );
|
||||
AU1X00_IRQ_SW0, "benchmark", 0, handler, NULL );
|
||||
|
||||
#define Cause_tm27_intr() \
|
||||
do { \
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#define Install_tm27_vector( handler ) \
|
||||
rtems_interrupt_handler_install( \
|
||||
TX3904_IRQ_TMR0, "benchmark", 0, \
|
||||
(rtems_interrupt_handler)handler, NULL );
|
||||
handler, NULL );
|
||||
|
||||
#define Cause_tm27_intr() \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user