]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc5606s/config/LinSM_Cfg.h
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / mpc5606s / config / LinSM_Cfg.h
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 #warning "This default file may only be used as an example!"\r
24 \r
25 #ifndef LINSM_CFG_H_\r
26 #define LINSM_CFG_H_\r
27 \r
28 #include "Std_Types.h"\r
29 #include "LinIf_Cfg.h"\r
30 \r
31 // Own timeout configs in ticks\r
32 #define LINSM_SCHEDULE_REQUEST_TIMEOUT 1\r
33 #define LINSM_GOTO_SLEEP_TIMEOUT 2\r
34 #define LINSM_WAKEUP_TIMEOUT 1\r
35 \r
36 /* Switches the Development Error Detection and Notification\r
37 ON or OFF. */\r
38 #define LINSM_DEV_ERROR_DETECT STD_ON\r
39 \r
40 /* Switches the LINSM_GetVersionInfo function ON or OFF. */\r
41 #define LINSM_VERSION_INFO_API STD_ON\r
42 \r
43 typedef struct {\r
44         uint32 LinSMRxPduGroupRef;//ComIPduGroup\r
45         uint32 LinSMTxPduGroupRef;\r
46         const LinIf_ScheduleTableType *LinSMScheduleIndexRef;\r
47 }LinSM_ScheduleType;\r
48 \r
49 typedef struct {\r
50         float LinSMConfirmationTimeout;\r
51         boolean LinSMSleepSupport;\r
52         uint16 LinSMChannelIndex;\r
53         const LinSM_ScheduleType *LinSMSchedule;\r
54 }LinSM_ChannelType;\r
55 \r
56 extern const LinSM_ChannelType LinSMChannelType[];\r
57 \r
58 #endif /*LINSM_CFG_H_*/\r