1 /**************************************************
\r
3 * This is a template for early application low-level initialization.
\r
5 * Copyright 1996-2010 IAR Systems AB.
\r
9 **************************************************/
\r
12 * The function __low_level_init it called by the start-up code before
\r
13 * "main" is called, and before data segment initialization is
\r
16 * This is a template file, modify to perform any initialization that
\r
17 * should take place early.
\r
19 * The return value of this function controls if data segment
\r
20 * initialization should take place. If 0 is returned, it is bypassed.
\r
22 * For the MSP430 microcontroller family, please consider disabling
\r
23 * the watchdog timer here, as it could time-out during the data
\r
24 * segment initialization.
\r
28 * To disable the watchdog timer, include a suitable device header
\r
29 * file (or "msp430.h") and add the following line to the function
\r
32 * WDTCTL = WDTPW+WDTHOLD;
\r
37 #include <intrinsics.h>
\r
40 int __low_level_init(void)
\r
42 /* Insert your low-level initializations here */
\r
44 WDTCTL = WDTPW+WDTHOLD;
\r
50 * 1 - Perform data segment initialization.
\r
51 * 0 - Skip data segment initialization.
\r