iLLD_TC27xD
1.0
IfxStdIf_Timer.c
Go to the documentation of this file.
1
/**
2
* \file IfxStdIf_Timer.c
3
* \brief Standard interface: Timer
4
* \ingroup IfxStdIf
5
*
6
* \version iLLD_1_0_0_11_0
7
* \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8
*
9
*
10
* IMPORTANT NOTICE
11
*
12
*
13
* Infineon Technologies AG (Infineon) is supplying this file for use
14
* exclusively with Infineon's microcontroller products. This file can be freely
15
* distributed within development tools that are supporting such microcontroller
16
* products.
17
*
18
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21
* INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22
* OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23
*
24
*/
25
26
#include "
IfxStdIf_Timer.h
"
27
28
void
IfxStdIf_Timer_initConfig
(
IfxStdIf_Timer_Config
*config)
29
{
30
config->
frequency
= 1000;
31
config->
isrPriority
= 0;
32
config->
isrProvider
=
IfxSrc_Tos_cpu0
;
33
config->
minResolution
= 0;
34
config->
trigger
.
outputMode
=
IfxPort_OutputMode_pushPull
;
35
config->
trigger
.
outputDriver
=
IfxPort_PadDriver_cmosAutomotiveSpeed1
;
36
config->
trigger
.
risingEdgeAtPeriod
=
FALSE
;
37
config->
trigger
.
outputEnabled
=
FALSE
;
38
config->
trigger
.
enabled
=
FALSE
;
39
config->
trigger
.
triggerPoint
= 0;
40
config->
trigger
.
isrPriority
= 0;
41
config->
trigger
.
isrProvider
=
IfxSrc_Tos_cpu0
;
42
config->
countDir
=
IfxStdIf_Timer_CountDir_up
;
43
config->
startOffset
= 0.0;
44
}
45
home
mclld
Libraries
release
iLLD_1_0_0_11_0
src
ifx
SrvSw
StdIf
IfxStdIf_Timer.c
Generated by
1.8.4