]> rtime.felk.cvut.cz Git - arc.git/blob - boards/mpc5516it/config/Pwm_Cfg.c
Cleanup of some drivers. Re-generated examples for mpc551xsim
[arc.git] / boards / mpc5516it / 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 \r
21 \r
22 \r
23 /*\r
24  * Pwm_Cfg.c\r
25  *\r
26  *  Created on: 2009-jul-09\r
27  *      Author: nian\r
28  */\r
29 \r
30 #warning "This default file may only be used as an example!"\r
31 \r
32 #include "Pwm.h"\r
33 #include "Pwm_Cfg.h"\r
34 \r
35 extern void MyPwmNotificationRoutine(void);\r
36 \r
37 const Pwm_ConfigType PwmConfig = {\r
38         .Channels = {\r
39                 PWM_CHANNEL_CONFIG(PWM_CHANNEL_1, 3000, 0x6000, PWM_CHANNEL_PRESCALER_4, PWM_HIGH),\r
40                 PWM_CHANNEL_CONFIG(PWM_CHANNEL_2, 2000, 0x2000, PWM_CHANNEL_PRESCALER_2, PWM_LOW)\r
41         },\r
42 #if PWM_NOTIFICATION_SUPPORTED==STD_ON\r
43         .NotificationHandlers = {\r
44                         MyPwmNotificationRoutine, // PWM_CHANNEL_1\r
45                         NULL                      // PWM_CHANNEL_2\r
46         }\r
47 #endif\r
48 };\r