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

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

?? os_cpu_c.c

?? uCOS-II在三星44B0開發(fā)板上的移植
?? 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"

/*
*********************************************************************************************************
*                                       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

/*
*********************************************************************************************************
*                                        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)
{
    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;       /* 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;                 /* spsr YYY+ */
    *--stk = SVC32MODE;                 /* psr */
    return ((OS_STK *)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                                     */
}

/*
*********************************************************************************************************
*                                             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

/*
*********************************************************************************************************
*                                           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


/*
*********************************************************************************************************
*                                           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

#define BUILD_DATE "Date: " __DATE__ "\n"

extern void IRQContextSwap(void);   /* post DispatchIRQ processing (the _real_ one) */

/* just 'notice' that we need to change context */
static need_to_swap_context = 0 ;
void OSIntCtxSw(void) {
    need_to_swap_context = 1;
}

/* This is what uCOS does at the start of an IRQ */
void IrqStart(void)
{
    /* increment nesting counter */
    OSIntNesting++;
}

/* This is what uCOS does at the end of an IRQ */
void *IrqFinish(void)
{
    OSIntExit() ;
    if (need_to_swap_context) {
        need_to_swap_context = 0 ;
        return ((void *)IRQContextSwap) ;
    } else {
        return((void *)0);
    }
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
3d动漫精品啪啪1区2区免费| 亚洲精选一二三| 国产精品国产自产拍高清av | 天天综合色天天综合| 国产老妇另类xxxxx| 欧美性三三影院| 亚洲国产精品成人综合色在线婷婷| 丝袜美腿成人在线| 91福利视频久久久久| 中文字幕乱码一区二区免费| 久久国产免费看| 欧美色区777第一页| 国产精品第四页| 风流少妇一区二区| 国产无一区二区| 国产一区二区美女| 日韩欧美色电影| 蜜桃视频在线观看一区二区| 欧美人xxxx| 亚洲1区2区3区视频| 欧美丝袜第三区| 亚洲高清免费视频| 欧美色精品在线视频| 亚洲精品写真福利| 成人av高清在线| 欧美国产精品一区| 丁香婷婷综合色啪| 国产精品你懂的| 国产激情偷乱视频一区二区三区| 精品国产污网站| 国产福利一区在线观看| 日本一区二区三区国色天香| 国产福利一区二区| 国产欧美一区二区精品婷婷| 国产精品69毛片高清亚洲| 国产日韩视频一区二区三区| 成人性视频免费网站| 国产亚洲成aⅴ人片在线观看| 国产乱妇无码大片在线观看| 国产丝袜欧美中文另类| 粉嫩aⅴ一区二区三区四区五区| 国产欧美一区二区在线观看| 成人av综合一区| 一区二区三区av电影| 欧美综合天天夜夜久久| 日本一不卡视频| 欧美不卡一区二区| 国产一区二区三区久久悠悠色av| 久久久国产综合精品女国产盗摄| 国产suv精品一区二区三区| 日韩伦理电影网| 欧美日韩免费一区二区三区| 免费看欧美女人艹b| 久久精品日韩一区二区三区| 91在线国产观看| 亚洲电影一区二区三区| 日韩午夜av一区| eeuss鲁片一区二区三区| 亚洲男人天堂av网| 日韩一级片网址| 国产精品一区二区三区99| 亚洲人成网站精品片在线观看| 欧美高清性hdvideosex| 高清免费成人av| 舔着乳尖日韩一区| 久久精品亚洲一区二区三区浴池| 91污片在线观看| 麻豆精品一区二区av白丝在线| 国产精品网友自拍| 欧美久久高跟鞋激| 成人午夜电影网站| 日韩精品电影在线| 国产精品国产三级国产| 欧美日本一区二区| 成人小视频免费观看| 丝袜国产日韩另类美女| 国产精品久久久久aaaa樱花| 欧美福利视频导航| 成年人午夜久久久| 麻豆精品视频在线观看免费| 一区二区三区四区蜜桃| 久久先锋影音av| 欧美精品粉嫩高潮一区二区| 本田岬高潮一区二区三区| 蜜臀国产一区二区三区在线播放 | 91一区二区三区在线观看| 天堂在线亚洲视频| 1024成人网| xfplay精品久久| 欧美精选一区二区| 欧美在线观看视频一区二区 | 国产在线一区二区| 亚洲成人av在线电影| 最新国产精品久久精品| 久久久久国产免费免费| 日韩欧美电影一二三| 欧美剧情片在线观看| 欧美日韩在线三级| 色中色一区二区| 不卡视频在线看| 国产成人免费高清| 国产麻豆视频一区| 国产在线视视频有精品| 久久草av在线| 日本欧美在线观看| 蜜桃av一区二区| 另类小说综合欧美亚洲| 九色porny丨国产精品| 三级欧美韩日大片在线看| 亚洲高清视频在线| 亚洲一级二级三级在线免费观看| 亚洲日本丝袜连裤袜办公室| 国产精品久久久久一区 | 久久精品亚洲乱码伦伦中文| 久久综合九色欧美综合狠狠| 久久综合99re88久久爱| 久久美女艺术照精彩视频福利播放| 日韩欧美一区在线观看| 91精选在线观看| 日韩欧美一区中文| 精品国产区一区| 国产日韩欧美在线一区| 日本一区二区视频在线观看| 国产精品美女久久久久久久久久久 | 国产精品99久久久久| 国产成人在线网站| 成人91在线观看| 色婷婷激情久久| 9191成人精品久久| 精品日韩一区二区三区| 久久亚洲二区三区| 亚洲四区在线观看| 亚洲一区在线观看网站| 蜜桃久久久久久久| 国产iv一区二区三区| 91精品福利视频| 欧美一区二区三区视频在线观看| 欧美成人a∨高清免费观看| 久久久久久久久久久久久夜| **欧美大码日韩| 日韩va亚洲va欧美va久久| 国产一区二区按摩在线观看| 成人免费看视频| 欧美日韩一卡二卡| 久久综合狠狠综合久久激情| 综合中文字幕亚洲| 日韩av不卡在线观看| 成人综合在线观看| 欧美女孩性生活视频| 欧美精品一区二区三区蜜臀| 亚洲人一二三区| 美女被吸乳得到大胸91| 本田岬高潮一区二区三区| 欧美精品色综合| 国产女主播视频一区二区| 亚洲小说春色综合另类电影| 黄色日韩三级电影| 91黄视频在线观看| 久久久美女毛片| 亚洲最新视频在线观看| 国产一区二区三区国产| 欧美揉bbbbb揉bbbbb| 久久九九影视网| 丝袜美腿高跟呻吟高潮一区| www.av精品| 精品国产sm最大网站免费看| 亚洲一区二区三区三| 国v精品久久久网| 欧美v国产在线一区二区三区| 一区二区欧美视频| 成人午夜免费视频| 日韩三级视频中文字幕| 亚洲黄一区二区三区| 国产黄色精品视频| 欧美一区二区免费| 亚洲国产一二三| 色综合天天狠狠| 国产精品久久久久aaaa樱花| 激情五月婷婷综合| 欧美日韩国产片| 亚洲激情综合网| 99精品视频在线免费观看| 国产日本欧美一区二区| 激情综合五月婷婷| 日韩午夜中文字幕| 首页国产欧美日韩丝袜| 在线免费观看日本一区| 亚洲欧美日韩国产一区二区三区 | 欧美日韩一区在线观看| 亚洲欧洲综合另类在线| av中文字幕一区| 欧美国产禁国产网站cc| 国产馆精品极品| 国产日本一区二区| 粉嫩绯色av一区二区在线观看| 久久女同精品一区二区| 国产成人精品免费视频网站| 久久久精品人体av艺术| 国产999精品久久久久久绿帽| 欧美国产精品一区二区三区|