libcpu/bfin/clock/rtc.c: Do not use rtems_clock_get()

This commit is contained in:
Joel Sherrill
2015-03-14 11:00:20 -05:00
parent c1479edf5b
commit 24868ecb92

View File

@@ -44,7 +44,7 @@ void setRealTimeFromRTEMS (void)
rtems_time_of_day time_buffer;
rtems_status_code status;
status = rtems_clock_get( RTEMS_CLOCK_GET_TOD, &time_buffer );
status = rtems_clock_get_tod( &time_buffer );
if (status == RTEMS_SUCCESSFUL){
setRealTime(&time_buffer);
}
@@ -141,7 +141,7 @@ int checkRealTime (void)
uint32_t rtems_time;
uint32_t rtc_time;
rtems_clock_get( RTEMS_CLOCK_GET_TOD, &rtems_tod );
(void) rtems_clock_get_tod( &rtems_tod );
getRealTime ( &rtc_tod );
rtems_time = _TOD_To_seconds( &rtems_tod );