forked from Imagelibrary/rtems
2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* tod.c: Use rtems_clock_get_tod().
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* tod.c: Use rtems_clock_get_tod().
|
||||
|
||||
2009-01-05 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* src/irq-generic.c: #include <stdlib.h>.
|
||||
|
||||
@@ -146,7 +146,7 @@ void setRealTimeFromRTEMS(void)
|
||||
if (!RTC_Present)
|
||||
return;
|
||||
|
||||
rtems_clock_get( RTEMS_CLOCK_GET_TOD, &rtems_tod );
|
||||
rtems_clock_get_tod( &rtems_tod );
|
||||
RTC_Table[RTC_Minor].pDeviceFns->deviceSetTime(RTC_Minor, &rtems_tod);
|
||||
}
|
||||
|
||||
@@ -233,7 +233,7 @@ int checkRealTime(void)
|
||||
if (!RTC_Present)
|
||||
return -1;
|
||||
|
||||
rtems_clock_get( RTEMS_CLOCK_GET_TOD, &rtems_tod );
|
||||
rtems_clock_get_tod( &rtems_tod );
|
||||
RTC_Table[RTC_Minor].pDeviceFns->deviceGetTime(RTC_Minor, &rtc_tod);
|
||||
|
||||
rtems_time = _TOD_To_seconds( &rtems_tod );
|
||||
|
||||
Reference in New Issue
Block a user