Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

TPU driver


Functions

int TPU_initchannel (unsigned char nr)
 resets TPU channel nr. More...

int TPU_makepwm_TCR1 (unsigned char nr)
 configure TP channel as PWM output, clock source TCR1. More...

int TPU_makepwm_TCR2 (unsigned char nr)
 configure TP channel as PWM output, clock source TCR2. More...

int TPU_makepwm (unsigned char nr)
 configure TP channel as PWM output, default clock source. More...

int TPU_setpwmperiod (unsigned char nr, unsigned short period)
 sets the PWM period of TPU PWM channel nr to period. More...


Function Documentation

int TPU_initchannel unsigned char    nr
 

resets TPU channel nr.

Parameters:
TPU  channel nr

Definition at line 116 of file tpud.c.

References setCFSR, setCIER, setCPR, and setHSRR.

int TPU_makepwm unsigned char    nr
 

configure TP channel as PWM output, default clock source.

Definition at line 223 of file tpud.c.

References TPU_makepwm_TCR1.

int TPU_makepwm_TCR1 unsigned char    nr
 

configure TP channel as PWM output, clock source TCR1.

Definition at line 188 of file tpud.c.

References setCFSR, setCIER, setCPR, setHSRR, and setPAR.

Referenced by TPU_makepwm.

int TPU_makepwm_TCR2 unsigned char    nr
 

configure TP channel as PWM output, clock source TCR2.

Definition at line 205 of file tpud.c.

References setCFSR, setCIER, setCPR, setHSRR, and setPAR.

int TPU_setpwmperiod unsigned char    nr,
unsigned short    period
 

sets the PWM period of TPU PWM channel nr to period.

Parameters:
TPU  channel nr
timer  register value period

Definition at line 233 of file tpud.c.

References getCFSR, getHSRR, KERN_complain, setHSRR, setPAR, and WFSR.


Generated on Thu Feb 20 15:39:03 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002