BSP and Device Driver Development Guide
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
}
BSP and Device Driver Development Guide
Copyright © 1988-2004 OAR Corporation