[rtems commit] leon3/.../ckinit.c: Fix missing prototype warnings
Joel Sherrill
joel at rtems.org
Sun Sep 22 15:45:25 UTC 2013
Module: rtems
Branch: master
Commit: d2c5bff7dc5a93d5369e83e5c412c3b424dee781
Changeset: http://git.rtems.org/rtems/commit/?id=d2c5bff7dc5a93d5369e83e5c412c3b424dee781
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Sun Sep 22 10:51:36 2013 -0500
leon3/.../ckinit.c: Fix missing prototype warnings
---
c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 6 +++++-
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;
More information about the vc
mailing list