aukey 发表于 2012-7-22 18:17

求助,懂ucos-ii系统的大神帮帮忙啊。。。。

voidOSInit (void)
{
#if OS_VERSION >= 204
    OSInitHookBegin();                                           /* Call port specific initialization code   */
#endif
    OS_InitMisc();                                             /* Initialize miscellaneous variables       */
    OS_InitRdyList();                                          /* Initialize the Ready List                */
    OS_InitTCBList();                                          /* Initialize the free list of OS_TCBs      */
    OS_InitEventList();                                          /* Initialize the free list of OS_EVENTs    */
#if (OS_VERSION >= 251) && (OS_FLAG_EN > 0) && (OS_MAX_FLAGS > 0)
    OS_FlagInit();                                             /* Initialize the event flag structures   */
#endif
#if (OS_MEM_EN > 0) && (OS_MAX_MEM_PART > 0)
    OS_MemInit();                                                /* Initialize the memory manager            */
#endif
#if (OS_Q_EN > 0) && (OS_MAX_QS > 0)
    OS_QInit();                                                /* Initialize the message queue structures*/
#endif
    OS_InitTaskIdle();                                           /* Create the Idle Task                     */
#if OS_TASK_STAT_EN > 0
    OS_InitTaskStat();                                           /* Create the Statistic Task                */
#endif
#if OS_VERSION >= 204
    OSInitHookEnd();                                             /* Call port specific init. code            */
#endif


在ucos初始化函数中,有OS_FlagInit(), OS_QInit(),OS_MemInit(),的调用,可是我怎么找不到他们的具体函数实现的代码,所有的文件都找了。。求助。

aukey 发表于 2012-7-22 18:18

自己顶一个。。。

aukey 发表于 2012-7-22 18:44

找到了,在各自的文件中。有人请教就是好啊。。
页: [1]
查看完整版本: 求助,懂ucos-ii系统的大神帮帮忙啊。。。。