Add clock_synchronize() which may be used to re-synchonize the system time with an RTC after recovering from a low power state

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4503 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-03-22 14:52:46 +00:00
parent 1460fecc90
commit 8bcfcd56d5
3 changed files with 112 additions and 16 deletions
+5
View File
@@ -2583,3 +2583,8 @@
include/nuttx/fs.
* include/nuttx/serial: Move all serial-driver related files from include/nuttx to
include/nuttx/serial.
* include/nuttx/clock.h and sched/clock_initialize.c: Add a new OS interface
called clock_sychronize() that can be used to re-synchronize the NuttX
system time with a hardware RTC. This function is called normally at power
up but may also need to be called when recovering from certain low-power
usage states where the system time is no longer accurate.