資源簡介
uCOSII移植

代碼片段和文件信息
/*
*********************************************************************************************************
*???????????????????????????????????????????????uC/OS-II
*?????????????????????????????????????????The?Real-Time?Kernel
*
*?????????????????????????????(c)?Copyright?1998-2004?Micrium?Weston?FL
*??????????????????????????????????????????All?Rights?Reserved
*
*
*????????????????????????????????????????????WIN32?Sample?Code
*
*?File?:?APP.C
*?By???:?Eric?Shufro
*********************************************************************************************************
*/
#include?
/*
*********************************************************************************************************
*????????????????????????????????????????????????CONSTANTS
*********************************************************************************************************
*/
#define??TASK_STK_SIZE????128
#define??TASK_START_PRIO????5
/*
*********************************************************************************************************
*????????????????????????????????????????????????VARIABLES
*********************************************************************************************************
*/
OS_STK????????AppStartTaskStk[TASK_STK_SIZE];
/*
*********************************************************************************************************
*????????????????????????????????????????????FUNCTION?PROTOTYPES
*********************************************************************************************************
*/
static??void??AppStartTask(void?*p_arg);
#if?OS_VIEW_MODULE?>?0
static??void??AppTerminalRx(INT8U?rx_data);
#endif
/*
*********************************************************************************************************
*????????????????????????????????????????????????_tmain()
*
*?Description?:?This?is?the?standard?entry?point?for?C++?WIN32?code.??
*?Arguments???:?none
*********************************************************************************************************
*/
void?main(int?argc?char?*argv[])
{
????OSInit();??????????????????????????????/*?Initialize?“uC/OS-II?The?Real-Time?Kernel“??????????????????????????????????????*/
????OSTaskCreateExt(AppStartTask
????????????????????(void?*)0
????????????????????(OS_STK?*)&AppStartTaskStk[TASK_STK_SIZE-1]
????????????????????TASK_START_PRIO
????????????????????TASK_START_PRIO
????????????????????(OS_STK?*)&AppStartTaskStk[0]
????????????????????TASK_STK_SIZE
????????????????????(void?*)0
????????????????????OS_TASK_OPT_STK_CHK?|?OS_TASK_OPT_STK_CLR);
????OSStart();?????????????????????????????/*?Start?multitasking?(i.e.?give?control?to?uC/OS-II)???????????????????????????????*/
}
/*$PAGE*/
/*
*********************************************************************************************************
*??????????????????????????????????????????STARTUP?TASK
*
*?Description?:?Th
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????78848??2016-10-27?08:11??uCOSII移植\Debug\uCOSII.exe
?????文件?????332148??2016-10-27?08:11??uCOSII移植\Debug\uCOSII.ilk
?????文件?????560128??2016-10-27?08:11??uCOSII移植\Debug\uCOSII.pdb
?????文件??????19655??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\main.obj
?????文件??????55564??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_core.obj
?????文件??????41628??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_cpu_c.obj
?????文件??????24650??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_dbg_r.obj
?????文件??????36457??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_flag.obj
?????文件??????27298??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_mbox.obj
?????文件??????24394??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_mem.obj
?????文件??????29211??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_mutex.obj
?????文件??????31394??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_q.obj
?????文件??????27102??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_sem.obj
?????文件??????36116??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_task.obj
?????文件??????22764??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_time.obj
?????文件??????37490??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_tmr.obj
?????文件??????21442??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\os_trace.obj
?????文件???????1168??2016-10-27?08:11??uCOSII移植\uCOSII\Debug\uCOSII.log
?????文件??????11020??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\uCOSII.tlog\cl.command.1.tlog
?????文件?????209768??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\uCOSII.tlog\CL.read.1.tlog
?????文件???????7612??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\uCOSII.tlog\CL.write.1.tlog
?????文件???????1760??2016-10-27?08:11??uCOSII移植\uCOSII\Debug\uCOSII.tlog\li
?????文件???????3828??2016-10-27?08:11??uCOSII移植\uCOSII\Debug\uCOSII.tlog\li
?????文件????????892??2016-10-27?08:11??uCOSII移植\uCOSII\Debug\uCOSII.tlog\li
?????文件????????173??2016-10-27?08:11??uCOSII移植\uCOSII\Debug\uCOSII.tlog\uCOSII.lastbuildstate
?????文件?????154646??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\ucos_ii.obj
?????文件?????289792??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\vc120.idb
?????文件?????110592??2016-10-27?07:46??uCOSII移植\uCOSII\Debug\vc120.pdb
?????文件???????1163??2016-10-26?22:41??uCOSII移植\uCOSII\uCOSII\App\app_cfg.h
?????文件????????790??2005-08-31?15:05??uCOSII移植\uCOSII\uCOSII\App\includes.h
............此處省略42個文件信息
評論
共有 條評論