[rtems commit] bsps: Update due to API changes

Sebastian Huber sebh at rtems.org
Sat Apr 7 17:01:46 UTC 2012


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Apr  7 19:07:04 2012 +0200

bsps: Update due to API changes

---

 .../arm/shared/armv7m/clock/armv7m-clock-config.c  |    4 ++--
 .../lib/libbsp/powerpc/qoriq/clock/clock-config.c  |   10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c b/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c
index 82fefce..e126770 100644
--- a/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c
+++ b/c/src/lib/libbsp/arm/shared/armv7m/clock/armv7m-clock-config.c
@@ -20,7 +20,7 @@
 #ifdef ARM_MULTILIB_ARCH_V7M
 
 /* This is defined in clockdrv_shell.h */
-rtems_isr Clock_isr(rtems_vector_number vector);
+static rtems_isr Clock_isr(void *arg);
 
 #define _ARMV7M_Systick_get_factor(freq) \
   ((1000000000ULL << 32) / (freq))
@@ -43,7 +43,7 @@ static void _ARMV7M_Systick_at_tick(void)
 static void _ARMV7M_Systick_handler(void)
 {
   _ARMV7M_Interrupt_service_enter();
-  Clock_isr(ARMV7M_VECTOR_SYSTICK);
+  Clock_isr(NULL);
   _ARMV7M_Interrupt_service_leave();
 }
 
diff --git a/c/src/lib/libbsp/powerpc/qoriq/clock/clock-config.c b/c/src/lib/libbsp/powerpc/qoriq/clock/clock-config.c
index 249d604..d7c7ad7 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/clock/clock-config.c
+++ b/c/src/lib/libbsp/powerpc/qoriq/clock/clock-config.c
@@ -7,7 +7,7 @@
  */
 
 /*
- * Copyright (c) 2011 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
  *  Obere Lagerstr. 30
@@ -28,8 +28,8 @@
 #include <bsp/qoriq.h>
 #include <bsp/irq.h>
 
-/* This is defined in ../../../shared/clockdrv_shell.h */
-rtems_isr Clock_isr(rtems_vector_number vector);
+/* This is defined in clockdrv_shell.h */
+static rtems_isr Clock_isr(void *arg);
 
 static uint32_t qoriq_clock_nanoseconds_per_timer_tick;
 
@@ -69,7 +69,7 @@ static void qoriq_clock_handler_install(rtems_isr_entry *old_isr)
     CLOCK_INTERRUPT,
     "Clock",
     RTEMS_INTERRUPT_UNIQUE,
-    (rtems_interrupt_handler) Clock_isr,
+    Clock_isr,
     NULL
   );
   if (sc != RTEMS_SUCCESSFUL) {
@@ -98,7 +98,7 @@ static void qoriq_clock_cleanup(void)
 
   sc = rtems_interrupt_handler_remove(
     CLOCK_INTERRUPT,
-    (rtems_interrupt_handler) Clock_isr,
+    Clock_isr,
     NULL
   );
   if (sc != RTEMS_SUCCESSFUL) {




More information about the vc mailing list