![]() |
rtcpsu
Xilinx SDK Drivers API Documentation
|
This file contains an example using the XRtcPsu driver.
This function calculates new calibration value and updates the calibration register value.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00 kvn 05/12/15 First Release 1.6 tjs 09/17/18 Fixed compilation warnings 1.8 sg 07/17/19 Update example sequence for finding new calibration values
Functions | |
int | RtcPsuSetCalibrationExample (u16 DeviceId) |
This function does a minimal set Calibration test on the XRtcPsu device. More... | |
int | main (void) |
Main function to call the Rtc set calibration example. More... | |
int main | ( | void | ) |
Main function to call the Rtc set calibration example.
None |
References RtcPsuSetCalibrationExample().
int RtcPsuSetCalibrationExample | ( | u16 | DeviceId | ) |
This function does a minimal set Calibration test on the XRtcPsu device.
This function updates the Calibration register value.
DeviceId | is the unique device id from hardware build. |
References XRtcPsu_Config::BaseAddr, XRtcPsu_CalculateCalibration(), XRtcPsu_DateTimeToSec(), XRtcPsu_LookupConfig(), XRtcPsu_SelfTest(), and XRtcPsu_SetTime().
Referenced by main().