]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc551xsim/config/Gpt_Cfg.c
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / mpc551xsim / 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 \r
23 \r
24 #warning "This default file may only be used as an example!"\r
25 \r
26 #include "Gpt.h"\r
27 #include "Gpt_Cfg.h"\r
28 #include <stdlib.h>\r
29 \r
30 #if defined(USE_KERNEL)\r
31 extern void OsTick( void );\r
32 #endif\r
33 \r
34 const Gpt_ConfigType GptConfigData[] =\r
35 {\r
36 #if defined(USE_KERNEL)\r
37    {\r
38                 .GptChannelId = GPT_CHANNEL_DEC,\r
39                 .GptChannelMode = GPT_MODE_CONTINUOUS,\r
40                 .GptChannelClkSrc = 0,\r
41                 .GptNotification = OsTick,\r
42                 .GptEnableWakeup = FALSE,\r
43                 .GptChannelPrescale = 0,\r
44         },\r
45 #endif\r
46    {\r
47                 // Last channel in list\r
48                 .GptChannelId = GPT_CHANNEL_ILL,\r
49         }\r
50 };\r