[PATCH 04/19] mvme162/tod/tod.c: Do not use rtems_clock_get()

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


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

diff --git a/c/src/lib/libbsp/m68k/mvme162/tod/tod.c b/c/src/lib/libbsp/m68k/mvme162/tod/tod.c
index 3475979..abd353d 100644
--- a/c/src/lib/libbsp/m68k/mvme162/tod/tod.c
+++ b/c/src/lib/libbsp/m68k/mvme162/tod/tod.c
@@ -54,7 +54,7 @@ void	setRealTimeFromRTEMS()
 {
     rtems_time_of_day	t;
 
-    rtems_clock_get(RTEMS_CLOCK_GET_TOD,&t);
+    rtems_clock_get_tod(&t);
     t.year -= 1900;
 
     tod[0] |= 0x80;	/* Stop write register */
@@ -74,7 +74,7 @@ int	checkRealTime()
     int		d;
 
     tod[0] |= 0x40;	/* Stop read register */
-    rtems_clock_get(RTEMS_CLOCK_GET_TOD,&t);
+    rtems_clock_get_tod(&t);
     if((t.year != 1900+getTod(7,0xff))
        || (t.month != getTod(6,0x1f))
        || (t.day != getTod(5,0x3f)))
-- 
1.9.3




More information about the devel mailing list