[rtems commit] uC5282/.../clock.c: Change get nanoseconds handler to static
Joel Sherrill
joel at rtems.org
Mon Sep 30 17:02:43 UTC 2013
Module: rtems
Branch: master
Commit: 2dfdecd91cdbf39b2cf146ae0f5abf65f6a66398
Changeset: http://git.rtems.org/rtems/commit/?id=2dfdecd91cdbf39b2cf146ae0f5abf65f6a66398
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Sep 30 12:07:07 2013 -0500
uC5282/.../clock.c: Change get nanoseconds handler to static
---
c/src/lib/libbsp/m68k/uC5282/clock/clock.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/m68k/uC5282/clock/clock.c b/c/src/lib/libbsp/m68k/uC5282/clock/clock.c
index 7376b96..4b7cee0 100644
--- a/c/src/lib/libbsp/m68k/uC5282/clock/clock.c
+++ b/c/src/lib/libbsp/m68k/uC5282/clock/clock.c
@@ -31,7 +31,7 @@
#define NSEC_PER_PITC __SRAMBASE.nsec_per_pitc
#define FILTER_SHIFT 6
-uint32_t bsp_clock_nanoseconds_since_last_tick(void)
+static uint32_t bsp_clock_nanoseconds_since_last_tick(void)
{
int i = MCF5282_PIT3_PCNTR;
if (MCF5282_PIT3_PCSR & MCF5282_PIT_PCSR_PIF)
@@ -39,7 +39,8 @@ uint32_t bsp_clock_nanoseconds_since_last_tick(void)
return (PITC_PER_TICK - i) * NSEC_PER_PITC;
}
-#define Clock_driver_nanoseconds_since_last_tick bsp_clock_nanoseconds_since_last_tick
+#define Clock_driver_nanoseconds_since_last_tick \
+ bsp_clock_nanoseconds_since_last_tick
/*
* Periodic interval timer interrupt handler
More information about the vc
mailing list