]> rtime.felk.cvut.cz Git - arc.git/blob - boards/hcs12x_elmicro_tboard/config/Gpt_Cfg.c
0473818757150679d69df378b6042ac4ec34b74e
[arc.git] / boards / hcs12x_elmicro_tboard / config / Gpt_Cfg.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 #warning "This default file may only be used as an example!"\r
23 \r
24 \r
25 #include "Gpt.h"\r
26 #include "Gpt_Cfg.h"\r
27 #include <stdlib.h>\r
28 \r
29 #if defined(USE_KERNEL)\r
30 extern void OsTick( void );\r
31 #endif\r
32 \r
33 const Gpt_ConfigType GptConfigData[] =\r
34 {\r
35   {\r
36     .GptChannelId = GPT_CHANNEL_0,\r
37     .GptChannelMode = GPT_MODE_CONTINUOUS,\r
38     .GptChannelClkSrc = 0,\r
39     .GptNotification = NULL,\r
40     .GptEnableWakeup = TRUE,\r
41   },{\r
42     .GptChannelId = GPT_CHANNEL_1,\r
43     .GptChannelMode = GPT_MODE_CONTINUOUS,\r
44     .GptChannelClkSrc = 0,\r
45     .GptNotification = NULL,\r
46     .GptEnableWakeup = FALSE,\r
47   },{\r
48                 .GptChannelId = GPT_CHANNEL_2,\r
49                 .GptChannelMode = GPT_MODE_ONESHOT,\r
50                 .GptChannelClkSrc = 0,\r
51                 .GptNotification = NULL,\r
52                 .GptEnableWakeup = FALSE,\r
53   },{\r
54     .GptChannelId = GPT_CHANNEL_3,\r
55     .GptChannelMode = GPT_MODE_CONTINUOUS,\r
56     .GptChannelClkSrc = 0,\r
57     .GptNotification = NULL,\r
58     .GptEnableWakeup = FALSE,\r
59   },{\r
60     .GptChannelId = GPT_CHANNEL_4,\r
61     .GptChannelMode = GPT_MODE_ONESHOT,\r
62     .GptChannelClkSrc = 0,\r
63     .GptNotification = NULL,\r
64     .GptEnableWakeup = FALSE,\r
65   },{\r
66     .GptChannelId = GPT_CHANNEL_5,\r
67     .GptChannelMode = GPT_MODE_CONTINUOUS,\r
68     .GptChannelClkSrc = 0,\r
69     .GptNotification = NULL,\r
70     .GptEnableWakeup = FALSE,\r
71   },{\r
72     .GptChannelId = GPT_CHANNEL_6,\r
73     .GptChannelMode = GPT_MODE_ONESHOT,\r
74     .GptChannelClkSrc = 0,\r
75     .GptNotification = NULL,\r
76     .GptEnableWakeup = FALSE,\r
77   },{\r
78     .GptChannelId = GPT_CHANNEL_7,\r
79     .GptChannelMode = GPT_MODE_CONTINUOUS,\r
80     .GptChannelClkSrc = 0,\r
81     .GptNotification = NULL,\r
82     .GptEnableWakeup = FALSE,\r
83   },{\r
84     .GptChannelId = GPT_CHANNEL_8,\r
85     .GptChannelMode = GPT_MODE_ONESHOT,\r
86     .GptChannelClkSrc = 0,\r
87     .GptNotification = NULL,\r
88     .GptEnableWakeup = FALSE,\r
89   },\r
90   {\r
91         // Last channel in list\r
92         .GptChannelId = GPT_CHANNEL_ILL,\r
93   }\r
94 };\r