leon3/.../ckinit.c: Fix missing prototype warnings

This commit is contained in:
Joel Sherrill
2013-09-22 10:51:36 -05:00
parent 68670555c9
commit d2c5bff7dc

View File

@@ -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;