param.h

00001 /* param.h - 
00002    Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
00003 
00004 This file is free software; you can redistribute it and/or modify it
00005 under the terms of the GNU General Public License as published by the
00006 Free Software Foundation; either version 2, or (at your option) any
00007 later version.
00008 
00009 In addition to the permissions in the GNU General Public License, the
00010 Free Software Foundation gives you unlimited permission to link the
00011 compiled version of this file with other programs, and to distribute
00012 those programs without any restriction coming from the use of this
00013 file.  (The General Public License restrictions do apply in other
00014 respects; for example, they cover modification of the file, and
00015 distribution when not linked into another program.)
00016 
00017 This file is distributed in the hope that it will be useful, but
00018 WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 General Public License for more details.
00021 
00022 You should have received a copy of the GNU General Public License
00023 along with this program; see the file COPYING.  If not, write to
00024 the Free Software Foundation, 59 Temple Place - Suite 330,
00025 Boston, MA 02111-1307, USA.  */
00026 
00027 #ifndef _M68HC12_RSI_PARAM_H
00028 #define _M68HC12_RSI_PARAM_H
00029 
00030 /* RWE Schott Solar RSI board definitions.  */
00031 #define RSI_ARCH
00032 
00033 #include "regdefs.h"
00034 
00035 #define DIGITALPORTNUM 6
00036 #define IOCNUMPORTS 8
00037 #define PWMNUM 0//not used for this rev of software
00038 #define PWMSYS PWMNUM+IOCNUMPORTS
00039 #define DACPWM0 6
00040 #define DACPWMNUM 2
00041 #define EXDACNUM 4
00042 #define DTOANUM (EXDACNUM+DACPWMNUM)
00043 
00044 #undef M6811_DEF_BAUD
00045 #define M6811_DEF_BAUD 0x30            /* 9600 baud.  */
00046 
00047 #undef RAM_SIZE
00048 #define RAM_SIZE       0x2000           /* 8Kb of memory  */
00049 
00050 #undef ROM_SIZE
00051 #define ROM_SIZE       0x40000           /*256Kb of memory  */
00052 
00053 #undef DATA_SIZE
00054 # define DATA_SIZE     RAM_SIZE         /* Data section size.  */
00055 
00056 #undef TEXT_SIZE
00057 #define TEXT_SIZE      ROM_SIZE        /* Text section size.  */
00058 
00059 #define ATOD_RESOLUTION 1024
00060 #define ANALOG_VCC      5
00061 
00062 #define STATUS_PORT     PTM
00063 #define STATUS_CONFIG   DDRM
00064 #define STATUS_MASK     1
00065 
00066 #define RTS_ENABLE(port){DDRA=0x03;}
00067 #define RTS_ON(port)    {if(!port)PORTA=3;}
00068 #define RTS_OFF(port)   {if(!port)PORTA=0;}
00069 
00070 #define PORT232 0
00071 #define PORT422 1
00072 /* Number of COM Ports */
00073 #define NUM_COMPORTS 2
00074 
00075 #endif
00076 

Generated on Fri Mar 3 17:25:45 2006 for EMAC-HCS12-SDK by  doxygen 1.4.6