scutimer: xscutimer_polled_example.c File Reference

| scutimer Xilinx SDK Drivers API Documentation

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

Functions
xscutimer_polled_example.c File Reference

## Overview

This file contains a design example using the Scu Private Timer driver (XScuTimer) and hardware timer device.

This test assumes Auto Reload mode is not enabled.

Note
  None.

MODIFICATION HISTORY:

      Ver   Who  Date     Changes

      1.00a nm   03/10/10 First release
    *

## Functions
int | ScuTimerPolledExample (u16 DeviceId)
| This function does a minimal test on the SCU Private timer device and driver. More...
int | main (void)
| Main function to call the Scu Private Timer polled mode example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the Scu Private Timer polled mode example.

Parameters

  None. |

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful.

Note
  None.

References ScuTimerPolledExample().

int ScuTimerPolledExample | ( | u16 | DeviceId | ) |

This function does a minimal test on the SCU Private timer device and driver.

The purpose of this function is to illustrate how to use the XScuTimer driver.

Parameters

  DeviceId | is the unique device id of the device.

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None.

References XScuTimer_Config::BaseAddr, XScuTimer_CfgInitialize(), XScuTimer_GetCounterValue, XScuTimer_LoadTimer, XScuTimer_LookupConfig(), and XScuTimer_Start().

Referenced by main().