1 /* -------------------------------- Arctic Core ------------------------------
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
6 * This source code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by the
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * -------------------------------- Arctic Core ------------------------------*/
26 * Created on: 2009-jul-09
33 /****************************************************************************
34 * Global configuration options and defines
41 * PWM003: The detection of development errors is configurable (ON/OFF) at
42 * pre-compile time. The switch PwmDevErorDetect shall activate or disable
43 * the detection of all development errors
45 #define PWM_DEV_EROR_DETECT ON
46 #define PWM_GET_OUTPUT_STATE ON
47 #define PWM_STATICALLY_CONFIGURED OFF
48 #define PWM_NOTIFICATION_SUPPORTED ON
49 #define PWM_SET_PERIOD_AND_DUTY ON
50 #define PWM_DEINIT_API ON
53 * PWM132: Switch for enabling the update of duty cycle parameter at the end
54 * of the current period.
56 * Note: Currently only ON mode is supported.
58 #define PWM_DUTYCYCLE_UPDATED_ENDPERIOD ON
60 /****************************************************************************
61 * Not defined in AUTOSAR.
63 #define PWM_ISR_PRIORITY 1
64 #define PWM_PRESCALER 64
66 * Setting to ON freezes the current output state of a PWM channel when in
69 #define PWM_FREEZE_ENABLE ON
71 /****************************************************************************
72 * Enumeration of channels
73 * Maps a symbolic name to a hardware channel
76 #ifdef CFG_BRD_MPC5516IT
77 PWM_CHANNEL_1 = 13, /* Emios channel 13 and 12 map to the */
78 PWM_CHANNEL_2 = 12, /* LEDs LD4 and LD5 of MPC5516IT */
80 #elif defined(CFG_BRD_MPC5567QRTECH)
81 PWM_CHANNEL_1 = 10, /* Emios channel 10 maps to PCR189 which
82 * is available on pin 54 of the
83 * ERNI 154822 connector
85 PWM_CHANNEL_2 = 12, /* Channel 12 goes to PCR191, also
86 * available on the ERNI 154822 connector
89 #warning "Unknown board or CFG_BRD_* undefined"
91 PWM_NUMBER_OF_CHANNELS = 2
92 } Pwm_NamedChannelsType;
94 #endif /* PWM_CFG_H_ */