Main Page   Modules   Data Structures   File List   Globals  

otos_cfg.h

Go to the documentation of this file.
00001 /*
00002 Copyright (c) 2002, 2003, Oliver Tscherwitschke
00003 All rights reserved.
00004 
00005 Redistribution and use in source and binary forms, with or without
00006 modification, are permitted provided that the following conditions are met:
00007 
00008 1. Redistributions of source code must retain the above copyright notice,
00009    this list of conditions and the following disclaimer.
00010 2. Redistributions in binary form must reproduce the above copyright notice,
00011    this list of conditions and the following disclaimer in the documentation
00012    and/or other materials provided with the distribution.
00013 3. The name of the author may not be used to endorse or promote products
00014    derived from this software without specific prior written permission.
00015 
00016 THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
00017 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00018 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00019 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00020 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00021 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
00022 OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
00023 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
00024 OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00025 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026 */
00027 
00034 #ifndef OTOS_CFG_H
00035 #define OTOS_CFG_H
00036 
00037 
00038 /* #defines for easier debugging */
00039 #undef  OTOS_DEBUG_RTC          /* if defined, don't use RTC */
00040 #undef  OTOS_DEBUG_STACK        /* if defined, functions for dumping stack are available */
00041 #undef  OTOS_DEBUG_TASK_QUEUES  /* if defined, functions for dumping task queues are available */
00042 
00043 #define OTOS_STACK_CHECK        /* if defined, otOS tries to detect stack overflows */
00044 #undef  OTOS_PROFILING          /* if defined, profiling is available */
00045 
00046 
00047 
00048 /* task properties */
00049 #define PRIO_IDLE   0           /* priority of the idle task must be zero! */
00050 #define STACK_IDLE  128         /* stack size of the idle task */
00051 #define NAME_IDLE   'I'         /* name of the idle task */
00052 
00053 #define PRIO_MAIN   128         /* priority of the main task */
00054 #define STACK_MAIN  256         /* stack size of the main task */
00055 #define NAME_MAIN   'M'         /* name of the main task */
00056 
00057 
00058 
00059 /*
00060  * Target specific memory settings
00061  */
00062  
00063 #if defined __AVR_ATmega103__
00064 /*****************************************************************************
00065  * ATmega103
00066  */
00067 
00068 #define EXTERNAL_RAM_START  0x8000
00069 #define EXTERNAL_RAM_END    0xffff
00070 
00071 /* set this to true, if you want otOS to support banking */
00072 #define OTOS_BANKING
00073 #define NUMBER_OF_BANKS 16
00074 
00075 
00076 
00077 #elif defined __AVR_ATmega128__
00078 /*****************************************************************************
00079  * ATmega128
00080  */
00081 
00082 #define EXTERNAL_RAM_START  0x8000
00083 #define EXTERNAL_RAM_END    0xffff
00084 
00085 /* set this to true, if you want otOS to support banking */
00086 #define OTOS_BANKING
00087 #define NUMBER_OF_BANKS 16
00088 
00089 
00090 
00091 #elif defined __AVR_ATmega163__
00092 /*****************************************************************************
00093  * ATmega163
00094  */
00095 
00096 
00097 #elif defined __AVR_ATmega323__
00098 /*****************************************************************************
00099  * ATmega163
00100  */
00101 
00102 #endif
00103 
00104 /* 
00105  * End of target specific memory settings
00106  */
00107 
00108 #endif

Generated on Sat Jan 25 18:41:43 2003 for otOS by doxygen1.3-rc2