score603e/tod/tod.c: Do not use rtems_clock_get()

This commit is contained in:
Joel Sherrill
2015-03-14 10:59:35 -05:00
parent 05af8b9802
commit fe0eb1b513

View File

@@ -52,7 +52,7 @@ void setRealTimeFromRTEMS()
{ {
rtems_time_of_day rtems_tod; 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 ); ICM7170_SetTOD( BSP_RTC_ADDRESS, BSP_RTC_FREQUENCY, &rtems_tod );
} }
@@ -62,7 +62,7 @@ int checkRealTime()
rtems_time_of_day rtc_tod; rtems_time_of_day rtc_tod;
ICM7170_GetTOD( BSP_RTC_ADDRESS, BSP_RTC_FREQUENCY, &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 && if( rtems_tod.year == rtc_tod.year &&
rtems_tod.month == rtc_tod.month && rtems_tod.month == rtc_tod.month &&