]> rtime.felk.cvut.cz Git - arc.git/blob - examples/pwm_node/config/Os_Cfg.h
Initial commit.
[arc.git] / examples / pwm_node / 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
19
20
21
22
23 /*\r
24  * Os_Cfg.h\r
25  *\r
26  *  Created on: 2008-dec-22\r
27  *      Author: mahi\r
28  */\r
29 #ifndef OS_CFG_H_\r
30 #define OS_CFG_H_\r
31 \r
32 #include <limits.h>\r
33 \r
34 //      APPS\r
35 #define BLINKER_APP_ID                                          122\r
36 #define APPLICATION_CNT                                         1\r
37 \r
38 // TASKS\r
39 #define TASK_ID_OsIdle                                          0\r
40 #define TASK_ID_bTask25                                         1\r
41 #define TASK_ID_bTask100                                        2\r
42 #define TASK_ID_Startup                                         3\r
43 \r
44 void OsIdle( void );\r
45 void Startup( void );\r
46 void bTask25( void );\r
47 void bTask100( void );\r
48 \r
49 // ALARMS\r
50 #define ALARM_USE\r
51 #define ALARM_ID_bTask25                                        0\r
52 #define ALARM_ID_bTask100                                       1\r
53 \r
54 // RESOURCES\r
55 #define RES_ID_BLINK                                            1 // Den mysko RES_SCHEDULER är ju nr 0\r
56 \r
57 // MISC\r
58 #define USE_IDLE_TASK\r
59 #define PRIO_STACK_SIZE                                         4096\r
60 #define OS_INTERRUPT_STACK_SIZE                         4096\r
61 #define EVENT_BLINK     (1<<0)\r
62 \r
63 #endif /* OS_CFG_H_ */\r