ttcps
Xilinx SDK Drivers API Documentation
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. *

Functions

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

Function Documentation

◆ main()

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.