ttcps: xttcps_rtc_example.c File Reference

| ttcps Xilinx SDK Drivers API Documentation

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

Functions
xttcps_rtc_example.c File Reference

## Overview

This example uses one timer/counter to make a real time clock.

The number of minutes and seconds is displayed on the console.

Note

     MODIFICATION HISTORY:

     Ver  Who    Date     Changes

     1.00 drg/jz 01/23/10 First release
     3.01 pkp         01/30/16 Modified SetupTimer to remove XTtcps_Stop before TTC
                                               configuration as it is added in xttcps.c in
                                               XTtcPs_CfgInitialize
     3.2  mus    10/28/16 Updated TmrCntrSetup as per prototype of
                          XTtcPs_CalcIntervalFromFreq
          ms     01/23/17 Modified xil_printf statement in main function to
                          ensure that "Successfully ran" and "Failed" strings
                          are available in all examples. This is a fix for
                          CR-965028.
     3.10 aru    05/30/19 Updated the example to use XTtcPs_InterruptHandler().

## Functions
int | main (void)
| This is the main function that calls the TTC RTC interrupt example. More...

## Function Documentation

int main | ( | void |  | ) |

This is the main function that calls the TTC RTC interrupt example.

Parameters

  None |

Returns
  - XST_SUCCESS to indicate Success
  - XST_FAILURE to indicate a Failure.

Note
  None.