]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4500_IAR/system/low_level_init.c
Add FreeRTOS-Plus directory.
[freertos] / FreeRTOS / Demo / CORTEX_M4F_Infineon_XMC4500_IAR / system / low_level_init.c
1 /**************************************************\r
2  *\r
3  * This module contains the function `__low_level_init', a function\r
4  * that is called before the `main' function of the program.  Normally\r
5  * low-level initializations - such as setting the prefered interrupt\r
6  * level or setting the watchdog - can be performed here.\r
7  *\r
8  * Note that this function is called before the data segments are\r
9  * initialized, this means that this function cannot rely on the\r
10  * values of global or static variables.\r
11  *\r
12  * When this function returns zero, the startup code will inhibit the\r
13  * initialization of the data segments. The result is faster startup,\r
14  * the drawback is that neither global nor static data will be\r
15  * initialized.\r
16  *\r
17  * Copyright 1999-2004 IAR Systems. All rights reserved.\r
18  *\r
19  * $Revision: 50082 $\r
20  *\r
21  **************************************************/\r
22 \r
23  \r
24  \r
25 #ifdef __cplusplus\r
26 extern "C" {\r
27 #endif\r
28 \r
29 #include "System_XMC4500.h"\r
30 \r
31 #pragma language=extended\r
32 \r
33 __interwork int __low_level_init(void);\r
34 \r
35 __interwork int __low_level_init(void)\r
36 {\r
37   /*==================================*/\r
38   /*  Initialize hardware.            */\r
39   /*==================================*/\r
40 \r
41   /*==================================*/\r
42   /* Choose if segment initialization */\r
43   /* should be done or not.           */\r
44   /* Return: 0 to omit seg_init       */\r
45   /*         1 to run seg_init        */\r
46   /*==================================*/\r
47   \r
48   \r
49   /* Init clock Sys clk 96MHz, MCU clk 96MHz, PB clk 48MHz */\r
50   SystemInit();\r
51   \r
52   \r
53   return 1;\r
54 }\r
55 \r
56 #pragma language=default\r
57 \r
58 #ifdef __cplusplus\r
59 }\r
60 #endif\r