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

Sebastian Huber sebh at rtems.org
Fri Aug 9 06:56:18 UTC 2013


Module:    rtems
Branch:    master
Commit:    98bcf4ff6ed89b01f0adaa04e53bafc22468bad5
Changeset: http://git.rtems.org/rtems/commit/?id=98bcf4ff6ed89b01f0adaa04e53bafc22468bad5

Author:    Pavel Pisa <ppisa at pikron.com>
Date:      Fri Aug  9 01:23:14 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 7c58a89..d3bde4c 100644
--- a/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
+++ b/c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c
@@ -28,11 +28,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