Nut/OS  4.10.3
API Reference
m-can.h
Go to the documentation of this file.
00001 #ifndef _CFG_MCAN_H_
00002 #define _CFG_MCAN_H_
00003 
00004 /*
00005  * Copyright (C) 2004 by Ole Reinhardt<ole.reinhardt@kernelconcepts.de>
00006  * Kernel concepts (http://www.kernelconcepts.de) All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions
00010  * are met:
00011  *
00012  * 1. Redistributions of source code must retain the above copyright
00013  *    notice, this list of conditions and the following disclaimer.
00014  * 2. Redistributions in binary form must reproduce the above copyright
00015  *    notice, this list of conditions and the following disclaimer in the
00016  *    documentation and/or other materials provided with the distribution.
00017  * 3. Neither the name of the copyright holders nor the names of
00018  *    contributors may be used to endorse or promote products derived
00019  *    from this software without specific prior written permission.
00020  *
00021  * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS
00022  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00023  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00024  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE
00025  * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00026  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00027  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00028  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00029  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00030  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00031  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00032  * SUCH DAMAGE.
00033  *
00034  * For additional information see http://www.ethernut.de/
00035  *
00036  */
00037 
00038 /*
00039  * $Log$
00040  * Revision 1.4  2006/10/08 16:48:09  haraldkipp
00041  * Documentation fixed
00042  *
00043  * Revision 1.3  2005/08/02 17:46:48  haraldkipp
00044  * Major API documentation update.
00045  *
00046  * Revision 1.2  2005/05/27 14:08:01  olereinhardt
00047  * Changed specs to new m-can board design (LCD controller)
00048  *
00049  * Revision 1.1  2004/06/07 15:14:25  olereinhardt
00050  * Initial checkin
00051  *
00052  */
00053 
00058 
00064 /*
00065  * \brief Defines for CAN controller
00066  */
00067 
00068 #define SJA_SIGNAL     sig_INTERRUPT7
00069 #define SJA_EICR       EICRB
00070 #define SJA_SIGNAL_BIT 7
00071 
00072 /*
00073  * \brief LCD Display definitions
00074  */
00075  
00076 //#define KS0073_CONTROLLER 
00077 
00078 #define LCD_4x20
00079 
00080 
00081 #undef  LCD_DATA_PORT
00082 #undef  LCD_DATA_DDR
00083 #undef  LCD_DATA_BITS
00084 #undef  LCD_DATA_PIN
00085 
00086 #define LCD_DATA_PORT   PORTB   
00087 #define LCD_DATA_DDR    DDRB    
00088 #define LCD_DATA_BITS   0xFF    
00089 #define LCD_DATA_PIN    PINB    
00091 #undef  LCD_ENABLE_PORT
00092 #undef  LCD_ENABLE_DDR
00093 #undef  LCD_ENABLE_BIT
00094 
00095 #define LCD_ENABLE_PORT PORTE   
00096 #define LCD_ENABLE_DDR  DDRE    
00097 #define LCD_ENABLE_BIT  2       
00099 #undef  LCD_RW_PORT
00100 #undef  LCD_RW_DDR
00101 #undef  LCD_RW_BIT
00102 
00103 #define LCD_RW_PORT     PORTE   
00104 #define LCD_RW_DDR      DDRE    
00105 #define LCD_RW_BIT      1       
00107 #undef  LCD_REGSEL_PORT
00108 #undef  LCD_REGSEL_DDR
00109 #undef  LCD_REGSEL_BIT
00110 
00111 #define LCD_REGSEL_PORT PORTE   
00112 #define LCD_REGSEL_DDR  DDRE    
00113 #define LCD_REGSEL_BIT  0       
00116 
00117 #endif