forked from Imagelibrary/rtems
bsp/csb336: implement bsp_interrupt_vector_enable/disable.
Signed-off-by: Pavel Pisa <ppisa@pikron.com>
This commit is contained in:
committed by
Sebastian Huber
parent
4eeddefb22
commit
a791d39818
@@ -29,11 +29,21 @@ void bsp_interrupt_dispatch(void)
|
||||
|
||||
rtems_status_code bsp_interrupt_vector_enable(rtems_vector_number vector)
|
||||
{
|
||||
if (vector >= MC9328MXL_NUM_INTS)
|
||||
return RTEMS_INVALID_ID;
|
||||
|
||||
MC9328MXL_AITC_INTENNUM = vector;
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
rtems_status_code bsp_interrupt_vector_disable(rtems_vector_number vector)
|
||||
{
|
||||
if (vector >= MC9328MXL_NUM_INTS)
|
||||
return RTEMS_INVALID_ID;
|
||||
|
||||
MC9328MXL_AITC_INTDISNUM = vector;
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user