[rtems commit] bsp/csb336: implement bsp_interrupt_vector_enable/disable.

Sebastian Huber sebh at rtems.org
Mon Aug 19 12:19:58 UTC 2013


Module:    rtems
Branch:    4.10
Commit:    a791d39818ebd1edd4ada4defaa35d58aecc7b8f
Changeset: http://git.rtems.org/rtems/commit/?id=a791d39818ebd1edd4ada4defaa35d58aecc7b8f

Author:    Pavel Pisa <ppisa at pikron.com>
Date:      Mon Aug 19 14:18:25 2013 +0200

bsp/csb336: implement bsp_interrupt_vector_enable/disable.

Signed-off-by: Pavel Pisa <ppisa at pikron.com>

---

 c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c b/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
index de7ccd8..fd83611 100644
--- a/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
+++ b/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
@@ -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;
 }
 




More information about the vc mailing list