mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 10:08:33 -04:00
Add FreeRTOS-Plus directory.
This commit is contained in:
parent
7bd5f21ad5
commit
f508a5f653
6798 changed files with 134949 additions and 19 deletions
55
FreeRTOS/Demo/MSP430X_MSP430F5438_IAR/low_level_init.c
Normal file
55
FreeRTOS/Demo/MSP430X_MSP430F5438_IAR/low_level_init.c
Normal file
|
@ -0,0 +1,55 @@
|
|||
/**************************************************
|
||||
*
|
||||
* This is a template for early application low-level initialization.
|
||||
*
|
||||
* Copyright 1996-2010 IAR Systems AB.
|
||||
*
|
||||
* $Revision: 5993 $
|
||||
*
|
||||
**************************************************/
|
||||
|
||||
/*
|
||||
* The function __low_level_init it called by the start-up code before
|
||||
* "main" is called, and before data segment initialization is
|
||||
* performed.
|
||||
*
|
||||
* This is a template file, modify to perform any initialization that
|
||||
* should take place early.
|
||||
*
|
||||
* The return value of this function controls if data segment
|
||||
* initialization should take place. If 0 is returned, it is bypassed.
|
||||
*
|
||||
* For the MSP430 microcontroller family, please consider disabling
|
||||
* the watchdog timer here, as it could time-out during the data
|
||||
* segment initialization.
|
||||
*/
|
||||
|
||||
/*
|
||||
* To disable the watchdog timer, include a suitable device header
|
||||
* file (or "msp430.h") and add the following line to the function
|
||||
* below:
|
||||
*
|
||||
* WDTCTL = WDTPW+WDTHOLD;
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include <intrinsics.h>
|
||||
#include "msp430.h"
|
||||
|
||||
int __low_level_init(void)
|
||||
{
|
||||
/* Insert your low-level initializations here */
|
||||
_DINT();
|
||||
WDTCTL = WDTPW+WDTHOLD;
|
||||
|
||||
|
||||
/*
|
||||
* Return value:
|
||||
*
|
||||
* 1 - Perform data segment initialization.
|
||||
* 0 - Skip data segment initialization.
|
||||
*/
|
||||
|
||||
return 1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue