![]() |
rtcpsu
Vitis Drivers API Documentation
|
This file contains an example using the XRtcPsu driver.
This function updates the current time.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 kvn 05/12/15 First Release 1.6 tjs 09/17/18 Fixed compilation warnings 1.13 ht 06/21/23 Added support for system device-tree flow. 1.17 vlt 12/18/25 Update Doxygen comments to include SDT flow details. 1.17 ht 01/19/26 Fix the printf comment to use EPOCH time as reference.
Functions | |
| int | RtcPsuSetTimeExample (UINTPTR BaseAddress) |
| This function does a minimal set time test on the XRtcPsu device. More... | |
| int | main (void) |
| Main function to call the Rtc Set time example. More... | |
| int main | ( | void | ) |
Main function to call the Rtc Set time example.
References RtcPsuSetTimeExample().
| int RtcPsuSetTimeExample | ( | UINTPTR | BaseAddress | ) |
This function does a minimal set time test on the XRtcPsu device.
This function updates the current time to a specified time.
| BaseAddress | contains the base address of the device |
References XRtcPsu_Config::BaseAddr, XRtcPsu_DT::Day, XRtcPsu_DT::Hour, XRtcPsu_DT::Min, XRtcPsu_DT::Month, XRtcPsu_DT::Sec, XRtcPsu_DT::WeekDay, XRtcPsu_CfgInitialize(), XRtcPsu_DateTimeToSec(), XRtcPsu_GetCurrentTime(), XRtcPsu_GetLastSetTime, XRtcPsu_LookupConfig(), XRtcPsu_SecToDateTime(), XRtcPsu_SelfTest(), XRtcPsu_SetTime(), and XRtcPsu_DT::Year.
Referenced by main().