?? usrappinit.c
字號:
/* usrAppInit.c - stub application initialization routine */
/* Copyright 1984-1998 Wind River Systems, Inc. */
/*
modification history
--------------------
01a,02jun98,ms written
*/
/*
DESCRIPTION
Initialize user application code.
*/
#include "vxworks.h"
#include "s3c44b0x.h"
/*tTick任務的函數體*/
void tTick(void)
{
while(1){
taskDelay (sysClkRateGet()/2); /*延時0.5s*/
*CPLDREG2 &= ~(0x04); /*亮*/
taskDelay (sysClkRateGet()/2); /*延時0.5s*/
*CPLDREG2 |= 0x04; /*滅*/
}
}
/******************************************************************************
*
* usrAppInit - initialize the users application
*/
void usrAppInit (void)
{
int tid;
#ifdef USER_APPL_INIT
USER_APPL_INIT; /* for backwards compatibility */
#endif
/*創建并激活tTick任務,優先級150,任務棧4096字節,無入口參數*/
tid = taskCreat("tTick",255, 0, 4096,(FUNCPTR)tTick,0,0,0,0,0,0,0,0,0,0);
taskActivate(tid);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -