rtcpsu: xrtcpsu_seconds_polled_example.c File Reference

| rtcpsu Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xrtcpsu_seconds_polled_example.c File Reference

## Overview

This file contains an example using the XRtcPsu driver in polled mode.

This function checks the new second reporting feature of the RTC.

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 | RtcPsuSecondsPolledExample (u16 DeviceId)
| This function does a minimal Seconds test on the XRtcPsu device in polled mode. More...
int | main (void)
| Main function to call the Rtc Seconds Polled mode example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the Rtc Seconds Polled mode example.

Parameters

  None |

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None

References RtcPsuSecondsPolledExample().

int RtcPsuSecondsPolledExample | ( | u16 | DeviceId | ) |

This function does a minimal Seconds test on the XRtcPsu device in polled mode.

This function checks the new second reporting feature of the RTC.

Parameters

  DeviceId | is the unique device id from hardware build.

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful

Note
  This function polls the RTC, it may hang if the hardware is not working correctly.

References XRtcPsu_Config::BaseAddr, XRtcPsu_IsSecondsEventGenerated(), XRtcPsu_LookupConfig(), and XRtcPsu_SelfTest().

Referenced by main().