[PATCH 07/19] score603e/tod/tod.c: Do not use rtems_clock_get()

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 16 20:29:24 UTC 2015


---
 c/src/lib/libbsp/powerpc/score603e/tod/tod.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/score603e/tod/tod.c b/c/src/lib/libbsp/powerpc/score603e/tod/tod.c
index 8135404..217c6f0 100644
--- a/c/src/lib/libbsp/powerpc/score603e/tod/tod.c
+++ b/c/src/lib/libbsp/powerpc/score603e/tod/tod.c
@@ -52,7 +52,7 @@ void setRealTimeFromRTEMS()
 {
   rtems_time_of_day rtems_tod;
 
-  rtems_clock_get( RTEMS_CLOCK_GET_TOD, &rtems_tod );
+  rtems_clock_get_tod( &rtems_tod );
   ICM7170_SetTOD( BSP_RTC_ADDRESS, BSP_RTC_FREQUENCY, &rtems_tod );
 }
 
@@ -62,7 +62,7 @@ int checkRealTime()
   rtems_time_of_day rtc_tod;
 
   ICM7170_GetTOD( BSP_RTC_ADDRESS, BSP_RTC_FREQUENCY, &rtc_tod );
-  rtems_clock_get( RTEMS_CLOCK_GET_TOD, &rtems_tod );
+  rtems_clock_get_tod( &rtems_tod );
 
   if( rtems_tod.year == rtc_tod.year &&
       rtems_tod.month == rtc_tod.month &&
-- 
1.9.3




More information about the devel mailing list