ttcps
Vitis 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. 3.10 aru 05/30/19 Updated the example to use XTtcPs_InterruptHandler(). 3.16 adk 04/19/22 Fix infinite loop in the example by adding polled timeout loop. 3.18 gm 07/17/23 Invoke XTtcPs_Release to release ttc node.

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.