noscfg.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2004-2006, Dennis Kuschel.
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
00007  *  are met:
00008  *
00009  *   1. Redistributions of source code must retain the above copyright
00010  *      notice, this list of conditions and the following disclaimer.
00011  *   2. Redistributions in binary form must reproduce the above copyright
00012  *      notice, this list of conditions and the following disclaimer in the
00013  *      documentation and/or other materials provided with the distribution.
00014  *   3. The name of the author may not be used to endorse or promote
00015  *      products derived from this software without specific prior written
00016  *      permission. 
00017  *
00018  *  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
00019  *  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00020  *  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021  *  ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
00022  *  INDIRECT,  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00023  *  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00024  *  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00025  *  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
00026  *  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00027  *  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
00028  *  OF THE POSSIBILITY OF SUCH DAMAGE.
00029  *
00030  */
00031 
00032 
00044 #ifndef _NOSCFG_H
00045 #define _NOSCFG_H
00046 
00047 
00048 
00049 /*---------------------------------------------------------------------------
00050  *  MEMORY MANAGEMENT
00051  *-------------------------------------------------------------------------*/
00052 
00066 #define NOSCFG_FEATURE_MEMALLOC      1
00067 
00076 #define NOSCFG_MEM_MANAGER_TYPE      1
00077 
00084 #define NOSCFG_MEM_OVWR_STANDARD     1
00085 
00092 extern void *__heap_start;
00093 
00100 extern void *__heap_end;
00101 
00109 #define NOSCFG_MEM_USER_MALLOC       mymalloc
00110 
00118 #define NOSCFG_MEM_USER_FREE         myfree
00119 
00135 #define NOSCFG_STKMEM_RESERVE        0
00136 
00144 #define NOSCFG_MEM_MANAGE_MODE       0
00145 
00150 #define NOSCFG_FEATURE_MEMSET        1
00151 
00156 #define NOSCFG_FEATURE_MEMCOPY       1
00157 
00165 #define NOSCFG_FEATURE_REALLOC       0
00166 
00176 /*---------------------------------------------------------------------------
00177  *  ABSTRACTED PICO]OS FUNCTIONS
00178  *-------------------------------------------------------------------------*/
00179 
00196 #define NOSCFG_FEATURE_TASKCREATE    1
00197 
00203 #define NOSCFG_FEATURE_SEMAPHORES    POSCFG_FEATURE_SEMAPHORES
00204 
00210 #define NOSCFG_FEATURE_MUTEXES       POSCFG_FEATURE_MUTEXES
00211 
00216 #define NOSCFG_FEATURE_MSGBOXES      POSCFG_FEATURE_MSGBOXES
00217 
00223 #define NOSCFG_FEATURE_FLAGS         POSCFG_FEATURE_FLAGS
00224 
00230 #define NOSCFG_FEATURE_TIMER         POSCFG_FEATURE_TIMER
00231 
00236 /*---------------------------------------------------------------------------
00237  *  CONSOLE INPUT / OUTPUT
00238  *-------------------------------------------------------------------------*/
00239 
00252 #define NOSCFG_FEATURE_CONIN         1
00253 
00259 #define NOSCFG_CONIO_KEYBUFSIZE      10
00260 
00269 #define NOSCFG_FEATURE_CONOUT        1
00270 
00278 #define NOSCFG_FEATURE_PRINTF        1
00279 
00287 #define NOSCFG_FEATURE_SPRINTF       1
00288 
00293 /*---------------------------------------------------------------------------
00294  *  BOTTOM HALFS
00295  *-------------------------------------------------------------------------*/
00296 
00306 #define NOSCFG_FEATURE_BOTTOMHALF    1
00307 
00312 #define NOS_MAX_BOTTOMHALFS          8
00313 
00318 /*---------------------------------------------------------------------------
00319  *  CPU USAGE
00320  *-------------------------------------------------------------------------*/
00321 
00332 #define NOSCFG_FEATURE_CPUUSAGE      1
00333 
00338 /*---------------------------------------------------------------------------
00339  *  REGISTRY
00340  *-------------------------------------------------------------------------*/
00341 
00351 #define NOSCFG_FEATURE_REGISTRY      1
00352 
00357 #define NOSCFG_FEATURE_REGQUERY      1
00358 
00368 #define NOSCFG_FEATURE_USERREG       1
00369 
00374 #define NOS_MAX_REGKEYLEN            8
00375 
00383 #define NOS_REGKEY_PREALLOC          4
00384 
00389 #endif /* _NOSCFG_H */

Generated on Sat Dec 8 14:53:02 2007 for pico]OS by  doxygen 1.5.4