1 /**************************************************
\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
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
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
17 * Copyright 1999-2004 IAR Systems. All rights reserved.
\r
19 * $Revision: 50082 $
\r
21 **************************************************/
\r
29 #include "System_XMC4500.h"
\r
31 #pragma language=extended
\r
33 __interwork int __low_level_init(void);
\r
35 __interwork int __low_level_init(void)
\r
37 /*==================================*/
\r
38 /* Initialize hardware. */
\r
39 /*==================================*/
\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
49 /* Init clock Sys clk 96MHz, MCU clk 96MHz, PB clk 48MHz */
\r
56 #pragma language=default
\r