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