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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? os_cpu_c.c

?? 嵌入式操作系統UCOS在DSP芯片TI的2407A上的移植
?? C
字號:
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                         The Real-Time Kernel
*
*                        (c) Copyright 1992-2002, Jean J. Labrosse, Weston, FL
*                                          All Rights Reserved
*
*                                          80x86 Specific code
*                                 LARGE MEMORY MODEL WITH FLOATING-POINT
*                                          Borland C/C++ V4.51
*
*
* File         : OS_CPU_C.C
* By           : Jean J. Labrosse
*********************************************************************************************************
*/

#define  OS_CPU_GLOBALS
#include "includes.h"

/*$PAGE*/
/*
*********************************************************************************************************
*                                             LOCAL CONSTANTS
*
* Note(s) : 1) OS_NTASKS_FP  establishes the number of tasks capable of supporting floating-point.  One
*              task is removed for the idle task because it doesn't do floating-point at all.
*           2) OS_FP_STORAGE_SIZE  currently allocates 128 bytes of storage even though the 80x86 FPU 
*              only require 108 bytes to save the FPU context.  I decided to allocate 128 bytes for 
*              future expansion.  
*********************************************************************************************************
*/


/*
*********************************************************************************************************
*                                             LOCAL VARIABLES
*********************************************************************************************************
*/


                                       /* I used INT32U to ensure that storage is aligned on a ...     */
                                       /* ... 32-bit boundary.                                         */

/*$PAGE*/
/*
*********************************************************************************************************
*                                        INITIALIZE FP SUPPORT
*
* Description: This function is called to initialize the memory partition needed to support context
*              switching the Floating-Point registers.  This function MUST be called AFTER calling
*              OSInit().
*
* Arguments  : none
*
* Returns    : none
*
* Note(s)    : 1) Tasks that are to use FP support MUST be created with OSTaskCreateExt().
*              2) For the 80x86 FPU, 108 bytes are required to save the FPU context.  I decided to
*                 allocate 128 bytes for future expansion.  Also, I used INT32U to ensure that storage 
*                 is aligned on a 32-bit boundary.
*              3) I decided to 'change' the 'Options' attribute for the statistic task in case you
*                 use OSTaskStatHook() and need to perform floating-point operations in this function.
*                 This only applies if OS_TaskStat() was created with OSTaskCreateExt().
*********************************************************************************************************
*/



/*$PAGE*/
/*
*********************************************************************************************************
*                                       OS INITIALIZATION HOOK
*                                            (BEGINNING)
*
* Description: This function is called by OSInit() at the beginning of OSInit().
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts should be disabled during this call.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
void  OSInitHookBegin (void)
{
}
#endif

/*
*********************************************************************************************************
*                                       OS INITIALIZATION HOOK
*                                               (END)
*
* Description: This function is called by OSInit() at the end of OSInit().
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts should be disabled during this call.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
void  OSInitHookEnd (void)
{
   
}
#endif

/*$PAGE*/
/*
*********************************************************************************************************
*                                          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.
*              2) I decided to change the options on the statistic task to allow for floating-point in
*                 case you decide to do math. in OSTaskStatHook().
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0
void OSTaskCreateHook (OS_TCB *ptcb)
{
    ptcb = ptcb; 
}
#endif

/*
*********************************************************************************************************
*                                           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.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0
void OSTaskDelHook (OS_TCB *ptcb)
{
   ptcb = ptcb; 
}
#endif

/*$PAGE*/
/*
*********************************************************************************************************
*                                             IDLE TASK HOOK
*
* Description: This function is called by the idle task.  This hook has been added to allow you to do  
*              such things as STOP the CPU to conserve power.
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts are enabled during this call.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN && OS_VERSION >= 251
void  OSTaskIdleHook (void)
{
}
#endif

/*
*********************************************************************************************************
*                                           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
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0
void OSTaskStatHook (void)
{
}
#endif

/*$PAGE*/
/*
*********************************************************************************************************
*                                        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!
*********************************************************************************************************
*/

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


    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++;
    *stk++=0x21ec;
    *stk++=0x2600;                /* SW = Interrupts enabled                                 */
    *stk++=0;          /* Put pointer to task   on top of stack                   */
    *stk++=0xf;
    *stk++=0;                                                  
    *stk++=0;                                  
    *stk++=0;                                            
    *stk++=0;                                            
    *stk++=0;                                   
    *stk++=2;                                                      
    *stk++=3;                                                    
    *stk++=4;                /* DI = 0x3333                                             */
    *stk++=5;                /* ES = 0x4444                                             */
    *stk++=6;
    *stk++=7; 
    *stk++=(INT16U)task; 
    *stk++=(INT16U)task;
    *stk++=5;                         /* DS = Current value of DS                                */
    return ((void *)stk);
}

