cpuTimers.c File Reference

#include "cpuTimers.h"
#include "cpu.h"

Go to the source code of this file.

Functions

void InitCpuTimers (void)
void InitCpuTimer (CPUTIMERSEnum cpuTimer)
void ConfigureCpuTimer (CPUTIMERSEnum cpuTimer, Uint32 Period, void(*interruptFCN)(void))

Variables

struct CPUTIMER_VARSIQ TIMLCpuTimer0
struct CPUTIMER_VARSIQ TIMLCpuTimer1
struct CPUTIMER_VARSIQ TIMLCpuTimer2

Function Documentation

void ConfigureCpuTimer ( CPUTIMERSEnum  cpuTimer,
Uint32  Period,
void(*)(void)  interruptFCN 
)

Configure T0, T1 or T2 timer.

Parameters:
cpuTimer Selected timer (CPUTIMER0, CPUTIMER1, CPUTIMER2)
Period Timer period in us
interruptFCN Function to be called on Timer period
Examples:
TIMotorLIBExampleHrdw/main.c, and TIMotorLIBExampleSw/main.c.

Definition at line 71 of file cpuTimers.c.

void InitCpuTimer ( CPUTIMERSEnum  cpuTimer  ) 

Initializes selected timer registers to a known state and CPUTIMER_VARSIQ structs. This function is called from ConfigureCpuTimer

Definition at line 44 of file cpuTimers.c.

void InitCpuTimers ( void   ) 

Initializes T0, T1, T2 registers to a known state and CPUTIMER_VARSIQ structs.

Definition at line 35 of file cpuTimers.c.


Variable Documentation

Definition at line 29 of file cpuTimers.c.

Definition at line 30 of file cpuTimers.c.

Definition at line 31 of file cpuTimers.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sat Apr 16 11:42:44 2011 for TIMotorLIB by  doxygen 1.6.3