param.h

Description | Download | Table of Contents | Modules | Compound List | File List | Functions


Overview
Compiler
Documentation
Examples
Misc
Help
IDE & Tools

Download
Install

Links
Projects






00001 /* param.h - Board specific parameters
00002    Copyright (C) 2000, 2001 Free Software Foundation, Inc.
00003    Written by Stephane Carrez (stcarrez@worldnet.fr)    
00004 
00005 This file is free software; you can redistribute it and/or modify it
00006 under the terms of the GNU General Public License as published by the
00007 Free Software Foundation; either version 2, or (at your option) any
00008 later version.
00009 
00010 In addition to the permissions in the GNU General Public License, the
00011 Free Software Foundation gives you unlimited permission to link the
00012 compiled version of this file with other programs, and to distribute
00013 those programs without any restriction coming from the use of this
00014 file.  (The General Public License restrictions do apply in other
00015 respects; for example, they cover modification of the file, and
00016 distribution when not linked into another program.)
00017 
00018 This file is distributed in the hope that it will be useful, but
00019 WITHOUT ANY WARRANTY; without even the implied warranty of
00020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021 General Public License for more details.
00022 
00023 You should have received a copy of the GNU General Public License
00024 along with this program; see the file COPYING.  If not, write to
00025 the Free Software Foundation, 59 Temple Place - Suite 330,
00026 Boston, MA 02111-1307, USA.  */
00027 
00028 #ifndef _M68HC11_PARAM_H
00029 #define _M68HC11_PARAM_H
00030 
00038 
00039 /* Axiom Manufacturing CME11E9-EVBU board definitions.  */
00040 #ifdef AX_CME11E9
00041 # define M6811_DEF_BAUD 0x30            /* 9600 baud.  */
00042 # define RAM_SIZE       32768           /* 32Kb of memory (43256).  */
00043 # define ROM_SIZE       8192            /* 8Kb eeprom (2864).  */
00044 # define DATA_SIZE      (0x1000-0x040)  /* Data section size.  */
00045 # define TEXT_SIZE      8192            /* Text section size.  */
00046 #endif
00047 
00048 /* Generic 32K board.  */
00049 #ifdef M6811_32K
00050 # define M6811_DEF_BAUD 0x30            /* 9600 baud.  */
00051 # define RAM_SIZE       32768           /* 32Kb of memory.  */
00052 # define ROM_SIZE       32768           /* 32Kb of rom.  */
00053 # define DATA_SIZE      (0x8000-0x1040) /* Data section size.  */
00054 # define TEXT_SIZE      ROM_SIZE        /* Text section size.  */
00055 #endif
00056 
00057 /* EBCS board.  */
00058 #ifdef EBCS
00059 # define M6811_DEF_BAUD 0x30            /* 1200 baud (bootstrap mode).  */
00060 # define RAM_SIZE       8192            /* 8K of ram, 512b for data.  */
00061 # define ROM_SIZE       7680            /* the rest for text  */
00062 # define DATA_SIZE      (0x1ff)         /* Data section size.  */
00063 # define TEXT_SIZE      ROM_SIZE        /* Text section size.  */
00064 #endif
00065 
00072 #ifndef DATA_SIZE
00073 # define DATA_SIZE      (1024)
00074 #endif
00075 
00080 #ifndef TEXT_SIZE
00081 # define TEXT_SIZE      (1024)
00082 #endif
00083 
00088 #ifndef M6811_CPU_CLOCK
00089 # define M6811_CPU_CLOCK (8000000L)
00090 #endif
00091 
00096 #ifndef M6811_CPU_E_CLOCK
00097 # define M6811_CPU_E_CLOCK (M6811_CPU_CLOCK / 4)
00098 #endif
00099 
00100 
00109 #ifndef M6811_DEF_BAUD
00110 # define M6811_DEF_BAUD   0x33
00111 #endif
00112 
00118 #ifndef M6811_USE_COP
00119 # define M6811_USE_COP 0
00120 #endif
00121 
00124 #endif

Description | Download | Table of Contents | Modules | Compound List | File List | Functions

    Last modified,
    Apr 16, 2001
[ Copying ]     [ Feedback to Stephane.Carrez@worldnet.fr ]