pwm.h

Ir a la documentación de este archivo.
00001 #ifndef __PWM_H__
00002 #define __PWM_H__
00003 
00004 /*
00005   This code is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2, or (at your option)
00008    any later version.
00009    
00010    This code 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
00013    GNU General Public License for more details.
00014 */
00015 
00029 #include <tipos.h>
00030 
00035 #ifndef FOSC_HZ
00036         #warning "FOSC_HZ macro must be defined to PIC frecuency (in hz)."
00037         #warning "Get default value of 20000000"
00038         #define FOSC_HZ 20000000 
00039 #endif
00040 
00041 #define TMR2_PREESCALER_1  0
00042 #define TMR2_PREESCALER_4  1
00043 #define TMR2_PREESCALER_16 2
00044 
00054 void pwm1_set_data( BYTE Pr2,BYTE PreescalerTMR2,int16 CCPR1L_CCP1CON54);
00055 
00065 void pwm2_set_data( BYTE Pr2,BYTE PreescalerTMR2,int16 CCPR2L_CCP2CON54);
00066 
00067 #endif

Generado el Thu Jan 8 00:55:37 2009 para pic-gcc-library por  doxygen 1.5.1