summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 15:51:36 (UTC)
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-09-22 15:51:36 (UTC)
commitd2c5bff7dc5a93d5369e83e5c412c3b424dee781 (patch)
tree07c2853c88af6423a8475bdabb756d5c8ace8fe7
parent68670555c9c25cb5528e4d2b6078c73933e08a50 (diff)
downloadrtems-d2c5bff7dc5a93d5369e83e5c412c3b424dee781.tar.bz2
leon3/.../ckinit.c: Fix missing prototype warnings
-rw-r--r--c/src/lib/libbsp/sparc/leon3/clock/ckinit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
index 79f8864..8aa0af3 100644
--- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
+++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c
@@ -37,7 +37,6 @@
#define LEON3_CLOCK_INDEX 0
#endif
-
volatile struct gptimer_regs *LEON3_Timer_Regs = 0;
static int clkirq;
@@ -94,6 +93,11 @@ static int clkirq;
LEON3_Timer_Regs->timer[LEON3_CLOCK_INDEX].ctrl = 0; \
} while (0)
+/*
+ * Prototype to avoid warnings and body of get nanoseconds since last tick
+ */
+uint32_t bsp_clock_nanoseconds_since_last_tick(void);
+
uint32_t bsp_clock_nanoseconds_since_last_tick(void)
{
uint32_t clicks;