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

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

?? os_cpu_c.c

?? mc68hc11的ucos2嵌入式移植
?? C
字號:
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                         The Real-Time Kernel
*
*                             (c) Copyright 2002, Jean J. Labrosse, Weston, FL
*                                          All Rights Reserved
*
*
*                                          68HC11 Specific code
*                                             COSMIC C V4.1
*
* File         : OS_CPU_C.C
* By           : Jean J. Labrosse
* Port Version : V1.02
*********************************************************************************************************
*/

#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)    : 1) XIRQ interrupts are disabled when your task starts executing. You can change this by 
*                 clearing BIT6 in the CCR.
*              2) The STOP instruction is disabled when your task starts executing.  You can change this
*                 by clearing BIT7 in the CCR.
*              3) The other interrupts (i.e. maskable interrupts) are enabled when your task starts
*                 executing.  You can change this by setting BIT4 in the CCR.
*              4) You can change pass the above options in the 'opt' argument.  You MUST only use the
*                 upper 8 bits of 'opt' because the lower bits are reserved by uC/OS-II.  If you make
*                 changes to the code below, you will need to ensure that it doesn't affect the behaviour
*                 of OSTaskIdle() and OSTaskStat().
*              5) Registers are initialized to make them easy to differentiate with a debugger.
*********************************************************************************************************
*/

OS_STK *OSTaskStkInit (void (*task)(void *pd), void *pdata, OS_STK *ptos, INT16U opt)
{
    INT16U *wstk;
    INT8U  *bstk;


    opt     = opt;                     /* 'opt' is not used, prevent warning                           */
    wstk    = (INT16U *)ptos;          /* Load stack pointer                                           */
    *--wstk = (INT16U)pdata;           /* Simulate call to function with argument                      */
    *--wstk = (INT16U)task;
    *--wstk = (INT16U)task;            /* Put pointer to task   on top of stack                        */
    *--wstk = (INT16U)0x2222;          /* Y Register                                                   */
    *--wstk = (INT16U)0x1111;          /* X Register                                                   */
    *--wstk = (INT16U)0xAABB;          /* D Register (A:B)                                             */
    bstk    = (INT8U *)wstk;           /* Convert WORD ptr to BYTE ptr to set CCR                      */
    *--bstk = 0xC0;                    /* CCR Register (disable XIRQ and STOP instruction)             */
    --bstk;                            /* Point to next FREE entry                                     */
    return ((OS_STK *)bstk);           /* Return pointer to new top-of-stack                           */
}

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

