score: Fix simple timecounter support

Update #2502.
This commit is contained in:
Sebastian Huber
2015-12-23 07:29:47 +01:00
parent 2b9374e147
commit 76ac1ee3bb
17 changed files with 266 additions and 133 deletions

View File

@@ -29,7 +29,6 @@
#undef CLOCK_DRIVER_ISRS_PER_TICK
#undef CLOCK_DRIVER_USE_FAST_IDLE
*/
#define Clock_driver_support_at_tick()
/*
* Number of Clock ticks since initialization
@@ -87,11 +86,17 @@ static uint32_t tlib_tc_get_timecount(struct timecounter *tc)
);
}
static void tlib_tc_at_tick(rtems_timecounter_simple *tc)
{
/* Nothing to do? */
}
static void tlib_tc_tick(void)
{
rtems_timecounter_simple_downcounter_tick(
&tlib_tc,
tlib_tc_get
tlib_tc_get,
tlib_tc_at_tick
);
}