Main Page | File List | Globals

dio.h

Go to the documentation of this file.
00001 /* dio.h --- 
00002  * 
00003  * Filename: dio.h
00004  * Description: 
00005  * Author: Bryce Himebaugh
00006  * Maintainer: 
00007  * Created: Mon Oct 16 12:03:17 2006
00008  * Version: 
00009  * Last-Updated: 
00010  *           By: 
00011  *     Update #: 0
00012  * Keywords: 
00013  * Compatibility: 
00014  * 
00015  */
00016 
00017 /* Commentary: 
00018  * 
00019  * 
00020  * 
00021  */
00022 
00023 /* Change log:
00024  * 
00025  * 
00026  */
00027 
00028 /* This program is free software; you can redistribute it and/or modify
00029  * it under the terms of the GNU General Public License as published by
00030  * the Free Software Foundation; either version 2, or (at your option)
00031  * any later version.
00032  * 
00033  * This program is distributed in the hope that it will be useful,
00034  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00035  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00036  * GNU General Public License for more details.
00037  * 
00038  * You should have received a copy of the GNU General Public License
00039  * along with this program; see the file COPYING.  If not, write to the
00040  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00041  * Boston, MA 02111-1307, USA.
00042  */
00043 
00044 /* Code: */
00045 void init_dio(void);
00046 
00047 #define DS1 6
00048 #define DS2 7
00049 #define DS4 5
00050 #define P1 3 
00051 #define P2 2
00052 #define P3 1
00053 #define P4 0 
00054 
00055 #define DS1_ON P5OUT&=~(1<<DS1)
00056 #define DS1_OFF P5OUT|=(1<<DS1)
00057 
00058 #define DS2_ON P5OUT&=~(1<<DS2)
00059 #define DS2_OFF P5OUT|=(1<<DS2)
00060 
00061 #define DS4_ON P5OUT&=~(1<<DS4)
00062 #define DS4_OFF P5OUT|=(1<<DS4)
00063 
00064 #define P1_ON P5OUT&=~(1<<P1)
00065 #define P1_OFF P5OUT|=(1<<P1)
00066 
00067 #define P2_ON P5OUT&=~(1<<P2)
00068 #define P2_OFF P5OUT|=(1<<P2)
00069 
00070 #define P3_ON P5OUT&=~(1<<P3)
00071 #define P3_OFF P5OUT|=(1<<P3)
00072 
00073 #define P4_ON P5OUT&=~(1<<P4)
00074 #define P4_OFF P5OUT|=(1<<P4)
00075 
00076 
00077 
00078 
00079 /* dio.h ends here */

Generated on Fri Nov 3 14:40:12 2006 for hwiflib by  doxygen 1.3.9.1