]> rtime.felk.cvut.cz Git - arc.git/blob - boards/stm32_mcbstm32/config/Dio_Lcfg.c
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / stm32_mcbstm32 / 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 #include "Dio.h"\r
16 #include "Dio_Cfg.h"\r
17 \r
18 const Dio_ChannelType DioChannelConfigData[] =\r
19 {\r
20                 DIO_CHANNEL_NAME_LED_CHANNEL1,\r
21                 DIO_CHANNEL_NAME_LED_CHANNEL2,\r
22         DIO_END_OF_LIST,\r
23 };\r
24 \r
25 const Dio_PortType DioPortConfigData[] =\r
26 {\r
27                 DIO_PORT_NAME_LED_PORT,\r
28         DIO_END_OF_LIST\r
29 };\r
30 \r
31 const Dio_ChannelGroupType DioConfigData[] =\r
32 {\r
33   { .port = DIO_PORT_B, .offset = 7, .mask = 0x80, },\r
34   { .port = DIO_END_OF_LIST, .offset = DIO_END_OF_LIST, .mask = DIO_END_OF_LIST, },\r
35 };\r
36 \r
37 uint32 Dio_GetPortConfigSize(void)\r
38 {\r
39   return sizeof(DioConfigData);\r
40 }\r