亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? os_cpu_c.c

?? 把UCOS2移植到TMS320L2812上
?? C
字號(hào):
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                         The Real-Time Kernel
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                          All Rights Reserved
*
*
*                                       80x86/80x88 Specific code
*                                          LARGE MEMORY MODEL
*
* File : OS_CPU_C.C
* By   : Jean J. Labrosse
*********************************************************************************************************
*/

#define  OS_CPU_GLOBALS
#include "includes.h"

/*
*********************************************************************************************************
*                                        INITIALIZE A TASK'S STACK
*
* Description: This function is called by either OSTaskCreate() or OSTaskCreateExt() to initialize the
*              stack frame of the task being created.  This function is highly processor specific.
*
* Arguments  : task          is a pointer to the task code
*
*              pdata         is a pointer to a user supplied data area that will be passed to the task
*                            when the task first executes.
*
*              ptos          is a pointer to the top of stack.  It is assumed that 'ptos' points to
*                            a 'free' entry on the task stack.  If OS_STK_GROWTH is set to 1 then 
*                            'ptos' will contain the HIGHEST valid address of the stack.  Similarly, if
*                            OS_STK_GROWTH is set to 0, the 'ptos' will contains the LOWEST valid address
*                            of the stack.
*
*              opt           specifies options that can be used to alter the behavior of OSTaskStkInit().
*                            (see uCOS_II.H for OS_TASK_OPT_???).
*
* Returns    : Always returns the location of the new top-of-stack' once the processor registers have
*              been placed on the stack in the proper order.
*
* Note(s)    : Interrupts are enabled when your task starts executing. You can change this by setting the
*              PSW to 0x0002 instead.  In this case, interrupts would be disabled upon task startup.  The
*              application code would be responsible for enabling interrupts at the beginning of the task
*              code.  You will need to modify OSTaskIdle() and OSTaskStat() so that they enable 
*              interrupts.  Failure to do this will make your system crash!
*********************************************************************************************************
*/

void *OSTaskStkInit (void (*task)(void *pd), void *pdata, void *ptos, INT16U opt)
{
    INT16U *stk;
	INT16U temp;
	

    opt    = opt;                           /* 'opt' is not used, prevent warning                      */
    stk    = (INT16U *)ptos;                /* Load stack pointer                                      */
        
    *stk++ = (INT16U)(pdata);         		/* Simulate call to function with argument                 */
    *stk++ = (INT16U)(pdata);       
    
    
    *stk++ = 0x0098;						/* ST0     = 0x1111     								   */
    *stk++ = 0x0000;					    /* T       = 0x0000   									   */	    
    
    
    *stk++ = 0x3333;						/* AL      = 0x3333										   */
	*stk++ = 0x2222;						/* AH      = 0x2222 									   */
	
	
	*stk++ = 0x5555;						/* PL      = 0x5555										   */
	*stk++ = 0x4444;						/* PH      = 0x4444										   */
	
	
	*stk++ = 0x7777;						/* AR0     = 0x7777										   */
	*stk++ = 0x6666;						/* AR1     = 0x6666										   */
	
	

	*stk++ = 0xCA4B;						/* ST1     = 0x080B 								       */	
	*stk++ = 0x0000;    					/* DP      = 0x8888										   */		
	
	*stk++ = 0xffff;						/* IER     = 0xBBBB									       */
	*stk++ = 0xAAAA;						/* DBGSTAT = 0xAAAA 									   */		
	
    temp = ((INT32U)task)&0x0000ffff;			    										
    *stk++ = (INT16U)temp;					/*  保存低16位											   */		
    
	temp = ((INT32U)task)>>16;    			/*  Save task entry										   */	
    *stk++ = (INT16U)(temp);	   			/*  保存高16位											   */	    										    
    
    
    temp = ((INT32U)task)&0x0000ffff;		/* RPCL     = 0xCCCC									   */	    										
    *stk++ = (INT16U)temp;					/*  保存低16位											   */									
	
	temp = ((INT32U)task)>>16;    			/* RPCH     = 0xCCCC									   */
    *stk++ = (INT16U)(temp);	   			/*  保存高16位											   */	    										    
    
    stk++;
    return ((void *)stk);
}

