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

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

?? os_cpu_c.c

?? UCOS移植到三星ARM芯片S3C44B0上程序的范例,并有移植成功后的應用
?? 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);
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区在线| 久久精品日韩一区二区三区| 欧美日韩中文另类| 欧美网站大全在线观看| 在线观看91视频| 在线观看一区日韩| 日韩三级在线免费观看| 国产女人水真多18毛片18精品视频| 中文字幕第一区| 国产精品免费aⅴ片在线观看| 一区二区久久久久| 精品无人码麻豆乱码1区2区| 精品不卡在线视频| 中文字幕日韩精品一区| 青青草原综合久久大伊人精品| 国精产品一区一区三区mba视频| 综合激情网...| 国产黄人亚洲片| 欧美一区二区精品在线| 欧美精品日韩精品| 日本一区二区三区久久久久久久久不 | 婷婷开心激情综合| 国产精品12区| 色噜噜狠狠色综合中国| 91碰在线视频| 日韩精品影音先锋| 亚洲一区在线观看视频| 成人免费的视频| 欧美v国产在线一区二区三区| 91免费观看视频在线| 精品国产伦一区二区三区观看方式| 亚洲成a人在线观看| 亚洲一区在线看| 99久久综合狠狠综合久久| 欧美在线观看禁18| 亚洲国产欧美另类丝袜| 成人av在线网| 欧美最猛性xxxxx直播| 亚洲欧美一区二区不卡| 成人黄页在线观看| 制服.丝袜.亚洲.中文.综合| 欧美大片拔萝卜| 亚瑟在线精品视频| 在线欧美一区二区| 亚洲国产精品久久人人爱蜜臀 | 免费观看在线综合| 欧美日韩一级二级三级| 亚洲福利视频导航| 欧美日韩精品专区| 亚洲五月六月丁香激情| 欧美中文字幕一区| 一区二区三区在线视频观看 | 欧美aⅴ一区二区三区视频| 欧美日韩在线一区二区| 久久久久久免费毛片精品| 青草国产精品久久久久久| 欧美日韩国产乱码电影| 一区二区三区在线视频免费观看| av在线这里只有精品| 中文字幕日本乱码精品影院| 97久久久精品综合88久久| 精品国产1区2区3区| 午夜天堂影视香蕉久久| 99精品久久只有精品| 中文字幕在线不卡视频| 亚洲国产中文字幕| 欧美猛男超大videosgay| 亚洲成人综合在线| 日韩视频免费直播| 激情小说亚洲一区| 国产精品青草综合久久久久99| 不卡一区二区在线| 亚洲天堂av一区| 日本丰满少妇一区二区三区| 夜夜嗨av一区二区三区中文字幕 | 欧美成人高清电影在线| 久久99国产精品免费网站| 国产亚洲精品超碰| 94-欧美-setu| 亚洲一二三四久久| 欧美va亚洲va在线观看蝴蝶网| 高清不卡在线观看| 亚洲一区av在线| 26uuu欧美| 91麻豆福利精品推荐| 人人超碰91尤物精品国产| 久久美女高清视频| 91国偷自产一区二区开放时间| 日韩av电影免费观看高清完整版 | 国产一区二区91| 亚洲激情成人在线| 欧美电影免费观看完整版| 国产在线精品一区二区三区不卡| 亚洲日穴在线视频| 欧美成人激情免费网| 色婷婷久久久久swag精品| 麻豆91在线观看| 亚洲丝袜制服诱惑| 欧美疯狂做受xxxx富婆| 亚洲va欧美va人人爽| 中文字幕中文乱码欧美一区二区| 99视频在线精品| 日韩av成人高清| 亚洲三级免费观看| 26uuu亚洲综合色| 欧美日韩激情在线| 成人黄页在线观看| 激情文学综合网| 午夜影院久久久| 国产精品传媒入口麻豆| 日韩精品一区二区三区在线播放| 成人免费高清视频在线观看| 日韩二区在线观看| 在线播放欧美女士性生活| 99麻豆久久久国产精品免费优播| 男人的天堂亚洲一区| 一区二区日韩av| 国产精品天美传媒沈樵| 精品国产91乱码一区二区三区| 欧美日韩一区二区三区在线| 国产成人在线网站| 久久国内精品视频| 日韩国产高清影视| 中文字幕亚洲成人| 国产日韩精品一区二区三区| 91精品国产高清一区二区三区| 日本久久电影网| 北岛玲一区二区三区四区| 国产成人午夜精品影院观看视频| 日本不卡一二三| 亚洲午夜久久久| 亚洲免费三区一区二区| 亚洲欧洲日产国产综合网| 久久久www成人免费毛片麻豆| 日韩一级在线观看| 日韩一区二区电影网| 欧美一区二区三区免费| 成人av免费在线观看| 国产伦理精品不卡| 国产在线一区观看| 国产乱人伦偷精品视频不卡| 美国欧美日韩国产在线播放| 六月婷婷色综合| 99在线精品免费| 欧美精品自拍偷拍动漫精品| 精品久久久久香蕉网| 1024成人网| 久久国产福利国产秒拍| 9久草视频在线视频精品| 777色狠狠一区二区三区| 久久久久国产精品麻豆| 一区二区三区**美女毛片| 精品一区二区三区在线视频| 99v久久综合狠狠综合久久| 91精品国产综合久久久久久| 国产三级欧美三级| 香蕉久久夜色精品国产使用方法| 国产在线一区二区综合免费视频| 99精品欧美一区二区三区小说| 91精品国产综合久久久久久漫画| 欧美激情一区二区三区不卡| 午夜精品成人在线| 欧美mv日韩mv国产网站app| 欧美亚男人的天堂| 日韩欧美区一区二| 中文字幕一区二区三区色视频 | 欧美一区日韩一区| 国产精品久久久久aaaa| 美女视频免费一区| 色猫猫国产区一区二在线视频| 欧美精品一区二区三区一线天视频| 一区二区三区四区亚洲| 国产精品一卡二卡在线观看| 黑人巨大精品欧美黑白配亚洲| 国产精品视频你懂的| 久久嫩草精品久久久久| 亚洲成av人片在线| 51精品久久久久久久蜜臀| 成人免费的视频| 精品成人a区在线观看| 不卡的电视剧免费网站有什么| 久久久午夜精品| 日本va欧美va瓶| 一区二区三区高清在线| 美日韩一区二区| 一区二区三区免费在线观看| 国产一区不卡视频| 久久久久久亚洲综合| 国产另类ts人妖一区二区| 一区二区不卡在线视频 午夜欧美不卡在| 日韩精品成人一区二区在线| 亚洲自拍偷拍麻豆| 免费视频最近日韩| av色综合久久天堂av综合| 欧美变态口味重另类| 偷拍一区二区三区| 欧美美女视频在线观看| 亚洲国产一区二区三区青草影视| 91在线看国产| 亚洲日本免费电影|