]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc5606s/config/Dio_Lcfg.c
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / mpc5606s / config / Dio_Lcfg.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 #warning "This default file may only be used as an example!"\r
24 \r
25 #include "Dio.h"\r
26 #include "Dio_Cfg.h"\r
27 \r
28 const Dio_ChannelType DioChannelConfigData[] =\r
29 {\r
30         //DIO_CHANNEL_NAME_LEDS_LED4,\r
31         //DIO_CHANNEL_NAME_LEDS_LED5,\r
32         //DIO_CHANNEL_NAME_LEDS_LED6,\r
33         //DIO_CHANNEL_NAME_LEDS_LED7,\r
34         #if 0\r
35         DIO_CHANNEL_A0,\r
36         DIO_CHANNEL_A1,\r
37         DIO_CHANNEL_A2,\r
38         DIO_CHANNEL_A3,\r
39         #endif\r
40         DIO_CHANNEL_A4,\r
41         DIO_CHANNEL_A5,\r
42         DIO_CHANNEL_A6,\r
43         DIO_CHANNEL_A7,\r
44         #if 0\r
45         DIO_CHANNEL_A8,\r
46         DIO_CHANNEL_A9,\r
47         DIO_CHANNEL_A10,\r
48         DIO_CHANNEL_A11,\r
49         DIO_CHANNEL_A12,\r
50         DIO_CHANNEL_A13,\r
51         DIO_CHANNEL_A14,\r
52         DIO_CHANNEL_A15,\r
53         #endif\r
54         DIO_END_OF_LIST\r
55 };\r
56 \r
57 const Dio_PortType DioPortConfigData[] =\r
58 {\r
59         DIO_PORT_A,\r
60         /*DIO_PORT_NAME_LED_PORT, */\r
61         DIO_END_OF_LIST\r
62 };\r
63 \r
64 const Dio_ChannelGroupType DioConfigData[] =\r
65 {\r
66         { .port = DIO_PORT_A, .offset = 8, .mask = 0x0f00, },\r
67         { .port = DIO_END_OF_LIST, .offset = DIO_END_OF_LIST, .mask = DIO_END_OF_LIST, },\r
68 };\r
69 \r
70 \r
71 \r
72 uint32 Dio_GetPortConfigSize(void)\r
73 {\r
74         return sizeof(DioConfigData);\r
75 }\r
76 \r