[rtems commit] libcpu/arm/lpc22xx/clock/clockdrv.c: Fix warnings

Joel Sherrill joel at rtems.org
Mon Oct 13 16:27:41 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sun Oct 12 15:37:32 2014 -0500

libcpu/arm/lpc22xx/clock/clockdrv.c: Fix warnings

---

 c/src/lib/libcpu/arm/lpc22xx/clock/clockdrv.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/c/src/lib/libcpu/arm/lpc22xx/clock/clockdrv.c b/c/src/lib/libcpu/arm/lpc22xx/clock/clockdrv.c
index 459041e..02f5b8c 100644
--- a/c/src/lib/libcpu/arm/lpc22xx/clock/clockdrv.c
+++ b/c/src/lib/libcpu/arm/lpc22xx/clock/clockdrv.c
@@ -1,10 +1,11 @@
 /*
  *  LPC22XX/LPC21xx clock specific using the System Timer
- *  Copyright (c) 2006 by Ray <rayx.cn at gmail.com>
- *  Set the Time0 to generate click for RTEMS
  *
- *  This is hardware specific part of the clock driver. At the end of this
- *  file, the generic part of the driver is #included.
+ *  Set the Time0 to generate click for RTEMS
+ */
+
+/*
+ *  Copyright (c) 2006 by Ray <rayx.cn at gmail.com>
  *
  *  The license and distribution terms for this file may be
  *  found in the file LICENSE in this distribution or at
@@ -103,7 +104,7 @@ rtems_irq_connect_data clock_isr_data = {
     BSP_remove_rtems_irq_handler(&clock_isr_data);                  \
   } while (0)
 
-uint32_t bsp_clock_nanoseconds_since_last_tick(void)
+static uint32_t bsp_clock_nanoseconds_since_last_tick(void)
 {
   uint32_t clicks;
   uint32_t microseconds;



More information about the vc mailing list