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
20 #warning "This default file may only be used as an example!"
\r
32 #include "Pwm_Cfg.h"
\r
34 const Pwm_ConfigType PwmConfig =
\r
38 .channel = PWM_CHANNEL_1,
\r
39 DUTY_AND_PERIOD(0x6000,100),
\r
41 .polarity = POLARITY_NORMAL,
\r
42 .scaledClockEnable = 0,
\r
43 .idleState = PWM_LOW,
\r
44 .class = PWM_VARIABLE_PERIOD,
\r
47 .channel = PWM_CHANNEL_2,
\r
48 DUTY_AND_PERIOD(0x1000,100),
\r
50 .polarity = POLARITY_NORMAL,
\r
51 .scaledClockEnable = 1,
\r
52 .idleState = PWM_LOW,
\r
53 .class = PWM_VARIABLE_PERIOD,
\r
56 .busPrescalerA = PRESCALER_128,
\r
57 .busPrescalerB = PRESCALER_8,
\r