pico]OS  1.0.4
noscfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2004-2012, Dennis Kuschel.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  * 3. The name of the author may not be used to endorse or promote
15  * products derived from this software without specific prior written
16  * permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
22  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
28  * OF THE POSSIBILITY OF SUCH DAMAGE.
29  *
30  */
31 
32 
44 #ifndef _NOSCFG_H
45 #define _NOSCFG_H
46 
47 
48 
49 /*---------------------------------------------------------------------------
50  * MEMORY MANAGEMENT
51  *-------------------------------------------------------------------------*/
52 
66 #define NOSCFG_FEATURE_MEMALLOC 1
67 
76 #define NOSCFG_MEM_MANAGER_TYPE 1
77 
84 #define NOSCFG_MEM_OVWR_STANDARD 1
85 
92 extern void *__heap_start;
93 
100 extern void *__heap_end;
101 
109 #define NOSCFG_MEM_USER_MALLOC mymalloc
110 
118 #define NOSCFG_MEM_USER_FREE myfree
119 
135 #define NOSCFG_STKMEM_RESERVE 0
136 
144 #define NOSCFG_MEM_MANAGE_MODE 0
145 
150 #define NOSCFG_FEATURE_MEMSET 1
151 
156 #define NOSCFG_FEATURE_MEMCOPY 1
157 
165 #define NOSCFG_FEATURE_REALLOC 0
166 
176 /*---------------------------------------------------------------------------
177  * ABSTRACTED PICO]OS FUNCTIONS
178  *-------------------------------------------------------------------------*/
179 
196 #define NOSCFG_FEATURE_TASKCREATE 1
197 
203 #define NOSCFG_FEATURE_SEMAPHORES POSCFG_FEATURE_SEMAPHORES
204 
210 #define NOSCFG_FEATURE_MUTEXES POSCFG_FEATURE_MUTEXES
211 
216 #define NOSCFG_FEATURE_MSGBOXES POSCFG_FEATURE_MSGBOXES
217 
223 #define NOSCFG_FEATURE_FLAGS POSCFG_FEATURE_FLAGS
224 
230 #define NOSCFG_FEATURE_TIMER POSCFG_FEATURE_TIMER
231 
236 /*---------------------------------------------------------------------------
237  * CONSOLE INPUT / OUTPUT
238  *-------------------------------------------------------------------------*/
239 
252 #define NOSCFG_FEATURE_CONIN 1
253 
259 #define NOSCFG_CONIO_KEYBUFSIZE 10
260 
269 #define NOSCFG_FEATURE_CONOUT 1
270 
278 #define NOSCFG_FEATURE_PRINTF 1
279 
287 #define NOSCFG_FEATURE_SPRINTF 1
288 
293 /*---------------------------------------------------------------------------
294  * BOTTOM HALFS
295  *-------------------------------------------------------------------------*/
296 
306 #define NOSCFG_FEATURE_BOTTOMHALF 1
307 
312 #define NOS_MAX_BOTTOMHALFS 8
313 
318 /*---------------------------------------------------------------------------
319  * CPU USAGE
320  *-------------------------------------------------------------------------*/
321 
332 #define NOSCFG_FEATURE_CPUUSAGE 1
333 
338 /*---------------------------------------------------------------------------
339  * REGISTRY
340  *-------------------------------------------------------------------------*/
341 
351 #define NOSCFG_FEATURE_REGISTRY 1
352 
357 #define NOSCFG_FEATURE_REGQUERY 1
358 
368 #define NOSCFG_FEATURE_USERREG 1
369 
374 #define NOS_MAX_REGKEYLEN 8
375 
383 #define NOS_REGKEY_PREALLOC 4
384 
389 #endif /* _NOSCFG_H */