diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-25 15:10:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 11:55:47 +0200 |
commit | 88c74ab115b5135d4d93050596905d6ee573dd1e (patch) | |
tree | 395b852dd384040e20a6f178e913dddccac436bf /testsuites/sptests | |
parent | score: Create object implementation header (diff) | |
download | rtems-88c74ab115b5135d4d93050596905d6ee573dd1e.tar.bz2 |
score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/sp01/task1.c | 7 | ||||
-rw-r--r-- | testsuites/sptests/sp16/task5.c | 7 | ||||
-rw-r--r-- | testsuites/sptests/spcbssched01/task1.c | 7 | ||||
-rw-r--r-- | testsuites/sptests/spedfsched01/task1.c | 7 |
4 files changed, 4 insertions, 24 deletions
diff --git a/testsuites/sptests/sp01/task1.c b/testsuites/sptests/sp01/task1.c index 1527b808a6..d2b824afc1 100644 --- a/testsuites/sptests/sp01/task1.c +++ b/testsuites/sptests/sp01/task1.c @@ -25,12 +25,7 @@ rtems_task Task_1_through_3( status = rtems_object_get_classic_name( rtems_task_self(), &name ); directive_failed( status, "rtems_object_get_classic_name" ); - /* - * Use TOD_MILLISECONDS_TO_TICKS not RTEMS_MILLISECONDS_TO_TICKS to - * test C implementation in SuperCore -- not macro version used - * everywhere else. - */ - ticks = TOD_MILLISECONDS_TO_TICKS( index * 5 * 1000 ); + ticks = RTEMS_MILLISECONDS_TO_TICKS( index * 5 * 1000 ); while( FOREVER ) { status = rtems_clock_get_tod( &time ); diff --git a/testsuites/sptests/sp16/task5.c b/testsuites/sptests/sp16/task5.c index ced8c27106..d2dcc4e527 100644 --- a/testsuites/sptests/sp16/task5.c +++ b/testsuites/sptests/sp16/task5.c @@ -46,12 +46,7 @@ rtems_task Task5( Put_address_from_area_1( segment_address_1 ); new_line; - /* - * Use TOD_MICROSECONDS_TO_TICKS not RTEMS_MICROSECONDS_TO_TICKS to - * test C implementation in SuperCore -- not macro version used - * everywhere else. - */ - status = rtems_task_wake_after( TOD_MICROSECONDS_TO_TICKS( 1000000 ) ); + status = rtems_task_wake_after( RTEMS_MICROSECONDS_TO_TICKS( 1000000 ) ); directive_failed( status, "rtems_task_wake_after" ); puts( "TA5 - rtems_region_get_segment - wait on 3K segment from region 1" ); diff --git a/testsuites/sptests/spcbssched01/task1.c b/testsuites/sptests/spcbssched01/task1.c index 0139f04715..cf965491e6 100644 --- a/testsuites/sptests/spcbssched01/task1.c +++ b/testsuites/sptests/spcbssched01/task1.c @@ -34,12 +34,7 @@ rtems_task Task_1_through_3( status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); directive_failed( status, "rtems_task_ident" ); - /* - * Use TOD_MILLISECONDS_TO_TICKS not RTEMS_MILLISECONDS_TO_TICKS to - * test C implementation in SuperCore -- not macro version used - * everywhere else. - */ - ticks = TOD_MILLISECONDS_TO_TICKS( task_number( tid ) * 5 * 1000 ); + ticks = RTEMS_MILLISECONDS_TO_TICKS( task_number( tid ) * 5 * 1000 ); while( FOREVER ) { status = rtems_clock_get_tod( &time ); diff --git a/testsuites/sptests/spedfsched01/task1.c b/testsuites/sptests/spedfsched01/task1.c index a668190613..d38df41a46 100644 --- a/testsuites/sptests/spedfsched01/task1.c +++ b/testsuites/sptests/spedfsched01/task1.c @@ -34,12 +34,7 @@ rtems_task Task_1_through_3( status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); directive_failed( status, "rtems_task_ident" ); - /* - * Use TOD_MILLISECONDS_TO_TICKS not RTEMS_MILLISECONDS_TO_TICKS to - * test C implementation in SuperCore -- not macro version used - * everywhere else. - */ - ticks = TOD_MILLISECONDS_TO_TICKS( task_number( tid ) * 5 * 1000 ); + ticks = RTEMS_MILLISECONDS_TO_TICKS( task_number( tid ) * 5 * 1000 ); while( FOREVER ) { status = rtems_clock_get_tod( &time ); |