iLLD_TC27xD
1.0
IfxPort_Io.c
Go to the documentation of this file.
1
/**
2
* \file IfxPort_Io.c
3
* \brief PORT IO details
4
*
5
* \version iLLD_1_0_0_11_0
6
* \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
7
*
8
*
9
* IMPORTANT NOTICE
10
*
11
*
12
* Infineon Technologies AG (Infineon) is supplying this file for use
13
* exclusively with Infineon's microcontroller products. This file can be freely
14
* distributed within development tools that are supporting such microcontroller
15
* products.
16
*
17
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
18
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
19
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
20
* INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
21
* OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
22
*
23
*/
24
25
/******************************************************************************/
26
/*----------------------------------Includes----------------------------------*/
27
/******************************************************************************/
28
29
#include "
IfxPort_Io.h
"
30
31
/******************************************************************************/
32
/*-------------------------Function Implementations---------------------------*/
33
/******************************************************************************/
34
35
void
IfxPort_Io_initModule
(
const
IfxPort_Io_Config
*config)
36
{
37
IfxPort_Io_ConfigPin
*pinTable = (
IfxPort_Io_ConfigPin
*)&config->
pinTable
[0];
38
39
uint32
i;
40
41
for (i = 0; i < config->
size
; i++, ++pinTable)
42
{
43
IfxPort_Pin
*pin = (
IfxPort_Pin
*)pinTable->
pin
;
44
IfxPort_setPinMode
(pin->
port
, pin->
pinIndex
, pinTable->
mode
);
45
IfxPort_setPinPadDriver
(pin->
port
, pin->
pinIndex
, pinTable->
padDriver
);
46
}
47
}
home
mclld
Libraries
release
iLLD_1_0_0_11_0
src
ifx
TC27xD
Port
Io
IfxPort_Io.c
Generated by
1.8.4