/*$PAGE*/
#if OS_CPU_HOOKS_EN
/*
*********************************************************************************************************
*                                          TASK CREATION HOOK
*
* Description: This function is called when a task is created.
*
* Arguments  : ptcb   is a pointer to the task control block of the task being created.
*
* Note(s)    : 1) Interrupts are disabled during this call.
*********************************************************************************************************
*/
void OSTaskCreateHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                       /* Prevent compiler warning                                     */
}


/*
*********************************************************************************************************
*                                           TASK DELETION HOOK
*
* Description: This function is called when a task is deleted.
*
* Arguments  : ptcb   is a pointer to the task control block of the task being deleted.
*
* Note(s)    : 1) Interrupts are disabled during this call.
*********************************************************************************************************
*/
void OSTaskDelHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                       /* Prevent compiler warning                                     */
}

/*
*********************************************************************************************************
*                                           TASK SWITCH HOOK
*
* Description: This function is called when a task switch is performed.  This allows you to perform other
*              operations during a context switch.
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts are disabled during this call.
*              2) It is assumed that the global pointer 'OSTCBHighRdy' points to the TCB of the task that
*                 will be 'switched in' (i.e. the highest priority task) and, 'OSTCBCur' points to the 
*                 task being switched out (i.e. the preempted task).
*********************************************************************************************************
*/
void OSTaskSwHook (void)
{
}

/*
*********************************************************************************************************
*                                           STATISTIC TASK HOOK
*
* Description: This function is called every second by uC/OS-II's statistics task.  This allows your 
*              application to add functionality to the statistics task.
*
* Arguments  : none
*********************************************************************************************************
*/
void OSTaskStatHook (void)
{
}

