projekty/Source/example1/src/PWM.h

Go to the documentation of this file.
00001 /* $Id: PWM.h,v 1.00 2005/07/04 15:22:00 BorisK Exp $
00002 *
00003 * Copyright (C) 2005 ONTRACK s.r.o.
00004 * 
00005 *  This program is free software; you can redistribute it and/or
00006 *  modify it under the terms of the GNU General Public License
00007 *  as published by the Free Software Foundation; either version 2
00008 *  of the License, or (at your option) any later version.
00009 * 
00010 *  This program 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 *  You should have received a copy of the GNU General Public License
00016 *  along with this program; if not, write to the Free Software
00017 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00018 *  02111-1307, USA.
00019 * 
00020 *  Written by Boris Kralik <kralikbo@yahoo.com>, 2005.
00021 */
00022 #ifndef PWM_H
00023 #define PWM_H
00024 #include "lpc2119.h"
00025 #include "types.h"
00026 typedef struct {
00027         uint32_t        PR;
00028         uint32_t        MR0;
00029         uint32_t        MR1;
00030         uint32_t        MR2;
00031         uint32_t        MR3;
00032         uint32_t        MR4;
00033         uint32_t        MR5;
00034         uint32_t        MR6;
00035 }PWM;
00036 void PWMInitialize(PWM);
00037 void PWMCounterEnable(void);
00038 void PWMCounterReset(void);
00039 void PWMEnable(void);
00040 uint8_t PWMpinsInitialize(uint8_t chWhich);
00041 #endif

Generated on Fri Sep 21 13:41:54 2007 for example1 by  doxygen 1.4.7