]> rtime.felk.cvut.cz Git - arc.git/blob - rte/rte.c
Merge branch 'mikulka' of git@rtime.felk.cvut.cz:arc into mikulka
[arc.git] / rte / rte.c
1 /* -------------------------------- Arctic Core ------------------------------\r
2  * Arctic Core - the open source AUTOSAR platform http://arccore.com\r
3  *\r
4  * Copyright (C) 2009  ArcCore AB <contact@arccore.com>\r
5  *\r
6  * This source code is free software; you can redistribute it and/or modify it\r
7  * under the terms of the GNU General Public License version 2 as published by the\r
8  * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.\r
9  *\r
10  * This program is distributed in the hope that it will be useful, but\r
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r
12  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\r
13  * for more details.\r
14  * -------------------------------- Arctic Core ------------------------------*/\r
15 \r
16 \r
17 \r
18 \r
19 \r
20 \r
21 \r
22 \r
23 \r
24 /* This file contains all runnable and instansiation */\r
25 \r
26 //-------------------------------------------------------------------\r
27 // \r
28 // Runnable entity\r
29 //\r
30 //<void|Std_ReturnType> Rte_<name>( [IN Rte_Instance <instance>], [role parameters])\r
31 \r
32 // Triggered by RTEEvent(always) \r
33 void Rte_Runnable_10ms( Rte_Instance ) {\r
34         \r
35\r
36 \r
37 \r
38 //-------------------------------------------------------------------\r
39 // Applicatio headers\r
40 \r
41 typedef struct {\r
42         uint8 value;\r
43 } Rte_DE_uint8;\r
44 \r
45 typedef struct {\r
46         uint8 value;\r
47         Std_ReturnType status;\r
48 } Rte_DES_uint8;\r
49 \r
50 // re - runnable entity\r
51 Rte_DE_uint8* re1_doors_get_status; \r
52 \r
53 #define Rte_IRead_re1_doors_get_status(inst, data) ((inst)->doors_get_status\r
54 \r
55 //-------------------------------------------------------------------\r
56 // Application code\r
57 \r
58 void Doors( void ) {\r
59                         \r
60 }\r
61 \r
62 // Call in runnable\r
63 void Doors_periodic( void ) {\r
64         // read the door status from I/O HW\r
65         int door_status;\r
66         Rte_Read_io_\r
67         Rte_IRead_Runnable_10ms_io_ \r
68         \r
69 }\r
70 \r
71 \r