RTEMS Logo

RTEMS 4.8.0 On-Line Library


Real-Time Clock Driver setRealTimeToRTEMS

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

11.3: setRealTimeToRTEMS

The setRealTimeToRTEMS routine sets the current RTEMS TOD to that of the preferred RTC.

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

  invoke the deviceGetTime routine for the preferred RTC
  set the RTEMS TOD using rtems_clock_set
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2007OAR Corporation