iLLD_TC29x
1.0
Bsp.c
Go to the documentation of this file.
1
/**
2
* \file Bsp.c
3
* \brief Board support package
4
* \ingroup library_srvsw_sysse_bsp_bsp
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 "
Bsp.h
"
27
28
Ifx_TickTime
TimeConst
[
TIMER_COUNT
];
29
30
/** \brief Initialize the time constants.
31
*
32
* Initialize the time constants TimeConst_0s, TimeConst_100ns, TimeConst_1us,
33
* TimeConst_10us, TimeConst_100us, TimeConst_1ms, TimeConst_10ms, TimeConst_100ms,
34
* TimeConst_1s, TimeConst_10s
35
* \return None.
36
*/
37
void
initTime
(
void
)
38
{
39
sint32
Fsys =
IfxStm_getFrequency
(
BSP_DEFAULT_TIMER
);
40
41
TimeConst
[
TIMER_INDEX_10NS
] = Fsys / (1000000000 / 10);
42
TimeConst
[
TIMER_INDEX_100NS
] = Fsys / (1000000000 / 100);
43
TimeConst
[
TIMER_INDEX_1US
] = Fsys / (1000000 / 1);
44
TimeConst
[
TIMER_INDEX_10US
] = Fsys / (1000000 / 10);
45
TimeConst
[
TIMER_INDEX_100US
] = Fsys / (1000000 / 100);
46
TimeConst
[
TIMER_INDEX_1MS
] = Fsys / (1000 / 1);
47
TimeConst
[
TIMER_INDEX_10MS
] = Fsys / (1000 / 10);
48
TimeConst
[
TIMER_INDEX_100MS
] = Fsys / (1000 / 100);
49
TimeConst
[
TIMER_INDEX_1S
] = Fsys * (1);
50
TimeConst
[
TIMER_INDEX_10S
] = Fsys * (10);
51
TimeConst[
TIMER_INDEX_100S
] = Fsys * (100);
52
}
53
54
55
/** \brief Wait function.
56
*
57
* This is an empty function that just spend some time waiting.
58
*
59
* \return None.
60
*/
61
void
waitPoll
(
void
)
62
{}
63
64
/** \brief Wait time function.
65
*
66
* This is an empty function that that returns after the timeout elapsed. The
67
* minimal time spend in the function is guaranteed, but not the max time.
68
*
69
* \param timeout Specifies the time the function waits for before returning
70
*
71
* \return None.
72
*/
73
void
waitTime
(
Ifx_TickTime
timeout)
74
{
75
wait
(timeout);
76
}
home
mclld
Libraries
release
iLLD_1_0_0_11_0
src
ifx
SrvSw
SysSe
Bsp
Bsp.c
Generated by
1.8.4