![]() |
tmrctr
Vitis Drivers API Documentation
|
This file contains a example for using the Timer Counter hardware and driver.
None
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a sv 04/25/05 Initial release for TestApp integration. 2.00a ktn 11/26/09 Minor changes as per coding guidelines. 4.2 ms 01/23/17 Added 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. 4.15 bdk 12/08/25 Updated comments to support SDT flow for Doxygen documentation.
Functions | |
| int | TmrCtrSelfTestExample (UINTPTR BaseAddr) |
| This function does a minimal test on the TmrCtr device and driver as a design example. More... | |
| int | main (void) |
| Main function to call the example. More... | |
| int main | ( | void | ) |
Main function to call the example.
This function is not included if the example is generated from the TestAppGen test tool.
| None |
References TmrCtrSelfTestExample().
| int TmrCtrSelfTestExample | ( | UINTPTR | BaseAddr | ) |
This function does a minimal test on the TmrCtr device and driver as a design example.
The purpose of this function is to illustrate how to use the XTmrCtr component.
| BaseAddr | is the base address of the device |
| TmrCtrNumber | is the timer counter of the device to operate on. Each device may contain multiple timer counters. The timer number is a zero based number with a range of 0 - (XTC_DEVICE_TIMER_COUNT - 1). |
References XTmrCtr_Initialize(), and XTmrCtr_SelfTest().
Referenced by main().