]> rtime.felk.cvut.cz Git - arc.git/blob - examples/tiny/config/Os_Cfg.h
More updates on OS configuration. Fixes on Scheduletables. Started on kernel testsyst...
[arc.git] / examples / tiny / config / Os_Cfg.h
1 /* -------------------------------- Arctic Core ------------------------------
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com
3  *
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>
5  *
6  * This source code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 as published by the
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * for more details.
14  * -------------------------------- Arctic Core ------------------------------*/
15
16
17
18 #ifndef OS_CFG_H_
19 #define OS_CFG_H_
20
21 /*
22  * OsOs container
23  */
24 #define OS_SC1                                  STD_ON          /* | OS_SC2 | OS_SC3 | OS_SC4 */
25 #define OS_STACK_MONITORING             STD_ON
26 #define OS_STATUS_EXTENDED                      STD_ON          /* OS_STATUS_STANDARD */
27 #define OS_USE_GET_SERVICE_ID           STD_ON
28 #define OS_USE_PARAMETER_ACCESS STD_ON
29 #define OS_RES_SCHEDULER                        STD_ON
30
31 \r
32 /* os_config.h */\r
33 \r
34 #define APPLICATION_ID_application_1    0\r
35 #define APPLICATION_CNT                                 1\r
36 \r
37 #define TASK_ID_OsIdle                                  0\r
38 #define TASK_ID_etask_1                                 1\r
39 #define TASK_ID_etask_2                                 2\r
40 #define TASK_ID_btask_3                                 3\r
41 \r
42 void etask_1( void );\r
43 void etask_2( void );\r
44 void btask_3( void );\r
45 \r
46 //#define TASK_ID_os_tick                                       8\r
47 \r
48 #define COUNTER_ID_OsTick                               0
49 \r
50 // NOT GENERATED( for test system only )\r
51 #define SYSTEM_COUNTER_PERIOD                           100
52 #define OS_TICK_DURATION_IN_US                          2000\r
53
54 #if defined(USE_SIMPLE_PRINTF)\r
55 #define PRIO_STACK_SIZE                                         600
56 #else
57 #define PRIO_STACK_SIZE                                         200
58 #endif
59 \r
60 #define OS_INTERRUPT_STACK_SIZE                         200\r
61 \r
62 // Just define them if you want to use them.\r
63 #undef ALARM_USE\r
64 #undef SCHEDULETABLE_USE\r
65 #undef MESSAGE_USE\r
66 #undef EVENT_USE\r
67 #undef SERVICE_USE\r
68 \r
69 #define EVENT_0 (1<<0)\r
70 #define EVENT_1 (1<<1)\r
71 #define EVENT_2 (1<<2)\r
72 \r
73 \r
74 #endif /* OS_CFG_H_ */\r