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

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

?? os_cpu_c.c

?? uCOS源碼
?? C
字號:
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                         The Real-Time Kernel
*
*                        (c) Copyright 1992-1998, Jean J. Labrosse, Plantation, FL
*                                          All Rights Reserved
*                        (c) Copyright ARM Limited 1999.  All rights reserved.
*
*                                          ARM Specific code
*
*
* File : OS_CPU_C.C
*********************************************************************************************************
*/

#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)
{
    unsigned int *stk;

    opt    = opt;                           /* 'opt' is not used, prevent warning                      */
    stk    = (unsigned int *)ptos;          /* Load stack pointer                                      */

    /* build a context for the new task */
    *--stk = (unsigned int) task;       /* pc */
    *--stk = (unsigned int) task;       /* lr */

    *--stk = 0;                         /* r12 */
    *--stk = 0;                         /* r11 */
    *--stk = 0;                         /* r10 */
    *--stk = 0;                         /* r9 */
    *--stk = 0;                         /* r8 */
    *--stk = 0;                         /* r7 */
    *--stk = 0;                         /* r6 */
    *--stk = 0;                         /* r5 */
    *--stk = 0;                         /* r4 */
    *--stk = 0;                         /* r3 */
    *--stk = 0;                         /* r2 */
    *--stk = 0;                         /* r1 */
    *--stk = (unsigned int) pdata;      /* r0 */
    *--stk = (SVC32MODE|0x0);			/* cpsr  IRQ, FIQ disable*/
    *--stk = (SVC32MODE|0x0);			/* spsr  IRQ, FIQ disable */


    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

INT32U        OSIntCtxSwFlag = 0;           /* Used to flag a context switch */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美绝品在线观看成人午夜影视| 欧美精品vⅰdeose4hd| 中文字幕av不卡| 国产成人福利片| 日本在线不卡视频| 久久久久久久久久久99999| 91成人在线观看喷潮| 老司机精品视频导航| 国产精品久久二区二区| 在线观看一区二区视频| 国产福利精品一区二区| 亚洲欧美区自拍先锋| 777色狠狠一区二区三区| 99久久精品国产导航| 污片在线观看一区二区| 2014亚洲片线观看视频免费| 99久久免费国产| 久久国内精品自在自线400部| 国产欧美日韩视频一区二区| 欧美日本在线视频| 色av成人天堂桃色av| 国产一区 二区| 美女网站色91| 日本欧美一区二区| 亚洲欧美偷拍另类a∨色屁股| 国产网站一区二区三区| 日韩精品一区在线观看| 亚洲婷婷综合久久一本伊一区| 亚洲二区在线视频| 丁香一区二区三区| 精品少妇一区二区三区视频免付费| 精品国产乱码久久久久久蜜臀| 精品久久国产老人久久综合| 精品福利一二区| 亚洲欧美偷拍三级| 久久99精品久久久久久| 成人理论电影网| 欧美在线观看视频在线| 欧美一区二区三区日韩视频| 久久综合九色综合97婷婷女人| 综合色天天鬼久久鬼色| 亚洲一区二区三区免费视频| 麻豆一区二区99久久久久| 色视频成人在线观看免| 色婷婷激情综合| 欧美不卡在线视频| 午夜在线电影亚洲一区| av高清不卡在线| 精品日韩一区二区| 亚洲色图欧美在线| 欧美日韩一区二区三区高清 | 日韩精品免费视频人成| 欧美在线观看视频在线| 日本一区二区高清| av一区二区三区黑人| 亚洲色图视频免费播放| 日本精品视频一区二区| 亚洲综合精品自拍| 欧美日韩亚洲综合一区| 秋霞成人午夜伦在线观看| 精品理论电影在线| 国产91精品在线观看| 国产精品456露脸| 欧美日韩亚洲不卡| 精品国偷自产国产一区| 日韩欧美在线不卡| 国产精品久久久久久久裸模| 亚洲午夜久久久久中文字幕久| 亚洲综合在线第一页| 久久电影国产免费久久电影| 成人精品国产福利| 亚洲精品一区在线观看| 亚洲人成网站色在线观看| 久久黄色级2电影| 欧美日韩在线免费视频| 亚洲三级电影网站| 香蕉影视欧美成人| 粉嫩av一区二区三区粉嫩| 久久久久综合网| 首页国产欧美日韩丝袜| 欧美日韩激情一区| 奇米一区二区三区av| 欧美在线观看你懂的| 亚洲天天做日日做天天谢日日欢 | 国产精品三级电影| 国产精品五月天| av午夜一区麻豆| 国产精品国产精品国产专区不片| 人人超碰91尤物精品国产| 中文字幕一区日韩精品欧美| 亚洲第一成年网| 亚洲444eee在线观看| 亚洲成av人片一区二区梦乃| 婷婷六月综合亚洲| 欧美午夜电影网| 蜜臀va亚洲va欧美va天堂| 亚洲女人小视频在线观看| 一区二区在线电影| 欧洲av一区二区嗯嗯嗯啊| 国精产品一区一区三区mba视频| 欧美私模裸体表演在线观看| 国产69精品久久久久777| 青草国产精品久久久久久| 亚洲成人免费观看| 综合久久给合久久狠狠狠97色 | 欧美精品一区二区三区蜜桃 | 亚洲一区二区三区四区中文字幕| 91免费看视频| 青娱乐精品视频在线| 久久精子c满五个校花| 欧美日韩国产另类一区| 青青草成人在线观看| 国产精品少妇自拍| 欧美最猛性xxxxx直播| 蜜臀久久99精品久久久画质超高清| 91超碰这里只有精品国产| 国产精品一二三在| 亚洲午夜激情av| 亚洲国产经典视频| 日韩女优av电影| 久久99久久99| 一区二区国产盗摄色噜噜| 久久婷婷国产综合精品青草| 欧美午夜片在线看| a级高清视频欧美日韩| 成人午夜视频在线| 国产福利一区二区三区视频| 日韩福利电影在线| 三级欧美韩日大片在线看| 亚洲妇女屁股眼交7| 亚洲天堂精品在线观看| 三级欧美韩日大片在线看| 欧美一区二区三区精品| 91麻豆精品国产91久久久| 在线视频你懂得一区二区三区| 91色.com| 性做久久久久久免费观看欧美| 欧美午夜视频网站| 欧美日韩亚州综合| 日韩亚洲国产中文字幕欧美| 欧美精品色综合| 亚洲一区视频在线| 亚洲精品一区二区三区蜜桃下载| 91在线视频在线| 蜜乳av一区二区| 欧美久久久久久久久中文字幕| 欧美日韩小视频| 久久久久久久久久久久久久久99 | 中文字幕一区二区三区色视频| 亚洲另类在线视频| 强制捆绑调教一区二区| 成人免费黄色在线| 欧美日韩激情一区二区三区| 26uuu色噜噜精品一区| 亚洲人吸女人奶水| 免费精品视频在线| 成人91在线观看| 欧美一区二区三区精品| 亚洲欧洲日韩综合一区二区| 午夜精品免费在线| 国产成人精品一区二区三区四区 | 亚洲色图视频网站| 久热成人在线视频| 色女孩综合影院| 精品国产sm最大网站| 一区二区三区成人在线视频 | 日本亚洲天堂网| 99在线热播精品免费| 日韩一区二区在线观看视频播放| 中文字幕中文字幕中文字幕亚洲无线| 免费欧美在线视频| 欧美在线一区二区三区| 欧美激情艳妇裸体舞| 麻豆精品久久久| 欧美日韩黄视频| 一区二区三区不卡在线观看 | 欧美一区二区久久久| 亚洲日本韩国一区| 处破女av一区二区| 日韩欧美中文字幕一区| 亚洲一区二区精品视频| 99久久er热在这里只有精品66| 精品人在线二区三区| 三级影片在线观看欧美日韩一区二区| 色综合天天综合网天天狠天天| 中文字幕av一区二区三区| 精品一区二区免费看| 日韩一区国产二区欧美三区| 夜夜精品视频一区二区| 91啦中文在线观看| 中文字幕亚洲一区二区av在线| 国产盗摄一区二区| 国产日韩影视精品| 成人综合激情网| 中文字幕不卡在线观看| www.视频一区| 国产精品麻豆网站| 91丨porny丨户外露出| 亚洲精品伦理在线| 欧美日韩免费一区二区三区|