summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-23 07:29:47 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-19 08:36:14 +0100
commit76ac1ee3bba2a20ded7ea12394af0a633be25ff9 (patch)
tree802c0a592b72ce017bb0e739f138d1877b9475ab /doc
parenttaskcreate.c: Add method name to comment to be clearer (diff)
downloadrtems-76ac1ee3bba2a20ded7ea12394af0a633be25ff9.tar.bz2
score: Fix simple timecounter support
Update #2502.
Diffstat (limited to 'doc')
-rw-r--r--doc/bsp_howto/clock.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/bsp_howto/clock.t b/doc/bsp_howto/clock.t
index f58b89850f..2891bb2807 100644
--- a/doc/bsp_howto/clock.t
+++ b/doc/bsp_howto/clock.t
@@ -89,6 +89,13 @@ static uint32_t some_tc_get( rtems_timecounter_simple *tc )
return some.counter;
@}
+static void some_tc_at_tick( rtems_timecounter_simple *tc )
+@{
+ /*
+ * Do work necessary at the clock tick interrupt, e.g. clear a pending flag.
+ */
+@}
+
static bool some_tc_is_pending( rtems_timecounter_simple *tc )
@{
return some.is_pending;
@@ -105,7 +112,11 @@ static uint32_t some_tc_get_timecount( struct timecounter *tc )
static void some_tc_tick( void )
@{
- rtems_timecounter_simple_downcounter_tick( &some_tc, some_tc_get );
+ rtems_timecounter_simple_downcounter_tick(
+ &some_tc,
+ some_tc_get,
+ some_tc_at_tick
+ );
@}
static void some_support_initialize_hardware( void )