[rtems commit] nds - Clock driver compiles again

Joel Sherrill joel at rtems.org
Thu May 10 12:59:25 UTC 2012


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Thu May 10 07:26:07 2012 -0500

nds - Clock driver compiles again

---

 c/src/lib/libbsp/arm/nds/clock/clock.c |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/c/src/lib/libbsp/arm/nds/clock/clock.c b/c/src/lib/libbsp/arm/nds/clock/clock.c
index adc56f9..b263e55 100644
--- a/c/src/lib/libbsp/arm/nds/clock/clock.c
+++ b/c/src/lib/libbsp/arm/nds/clock/clock.c
@@ -1,14 +1,15 @@
-/*
- * RTEMS for Nintendo DS clock driver.
+/**
+ * @file
  *
+ * RTEMS for Nintendo DS clock driver.
+ */
+
+/*
  * Copyright (c) 2008 by Matthieu Bucchianeri <mbucchia at gmail.com>
  *
  * The license and distribution terms for this file may be
  * found in the file LICENSE in this distribution or at
- *
  * http://www.rtems.com/license/LICENSE
- *
- * $Id$
  */
 
 #include <rtems.h>
@@ -22,15 +23,21 @@
 void Clock_isr(rtems_irq_hdl_param arg);
 
 /*
+ * forward declarations for methods in this file
+ */
+void Clock_driver_support_shutdown_hardware (void);
+void Clock_driver_support_initialize_hardware (void);
+
+/*
  * isr registration variables.
  */
 static rtems_irq_connect_data clock_isr_data = {
   .name   = IRQ_TIMER0,
   .hdl    = Clock_isr,
   .handle = NULL,
-  .on     = clock_isr_on,
-  .off    = clock_isr_off,
-  .isOn   = clock_isr_is_on,
+  .on     = NULL,
+  .off    = NULL,
+  .isOn   = NULL,
 };
 
 void update_touchscreen (void);
@@ -54,8 +61,7 @@ void update_touchscreen (void);
 /*
  * disable clock.
  */
-void
-Clock_driver_support_shutdown_hardware (void)
+void Clock_driver_support_shutdown_hardware (void)
 {
   BSP_remove_rtems_irq_handler (&clock_isr_data);
   TIMER_CR (0) &= ~(TIMER_ENABLE);
@@ -64,8 +70,7 @@ Clock_driver_support_shutdown_hardware (void)
 /*
  * initialize clock on timer 0.
  */
-void
-Clock_driver_support_initialize_hardware (void)
+void Clock_driver_support_initialize_hardware (void)
 {
   uint32_t freq =
     1000 / (rtems_configuration_get_microseconds_per_tick () / 1000);




More information about the vc mailing list