Adding mechanism to update the drivers notion of UTC from the system RTC

Fixed Clock source and prescale calculation
This commit is contained in:
David Sidrane
2015-08-14 05:00:24 -10:00
parent 4c80149b23
commit 9e51b2b125
2 changed files with 35 additions and 7 deletions
@@ -24,6 +24,14 @@ void init();
*/
uavcan::MonotonicTime getMonotonic();
/**
* Sets the driver's notion of the system UTC. It should be called
* at startup and any time the system clock is updated from an
* external source that is not the UAVCAN Timesync master.
* This function is thread safe.
*/
void setUtc(uavcan::UtcTime time);
/**
* Returns UTC time if it has been set, otherwise returns zero time.
* This function is thread safe.