/*$PAGE*/
/*
*********************************************************************************************************
*                                           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).
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0
void OSTaskSwHook (void)
{
   
}
#endif

/*
*********************************************************************************************************
*                                           OSTCBInit() HOOK
*
* Description: This function is called by OS_TCBInit() after setting up most of the TCB.
*
* Arguments  : ptcb    is a pointer to the TCB of the task being created.
*
* Note(s)    : 1) Interrupts may or may not be ENABLED during this call.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
void  OSTCBInitHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                                           /* Prevent Compiler warning                 */
}
#endif


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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品萝li| 亚洲成va人在线观看| 欧美图片一区二区三区| 99国产精品国产精品久久| 午夜精品久久久久久久久久久 | 久久香蕉国产线看观看99| 91网站视频在线观看| 麻豆91在线看| 午夜av一区二区三区| 亚洲婷婷国产精品电影人久久| 日韩片之四级片| 欧美日韩国产免费一区二区| 成人午夜免费av| 国产精品自在在线| 免费欧美高清视频| 亚洲国产精品尤物yw在线观看| 国产精品久99| 欧美激情一区在线| 久久网这里都是精品| 欧美一区三区二区| 欧美日韩精品二区第二页| 91丨porny丨国产| 丁香六月综合激情| 国产精品自在在线| 精品一区二区三区免费视频| 五月天视频一区| 亚洲第一在线综合网站| 亚洲自拍另类综合| 亚洲欧美一区二区三区国产精品| 国产精品污www在线观看| 日韩精品一区二区三区蜜臀| 精品视频999| 欧美午夜一区二区三区免费大片| 91黄色小视频| 91精品福利视频| 欧美日韩亚州综合| 欧美日韩一区成人| 欧美日韩小视频| √…a在线天堂一区| 欧美激情综合五月色丁香小说| 精品国产乱码91久久久久久网站| 日韩一二在线观看| 欧美草草影院在线视频| 欧美大白屁股肥臀xxxxxx| 欧美不卡一区二区三区四区| 亚洲精品一区二区三区蜜桃下载| 精品88久久久久88久久久| 精品国产a毛片| 国产欧美日韩综合| 日本一区二区成人在线| 成人欧美一区二区三区黑人麻豆| 成人免费视频在线观看| 亚洲美女淫视频| 首页欧美精品中文字幕| 美女网站视频久久| 成人午夜视频福利| 91理论电影在线观看| 欧美写真视频网站| 日韩精品在线看片z| 久久综合久久99| 国产精品久久久久久亚洲伦| 亚洲色图在线视频| 天堂一区二区在线免费观看| 久久精品国产亚洲a| 国产精品白丝jk白祙喷水网站 | 91精品国产免费久久综合| 日韩三级免费观看| 久久久久久久精| 一区二区在线观看免费| 美腿丝袜亚洲色图| 国产成人小视频| 欧美日韩综合色| 久久婷婷色综合| 亚洲欧美日韩在线播放| 日韩av一二三| 欧美精品色一区二区三区| 精品福利在线导航| 亚洲最大成人网4388xx| 青娱乐精品在线视频| 成人国产视频在线观看 | 国产亚洲欧美在线| 亚洲精品国产品国语在线app| 日韩影院精彩在线| 国产.欧美.日韩| 欧美日韩情趣电影| 国产精品网站在线观看| 日精品一区二区| 成人不卡免费av| 日韩美女视频在线| 亚洲自拍偷拍麻豆| 成人app网站| 精品日产卡一卡二卡麻豆| 亚洲视频 欧洲视频| 国内精品伊人久久久久影院对白| 色呦呦日韩精品| 久久精品在这里| 首页综合国产亚洲丝袜| 色av成人天堂桃色av| 中文字幕欧美三区| 久久成人免费网站| 欧美日韩在线播放| 国产精品久久福利| 国产盗摄精品一区二区三区在线| 在线免费精品视频| 国产精品免费丝袜| 狠狠色丁香久久婷婷综合丁香| 欧美色偷偷大香| 亚洲免费观看高清完整| 国产高清亚洲一区| 欧美不卡一区二区三区四区| 图片区小说区国产精品视频| 久久综合九色综合久久久精品综合| 亚洲第一综合色| 91久久奴性调教| 亚洲精品国产无套在线观| 成人精品免费视频| 久久女同互慰一区二区三区| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美在线视频不卡| 亚洲最新在线观看| 一本久道久久综合中文字幕| 欧美激情在线一区二区| 国产精品一区二区x88av| 久久综合中文字幕| 激情综合色丁香一区二区| 欧美精品在线观看一区二区| 亚洲国产精品久久一线不卡| 91免费观看在线| 亚洲青青青在线视频| av在线不卡免费看| 中文字幕视频一区| 91久久精品日日躁夜夜躁欧美| 亚洲日本乱码在线观看| 97久久精品人人澡人人爽| 国产精品美女久久久久久2018 | 国产一区二区精品在线观看| 欧美一级二级三级蜜桃| 免费高清视频精品| 欧美xxxxxxxx| 国产精品1区二区.| 国产精品―色哟哟| 91亚洲男人天堂| 一区二区三区产品免费精品久久75| 色综合久久久久综合99| 午夜视频一区二区三区| 91精品麻豆日日躁夜夜躁| 久久精品国产77777蜜臀| 久久奇米777| 成人激情午夜影院| 一区二区三区久久久| 欧美性生活一区| 免费在线成人网| 欧美高清在线一区二区| 色婷婷亚洲综合| 日韩国产在线一| 欧美sm极限捆绑bd| 成人自拍视频在线观看| 亚洲男人的天堂网| 欧美一级理论片| 国产成人亚洲精品狼色在线 | 青青草91视频| 久久久精品免费网站| 91论坛在线播放| 免费高清视频精品| 国产精品狼人久久影院观看方式| 色哟哟一区二区三区| 免费精品99久久国产综合精品| 久久久久9999亚洲精品| 日本黄色一区二区| 久久国产尿小便嘘嘘| 中文字幕一区二区三区在线播放 | 精品视频在线看| 国产自产2019最新不卡| 国产精品久久久久久久久免费相片| 日本精品一区二区三区四区的功能| 日本女优在线视频一区二区| 国产清纯白嫩初高生在线观看91 | 国产欧美日韩精品在线| 在线免费av一区| 国产真实精品久久二三区| 亚洲激情六月丁香| 久久亚洲综合av| 欧美在线不卡视频| 国产一区在线观看视频| 亚洲人精品一区| 欧美精品一区二区三区一线天视频| 成人动漫视频在线| 精品一区二区成人精品| 亚洲精品综合在线| 久久久99免费| 欧美一区二区三区啪啪| 99久久久久久| 国产中文字幕一区| 午夜不卡av免费| 一区二区三区在线播放| 国产午夜精品福利| 日韩一区二区三区高清免费看看 | 欧美xxxxx裸体时装秀| 色播五月激情综合网| 粉嫩嫩av羞羞动漫久久久 |