rtcpsu
Xilinx SDK Drivers API Documentation
xrtcpsu_set_calibration_example.c File Reference

Overview

This file contains an example using the XRtcPsu driver.

This function updates the calibration register value.

Note
If the device does not work properly, the example may hang.

MODIFICATION HISTORY:

Ver   Who    Date     Changes

1.00 kvn 05/12/15 First Release
 

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...
 

Function Documentation

◆ main()

int main ( void  )

Main function to call the Rtc set calibration example.

Parameters
None
Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None

References RtcPsuSetCalibrationExample().

◆ RtcPsuSetCalibrationExample()

int RtcPsuSetCalibrationExample ( u16  DeviceId)

This function does a minimal set Calibration test on the XRtcPsu device.

This function updates the Calibration register value.

Parameters
DeviceIdis the unique device id from hardware build.
Returns
XST_SUCCESS if successful, XST_FAILURE if unsuccessful
Note
None.

References XRtcPsu_LookupConfig().

Referenced by main().