iLLD_TC29x  1.0
CompilerDcc.c
Go to the documentation of this file.
1 /**
2  * \file CompilerDcc.c
3  *
4  * \version iLLD_1_0_0_11_0
5  * \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
6  *
7  *
8  * IMPORTANT NOTICE
9  *
10  *
11  * Infineon Technologies AG (Infineon) is supplying this file for use
12  * exclusively with Infineon's microcontroller products. This file can be freely
13  * distributed within development tools that are supporting such microcontroller
14  * products.
15  *
16  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
17  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
18  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
19  * INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
20  * OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
21  *
22  */
23 
24 #include "Cpu/Std/Ifx_Types.h"
25 #include "Compilers.h"
26 
27 #if defined(__DCC__)
28 /*!
29  * \brief Initializes C variables
30  *
31  * This function is called in the startup. This function initialize the all variables in .data section
32  * and clears the .bss section
33  *
34  * Parameters: Nil
35  * Return: Nil
36  */
37 void Ifx_C_Init(void)
38 {
39  extern void __init_main(void);
40 
41  __init_main(); /* initialize data */
42 }
43 
44 
45 #ifndef IFX_CFG_USE_COMPILER_DEFAULT_LINKER
46 /*Dummy main function
47  * This function is required only for the Windriver, which looks for main while linking
48  * ! DO NOT USE THIS FUNCTION !*/
49 int main(void)
50 {
51  return 0;
52 }
53 
54 
55 #endif /*IFX_CFG_USE_COMPILER_DEFAULT_LINKER */
56 #endif