📄 lowinit.c
字号:
/* - lowinit.c -
The function __low_level_init is called by the start-up code before doing
the normal initialization of data segments. If the return value is zero,
initialization is not performed.
In the run-time library there is a dummy __low_level_init, which does
nothing but return 1. This means that the start-up routine proceeds with
initialization of data segments.
To replace this dummy, compile a customized version (like the example
below) and link it with the rest of your code.
*/
/*
* $Revision: 1.1.1.1.2.1 $
*/
int __low_level_init(void);
#include "..\include\FreeRTOS.h"
int __low_level_init(void)
{
/* Insert your low-level initializations here */
// wdog may reset while loading code...
WDTCTL = WDTPW + WDTHOLD;
// this is used to initialize unused memory as FF3F (JMP HERE)
/*==================================*/
/* Choose if segment initialization */
/* should be done or not. */
/* Return: 0 to omit seg_init */
/* 1 to run seg_init */
/*==================================*/
return (1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -