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

/projects/cubeos/src_current/drivers/tpu/tpud.h

Go to the documentation of this file.
00001 /*  src_experimental/drivers/tpu/tpud.h
00002     CubeOS Version 0.4.90 experimental
00003     Copyright (C) 1999,2000 Holger Kenn
00004 
00005     CubeOS is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or any later version.
00009 
00010     CubeOS is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015 */  
00016 #ifndef _TPUD_H
00017 #define _TPUD_H
00018 
00019 #define TPU_ILEVEL 0x4 
00020 #define TCR1FREQ 1000000 
00021 #define TCR2FREQ 1000000 
00022 
00023 int TPU_init();
00024 int TPU_makepwm(unsigned char nr);
00025 int TPU_initchannel(unsigned char nr);
00026 int TPU_setpwmperiod(unsigned char nr, unsigned short period);
00027 int TPU_setpwmdc(unsigned char nr, unsigned char hightime);
00028 int TPU_makepac(unsigned char nr);
00029 int TPU_makeqd(unsigned char ch1,unsigned char ch2);
00030 unsigned short TPU_getpac(unsigned char nr);
00031 short TPU_getqd(unsigned char nr);
00032 short TPU_readqd(unsigned char nr);
00033 int TPU_setisr(unsigned char ch, void (*isr) (void));
00034 int TPU_clearisr(unsigned char ch, void (*isr) (void));
00035 int TPU_makedio(unsigned char nr);
00036 int TPU_setdio(unsigned char nr, unsigned char v);
00037 
00038 
00039 #endif
00040 

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