1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\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
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
14 * -------------------------------- Arctic Core ------------------------------*/
\r
22 #warning "This default file may only be used as an example!"
\r
26 #include "Gpt_Cfg.h"
\r
29 #if defined(USE_KERNEL)
\r
30 extern void OsTick( void );
\r
33 const Gpt_ConfigType GptConfigData[] =
\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
42 .GptChannelId = GPT_CHANNEL_1,
\r
43 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
44 .GptChannelClkSrc = 0,
\r
45 .GptNotification = NULL,
\r
46 .GptEnableWakeup = FALSE,
\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
54 .GptChannelId = GPT_CHANNEL_3,
\r
55 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
56 .GptChannelClkSrc = 0,
\r
57 .GptNotification = NULL,
\r
58 .GptEnableWakeup = FALSE,
\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
66 .GptChannelId = GPT_CHANNEL_5,
\r
67 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
68 .GptChannelClkSrc = 0,
\r
69 .GptNotification = NULL,
\r
70 .GptEnableWakeup = FALSE,
\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
78 .GptChannelId = GPT_CHANNEL_7,
\r
79 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
80 .GptChannelClkSrc = 0,
\r
81 .GptNotification = NULL,
\r
82 .GptEnableWakeup = FALSE,
\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
91 // Last channel in list
\r
92 .GptChannelId = GPT_CHANNEL_ILL,
\r