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
24 #warning "This default file may only be used as an example!"
\r
27 #include "Gpt_Cfg.h"
\r
30 #if defined(USE_KERNEL)
\r
31 extern void OsTick( void );
\r
34 const Gpt_ConfigType GptConfigData[] =
\r
37 .GptChannelId = GPT_CHANNEL_PIT_0,
\r
38 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
39 .GptChannelClkSrc = 0,
\r
40 .GptNotification = NULL,
\r
41 .GptChannelPrescale = 0,
\r
42 .GptEnableWakeup = TRUE,
\r
44 .GptChannelId = GPT_CHANNEL_PIT_1,
\r
45 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
46 .GptChannelClkSrc = 0,
\r
47 .GptNotification = NULL,
\r
48 .GptChannelPrescale = 0,
\r
49 .GptEnableWakeup = FALSE,
\r
51 .GptChannelId = GPT_CHANNEL_PIT_2,
\r
52 .GptChannelMode = GPT_MODE_ONESHOT,
\r
53 .GptChannelClkSrc = 0,
\r
54 .GptNotification = NULL,
\r
55 .GptChannelPrescale = 0,
\r
56 .GptEnableWakeup = FALSE,
\r
58 .GptChannelId = GPT_CHANNEL_PIT_3,
\r
59 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
60 .GptChannelClkSrc = 0,
\r
61 .GptNotification = NULL,
\r
62 .GptChannelPrescale = 0,
\r
63 .GptEnableWakeup = FALSE,
\r
65 .GptChannelId = GPT_CHANNEL_PIT_4,
\r
66 .GptChannelMode = GPT_MODE_ONESHOT,
\r
67 .GptChannelClkSrc = 0,
\r
68 .GptNotification = NULL,
\r
69 .GptChannelPrescale = 0,
\r
70 .GptEnableWakeup = FALSE,
\r
72 .GptChannelId = GPT_CHANNEL_PIT_5,
\r
73 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
74 .GptChannelClkSrc = 0,
\r
75 .GptNotification = NULL,
\r
76 .GptChannelPrescale = 0,
\r
77 .GptEnableWakeup = FALSE,
\r
79 .GptChannelId = GPT_CHANNEL_PIT_6,
\r
80 .GptChannelMode = GPT_MODE_ONESHOT,
\r
81 .GptChannelClkSrc = 0,
\r
82 .GptNotification = NULL,
\r
83 .GptChannelPrescale = 0,
\r
84 .GptEnableWakeup = FALSE,
\r
86 .GptChannelId = GPT_CHANNEL_PIT_7,
\r
87 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
88 .GptChannelClkSrc = 0,
\r
89 .GptNotification = NULL,
\r
90 .GptChannelPrescale = 0,
\r
91 .GptEnableWakeup = FALSE,
\r
93 .GptChannelId = GPT_CHANNEL_PIT_8,
\r
94 .GptChannelMode = GPT_MODE_ONESHOT,
\r
95 .GptChannelClkSrc = 0,
\r
96 .GptNotification = NULL,
\r
97 .GptChannelPrescale = 0,
\r
98 .GptEnableWakeup = FALSE,
\r
100 .GptChannelId = GPT_CHANNEL_DEC,
\r
101 .GptChannelMode = GPT_MODE_CONTINUOUS,
\r
102 .GptChannelClkSrc = 0,
\r
103 #if defined(USE_KERNEL)
\r
104 .GptNotification = OsTick,
\r
106 .GptNotification = NULL,
\r
108 .GptEnableWakeup = FALSE,
\r
109 .GptChannelPrescale = 0,
\r
111 // Last channel in list
\r
112 .GptChannelId = GPT_CHANNEL_ILL,
\r