Real-Time Clock (OAL) (Compact 7)
3/12/2014
The real-time clock (RTC) manages time-of-day information. The header file that defines the RTC module interface is Platform\Common\Src\Inc\oal_rtc.h. The RTC functions are typically part of a library with a name similar to oal_rtc_timer.lib, but they are ultimately linked into oal.lib.
The following table lists the main RTC functions. The sample BSP contains implementations of these functions, but you will probably need to modify them if your RTC isn’t the same as the one used in the sample BSP.
For more information about these functions, see OAL Functions.
Purpose | Function name | Typical file name |
---|---|---|
Sets the time |
rtc.c |
|
Gets the time |
rtc.c |