/*
*********************************************************************************************************
*                                               TICK HOOK
*
* Description: This function is called every tick.
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts may or may not be ENABLED during this call.
*********************************************************************************************************
*/
void OSTimeTickHook (void)
{
}
#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品视频一区| 蜜桃免费网站一区二区三区| 亚洲成人黄色小说| 国产一区二区伦理| 欧美三级电影网站| 久久久久国产精品免费免费搜索| 亚洲欧美一区二区三区极速播放 | 亚洲天堂av老司机| 免费视频最近日韩| 欧美性感一区二区三区| 亚洲欧美一区二区在线观看| 久久精工是国产品牌吗| 51午夜精品国产| 一区二区三区欧美在线观看| 成人在线视频一区二区| 久久婷婷国产综合精品青草 | 国产一区二三区好的| 欧美精品在线一区二区三区| 亚洲欧美色综合| 成人av片在线观看| 国产精品青草久久| 久久久久国产一区二区三区四区 | 国产成人在线视频免费播放| 欧美三级午夜理伦三级中视频| 欧美国产禁国产网站cc| 久久超级碰视频| 日韩欧美的一区二区| 视频一区免费在线观看| 777午夜精品视频在线播放| 亚洲一级不卡视频| 欧美日韩国产在线观看| 天堂久久久久va久久久久| 欧美亚洲国产怡红院影院| 亚洲国产日韩在线一区模特| 欧美性做爰猛烈叫床潮| 亚洲午夜国产一区99re久久| 欧美区视频在线观看| 日本美女一区二区三区视频| 91麻豆精品国产91久久久使用方法| 欧美日韩精品二区第二页| 三级不卡在线观看| 捆绑调教美女网站视频一区| 色又黄又爽网站www久久| 有码一区二区三区| 555夜色666亚洲国产免| 久久91精品久久久久久秒播| 精品国产91乱码一区二区三区 | 久久久欧美精品sm网站| 精品一区二区三区久久久| 久久精品亚洲精品国产欧美 | 91色综合久久久久婷婷| 亚洲一区二区三区美女| 欧美一区二区三区视频| 久久91精品久久久久久秒播| 久久奇米777| 色成人在线视频| 国产精品久久久久久久久免费桃花 | 国产在线精品一区二区不卡了| 久久综合色综合88| 国产麻豆视频一区二区| 国产精品人妖ts系列视频| 91丨九色丨国产丨porny| 亚洲一区日韩精品中文字幕| 91精品国产综合久久精品| 久久www免费人成看片高清| 中文一区在线播放| 精品污污网站免费看| 韩国女主播成人在线观看| 亚洲三级理论片| 综合激情网...| 在线电影院国产精品| 国产精一区二区三区| 一区二区在线免费| 久久精品一区蜜桃臀影院| 91久久奴性调教| 国产精品一区二区在线观看网站| 精品国一区二区三区| 亚洲精品国产精华液| 丝袜国产日韩另类美女| 韩国av一区二区| 国产日韩欧美激情| 欧美三级电影一区| 成人黄色小视频| 老汉av免费一区二区三区 | 在线观看欧美精品| 国产精品一级在线| 日本午夜一本久久久综合| 国产精品污网站| 日韩精品中文字幕一区| 欧美亚洲国产一区二区三区va | **欧美大码日韩| 国产亚洲欧美日韩在线一区| 777午夜精品视频在线播放| 91一区二区在线| 成人高清视频在线| 在线视频中文字幕一区二区| 久久久综合网站| 青青草国产精品亚洲专区无| 色婷婷精品久久二区二区蜜臂av | 精品综合免费视频观看| 一二三区精品视频| 中文字幕中文字幕一区二区| 久久久久久久久久美女| 日韩精品一区二区三区视频在线观看 | 日韩 欧美一区二区三区| 自拍偷在线精品自拍偷无码专区| 久久久一区二区三区捆绑**| 欧美一级精品在线| 欧美在线观看18| 亚洲v中文字幕| 国产精品拍天天在线| 日韩一卡二卡三卡四卡| 欧美日韩一区二区三区四区| 国产成人免费9x9x人网站视频| 捆绑调教一区二区三区| 蜜桃91丨九色丨蝌蚪91桃色| 日韩电影在线观看网站| 日本不卡视频在线| 精品一二三四区| 国产成a人亚洲精| 国产电影一区二区三区| 国产91富婆露脸刺激对白| 成人精品gif动图一区| 99久久综合狠狠综合久久| 91视频免费观看| 欧美日韩国产高清一区二区三区| 欧美亚洲动漫制服丝袜| 91麻豆精品国产91久久久久久久久| 欧美日韩国产欧美日美国产精品| 91精品久久久久久久久99蜜臂| 欧美精品v日韩精品v韩国精品v| 欧美一级免费观看| 久久午夜老司机| 中文字幕在线不卡一区| 一区二区三区美女| 毛片av一区二区| 成人美女视频在线观看| 色狠狠综合天天综合综合| 51精品秘密在线观看| 久久综合999| 中文字幕制服丝袜一区二区三区| 亚洲色图欧美激情| 热久久免费视频| 成人一级片在线观看| 欧美少妇性性性| 久久色在线观看| 亚洲激情中文1区| 久久精品99国产精品日本| 不卡电影一区二区三区| 91精品国产一区二区三区香蕉| 国产亚洲欧洲997久久综合| 亚洲老司机在线| 久久www免费人成看片高清| 91亚洲国产成人精品一区二区三| 欧美剧情片在线观看| 欧美激情中文字幕一区二区| 亚洲一区二区三区国产| 国产丶欧美丶日本不卡视频| 欧美三级中文字幕在线观看| 国产欧美日韩亚州综合 | 奇米亚洲午夜久久精品| 成人激情图片网| 日韩欧美一级二级| 亚洲伦理在线精品| 国产一区二区伦理| 717成人午夜免费福利电影| 国产三级精品三级在线专区| 午夜婷婷国产麻豆精品| 97久久超碰精品国产| 国产三级欧美三级| 日韩电影在线免费| 在线免费观看不卡av| 国产精品萝li| 狠狠色综合播放一区二区| 欧美日韩在线播放一区| 国产精品成人免费在线| 国产白丝精品91爽爽久久| 欧美成人一区二区三区| 午夜av电影一区| 在线精品视频一区二区| 成人免费一区二区三区在线观看| 黄色小说综合网站| 欧美日韩在线观看一区二区 | 亚洲综合色区另类av| 国产精品12区| 日韩一区二区麻豆国产| 午夜精彩视频在线观看不卡| 一本色道**综合亚洲精品蜜桃冫 | 懂色中文一区二区在线播放| 精品福利在线导航| 久久精品国产99国产| 欧美日韩二区三区| 午夜久久电影网| 欧美吻胸吃奶大尺度电影| 最新欧美精品一区二区三区| 福利一区二区在线| 欧美激情一区二区三区在线| 国产福利一区二区三区视频| 国产亚洲欧美激情| 国产精品白丝jk黑袜喷水|