]> rtime.felk.cvut.cz Git - arc.git/blob - boards/hcs12_elmicro_card12/config/Pwm_Cfg.c
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / hcs12_elmicro_card12 / config / Pwm_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 #warning "This default file may only be used as an example!"\r
21 \r
22 \r
23 \r
24 \r
25 /*\r
26  * Pwm_Cfg.c\r
27  *\r
28  *      Author: jonte\r
29  */\r
30 \r
31 #include "Pwm.h"\r
32 #include "Pwm_Cfg.h"\r
33 \r
34 const Pwm_ConfigType PwmConfig =\r
35 {\r
36                 .channels = {\r
37                         {\r
38                                 .channel = PWM_CHANNEL_1,\r
39                                 DUTY_AND_PERIOD(0x6000,100),\r
40                                 .centerAlign = 0,\r
41                                 .polarity = POLARITY_NORMAL,\r
42                                 .scaledClockEnable = 0,\r
43                                 .idleState = PWM_LOW,\r
44                                 .class = PWM_VARIABLE_PERIOD,\r
45                         },\r
46                         {\r
47                                 .channel = PWM_CHANNEL_2,\r
48                                 DUTY_AND_PERIOD(0x1000,100),\r
49                                 .centerAlign = 0,\r
50                                 .polarity = POLARITY_NORMAL,\r
51                                 .scaledClockEnable = 1,\r
52                                 .idleState = PWM_LOW,\r
53                                 .class = PWM_VARIABLE_PERIOD,\r
54                         },\r
55                 },\r
56                 .busPrescalerA = PRESCALER_128,\r
57                 .busPrescalerB = PRESCALER_8,\r
58                 .prescalerA = 1,\r
59                 .prescalerB = 1,\r
60 };\r