/*
*********************************************************************************************************
*                                             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 > 0 && 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*/
/*
*********************************************************************************************************
*                                           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) && (OS_TASK_SW_HOOK_EN > 0)
void  OSTaskSwHook (void)
{
}
#endif

/*
*********************************************************************************************************
*                                           OS_TCBInit() 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) && (OS_TIME_TICK_HOOK_EN > 0)
void  OSTimeTickHook (void)
{
}
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久―日本道色综合久久| 成人的网站免费观看| 91精品国产麻豆| 日本不卡免费在线视频| 欧美精品1区2区| 久久精品国产精品青草| 久久婷婷综合激情| 高潮精品一区videoshd| 国产精品久久久99| 色婷婷激情综合| 午夜一区二区三区视频| 日韩限制级电影在线观看| 精品在线免费视频| 国产精品女同一区二区三区| 欧美最新大片在线看 | 欧美一区二区视频观看视频| 黑人精品欧美一区二区蜜桃| 国产欧美一区二区精品久导航| 99久久精品免费看国产| 亚洲国产乱码最新视频 | 欧美草草影院在线视频| 51久久夜色精品国产麻豆| 在线精品视频免费播放| fc2成人免费人成在线观看播放 | 亚洲国产成人av好男人在线观看| 欧美日韩精品一区二区天天拍小说 | 久久久久久麻豆| 91影视在线播放| 日韩国产精品久久| 国产午夜精品一区二区 | 在线成人av影院| 国产麻豆视频一区二区| 依依成人综合视频| 日韩一区二区免费在线电影| 不卡av在线免费观看| 蜜桃久久av一区| 亚洲影院免费观看| 久久欧美中文字幕| 欧美日韩国产天堂| 不卡视频在线看| 老司机精品视频导航| 亚洲激情网站免费观看| 久久综合狠狠综合| 欧美色图在线观看| 成人午夜在线免费| 麻豆精品一区二区三区| 亚洲国产精品人人做人人爽| 国产亚洲综合在线| 91精品国产综合久久久久久久| 91一区二区在线| 国产呦萝稀缺另类资源| 天天综合天天综合色| 亚洲精品乱码久久久久久日本蜜臀| 久久久蜜臀国产一区二区| 欧美日本在线一区| 色哟哟一区二区三区| 福利视频网站一区二区三区| 国产一区二区三区美女| 奇米影视一区二区三区| 午夜精彩视频在线观看不卡| 亚洲美腿欧美偷拍| 亚洲国产电影在线观看| 久久久久国色av免费看影院| 欧美精品一区二区三区久久久| 91精品国产一区二区三区蜜臀| 欧美图区在线视频| 色综合天天综合网天天狠天天| 成人福利视频网站| 国产精品一二二区| 国产在线不卡一区| 国产乱码一区二区三区| 久久成人免费电影| 久久成人18免费观看| 久久成人综合网| 韩国一区二区视频| 韩日精品视频一区| 国产精品2024| 成人一区在线观看| av亚洲产国偷v产偷v自拍| 成人黄动漫网站免费app| 成人精品免费看| 93久久精品日日躁夜夜躁欧美| 91天堂素人约啪| 91蜜桃网址入口| 日本久久一区二区三区| 欧亚一区二区三区| 欧美人与z0zoxxxx视频| 91精品蜜臀在线一区尤物| 欧美成人一级视频| 精品粉嫩超白一线天av| 国产日韩欧美制服另类| 中文字幕一区在线观看视频| 一区二区三区国产精华| 亚洲国产你懂的| 精品无码三级在线观看视频| 国产成人av一区二区| 成人ar影院免费观看视频| 一本一道久久a久久精品综合蜜臀| 91九色最新地址| 欧美一区二区三区四区五区| 国产亚洲精品免费| 亚洲手机成人高清视频| 午夜激情一区二区三区| 国产精品一卡二卡在线观看| 色综合久久天天| 91精品中文字幕一区二区三区| wwwwww.欧美系列| 国产精品久久久久天堂| 亚洲午夜精品在线| 精品一区二区三区在线观看国产 | 国产午夜精品福利| 日韩伦理免费电影| 日韩高清不卡一区二区三区| 国产成人啪免费观看软件| 一本大道久久精品懂色aⅴ| 3d动漫精品啪啪| 国产精品视频在线看| 亚洲第一福利一区| 国产成人在线视频播放| 欧美日韩国产另类不卡| 久久精品一区二区三区四区| 亚洲国产成人91porn| 国产伦精品一区二区三区视频青涩 | 国产毛片一区二区| 日本黄色一区二区| 精品99久久久久久| 亚洲日本免费电影| 国产一区二区伦理片| 欧美性感一类影片在线播放| 欧美国产日本视频| 亚洲18影院在线观看| 成人av手机在线观看| 日韩美一区二区三区| 亚洲自拍都市欧美小说| 国产一区二区三区| 欧美绝品在线观看成人午夜影视| 国产精品久久久久久久第一福利| 麻豆91在线播放免费| 欧美手机在线视频| 亚洲特级片在线| 国产精品亚洲第一区在线暖暖韩国| 欧美日韩免费高清一区色橹橹 | 欧美日产在线观看| 亚洲欧美影音先锋| 国产精品白丝jk白祙喷水网站| 91精品国产一区二区三区| 一区二区三区高清在线| 99综合电影在线视频| 国产午夜精品久久| 国产专区综合网| 欧美一级高清大全免费观看| 亚洲国产精品天堂| 色网综合在线观看| 最新热久久免费视频| 国产精品99久久久久久有的能看| 日韩免费高清av| 久久精品国产**网站演员| 欧美一区二区三区在线看 | 久久精品国产精品亚洲精品| 91精品在线观看入口| 五月激情综合色| 欧美日韩国产精品成人| 亚洲一区二区美女| 欧美一a一片一级一片| 亚洲综合久久av| 欧美日韩一级视频| 亚洲国产视频在线| 精品视频在线免费| 香蕉久久一区二区不卡无毒影院| 欧美伦理视频网站| 亚洲va韩国va欧美va精品| 欧美日韩在线亚洲一区蜜芽| 亚洲一区二区三区四区在线| 欧美日韩精品电影| 热久久国产精品| 精品国产乱码久久久久久牛牛 | 欧美国产成人在线| 国产91露脸合集magnet| 国产日韩欧美麻豆| 成人黄色网址在线观看| 亚洲欧美国产77777| 在线观看国产91| 日韩一区欧美二区| 日韩欧美一区电影| 国产成人8x视频一区二区 | 欧美日韩一区在线| 日韩不卡一区二区| 精品国产免费人成在线观看| 成年人国产精品| 亚洲伊人伊色伊影伊综合网| 日韩欧美国产成人一区二区| 大桥未久av一区二区三区中文| 亚洲视频免费在线| 欧美日韩日本视频| 精品夜夜嗨av一区二区三区| 中文字幕精品一区| 欧美日韩中文一区| 国产一区二三区| 亚洲另类在线视频| 日韩一区二区三|