usrappinit.c

来自「tornado2.0 for PPC 自启动」· C语言 代码 · 共 46 行

C
46
字号
/* usrAppInit.c - stub application initialization routine */

/* Copyright 1984-1998 Wind River Systems, Inc. */

/*
modification history
--------------------
01a,02jun98,ms   written
*/

/*
DESCRIPTION
Initialize user application code.
*/ 

/******************************************************************************
*
* usrAppInit - initialize the users application
*/ 

#ifdef	__cplusplus
extern "C"{
#endif
#include "vxWorks.h" 
#include "symLib.h" 


void usrAppInit (void)
    {
#ifdef	USER_APPL_INIT
	USER_APPL_INIT;		/* for backwards compatibility */
#endif
	int nState = 0xaa;
	printf("before test() nState = 0x%0x\n", nState );
	
#if 1
	nState = test();
	printf("after test() nState = 0x%0x\n", nState );
#endif
    /* add application specific code here */
    }


#ifdef	__cplusplus
}
#endif	/* end of __cplusplus */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?