RTEMS Logo

RTEMS 4.6.99.3 On-Line Library


Real-Time Clock Driver setRealTimeFromRTEMS

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

11.4: setRealTimeFromRTEMS

The setRealTimeFromRTEMS routine sets the preferred RTC TOD to the current RTEMS TOD.

void setRealTimeFromRTEMS(void)
{
  if no RTCs are present
    return

  obtain the RTEMS TOD using rtems_clock_get
  invoke the deviceSetTime routine for the preferred RTC
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2004 OAR Corporation