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

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

?? os_cpu_c.c

?? 1)通過fs44b0xbios和網口
?? 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

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

/*
 * Initialize an ARM Target board
 */
void
 ARMTargetInit(void)
{
    /* ---- Tell the world who we are ---------------------------------- */
    uHALr_printf("uCOS-II Running on a") ;
    //Uart_Printf("uCOS-II Running on a") ;
#if defined(EBSA285)
    uHALr_printf("n EBSA-285 (21285 evaluation board)\n") ;
#elif defined(BRUTUS) 
    uHALr_printf(" Brutus (SA-1100 verification platform)\n") ;
#elif defined(INTEGRATOR) 
    uHALr_printf("n Integrator board\n") ;
#elif defined(PROSPECTOR) 
    uHALr_printf(" Prospector board\n") ;
#elif defined(SAMSUNG)
        uHALr_printf("\n FS44B0X ");
        uHALr_printf(" board\n") ;

#else
    uHALr_printf("n unknown ARM board\n") ;
#endif
    uHALr_printf(uHAL_VERSION_STRING); 
    uHALr_printf("\n") ;
    uHALr_printf(BUILD_DATE);
    uHALr_printf("\n") ;

#ifdef DEBUG
    uHALr_printf("Initialising target\n");
#endif

    /* ---- disable the MMU        ------------------------------------- */
    uHALr_ResetMMU();

    /* ---- disable interrupts (IRQs) --------------------------------- */
    ARMDisableInt();

    /* ---- soft vectors ---------------------------------------------- */
#ifdef DEBUG
    uHALr_printf("Setting up soft vectors\n");
#endif
    /* Define pre & post-process routines for Interrupt */
    uHALir_DefineIRQ((void *)IrqStart, (void *)IrqFinish, (void *) 0);
    uHALr_InitInterrupts();

#ifdef DEBUG
    uHALr_printf("Timer init\n");
#endif
    uHALr_InitTimers();

#ifdef DEBUG
    uHALr_printf("targetInit() complete\n");
#endif
}                               /* targetInit */

/* start the ARM target running */
void
 ARMTargetStart(void)
{
#ifdef DEBUG
    uHALr_printf("Starting target\n") ;
#endif

    /* request the system timer */
    if (uHALr_RequestSystemTimer(
                                 (void *) OSTimeTick,
                                 (const unsigned char *)"uCOS-II") <= 0)
        uHALr_printf("Timer/IRQ busy\n");

    /* Start system timer & enable the interrupt. */
    uHALr_InstallSystemTimer();
}

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

/* just 'notice' that we need to change context */
int 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一区二区三区免费野_久草精品视频
国产人成亚洲第一网站在线播放 | 视频一区中文字幕| 久久99热这里只有精品| www.视频一区| 欧美一级淫片007| 亚洲欧美偷拍另类a∨色屁股| 精品一区二区三区视频| 精品视频在线看| 亚洲天堂2014| 成人天堂资源www在线| 日韩一区二区三区视频在线观看 | 久久99久国产精品黄毛片色诱| 91视频观看免费| 国产亚洲va综合人人澡精品 | 亚洲一区av在线| 成人午夜精品在线| 欧美精品一区视频| 日本成人中文字幕在线视频| 欧美在线高清视频| 亚洲男人电影天堂| 波多野结衣在线一区| 国产三级精品三级在线专区| 久久国产精品第一页| 69堂成人精品免费视频| 亚洲一区在线观看免费观看电影高清 | 一区二区三区不卡视频在线观看 | 蜜桃一区二区三区四区| 欧美日韩中文字幕一区二区| 亚洲男人电影天堂| 91极品视觉盛宴| 午夜视频在线观看一区二区 | 91丨国产丨九色丨pron| 国产精品无遮挡| 国产传媒欧美日韩成人| 国产色综合久久| 国产成人免费视频网站| 久久久三级国产网站| 国产成人在线视频网站| 久久这里只有精品6| 国内国产精品久久| 国产欧美日韩麻豆91| 国产精品77777| 中文字幕一区二| 91原创在线视频| 亚洲国产精品久久久久秋霞影院| 欧美日韩中字一区| 久久99精品一区二区三区| 久久人人爽爽爽人久久久| 国产福利一区在线| 成人免费在线视频| 欧美性大战xxxxx久久久| 午夜久久久久久| 精品久久免费看| 成人免费观看视频| 一区二区三区不卡视频| 在线播放视频一区| 国产一区二区福利视频| 综合电影一区二区三区 | 日韩和欧美一区二区三区| 日韩精品一区在线观看| 成人美女视频在线看| 亚洲精品videosex极品| 91精品国产高清一区二区三区蜜臀 | 成人免费毛片片v| 又紧又大又爽精品一区二区| 欧美一级片在线观看| 国产成人午夜精品5599| 亚洲综合在线观看视频| 精品成人私密视频| 日本高清不卡aⅴ免费网站| 麻豆精品精品国产自在97香蕉| 国产三级一区二区三区| 欧美日韩国产经典色站一区二区三区| 免费久久99精品国产| 中文字幕一区在线观看视频| 欧美精品久久99| 成人中文字幕电影| 石原莉奈一区二区三区在线观看 | 性做久久久久久久久| 欧美精品一区二区精品网| 色网站国产精品| 国产成人免费在线观看不卡| 亚洲bt欧美bt精品| 中文字幕人成不卡一区| 精品免费国产一区二区三区四区| 91毛片在线观看| 国模无码大尺度一区二区三区| 亚洲精品久久久久久国产精华液| 精品国产伦一区二区三区免费| 在线观看三级视频欧美| 丁香五精品蜜臀久久久久99网站| 日韩成人免费电影| 亚洲美女在线国产| 中文字幕一区二区视频| 久久久午夜精品| 欧美xfplay| 欧美电视剧在线观看完整版| 欧美四级电影网| 日本韩国欧美三级| 91丨porny丨首页| 成人永久免费视频| 国产精品99久久久久久宅男| 日本三级亚洲精品| 日本不卡中文字幕| 日本亚洲最大的色成网站www| 亚洲一区二区三区四区五区中文| 一区二区中文视频| 国产精品进线69影院| 欧美国产成人在线| 日本一区二区在线不卡| 国产欧美日韩一区二区三区在线观看| 久久久精品人体av艺术| 久久亚洲影视婷婷| 欧美激情一二三区| 国产精品每日更新在线播放网址| 中文字幕免费一区| 国产精品久久久久精k8| 1024成人网| 一卡二卡三卡日韩欧美| 一区二区在线看| 亚洲一级电影视频| 石原莉奈在线亚洲三区| 免费欧美高清视频| 国产精品一区三区| 99热在这里有精品免费| 色一情一伦一子一伦一区| 欧美性xxxxxx少妇| 欧美一区二区三区视频在线| 日韩欧美国产成人一区二区| 久久免费国产精品| 中文字幕中文字幕中文字幕亚洲无线| 中文字幕在线不卡视频| 亚洲va韩国va欧美va精品| 日本欧美久久久久免费播放网| 捆绑紧缚一区二区三区视频| 国产精品资源站在线| 国产69精品久久99不卡| 色先锋资源久久综合| 91精品国产综合久久婷婷香蕉| 精品久久久网站| 日韩理论片一区二区| 午夜视频一区二区| 国产成人在线视频免费播放| 色婷婷综合在线| 欧美电视剧在线看免费| 国产精品国产三级国产普通话99 | 色88888久久久久久影院野外| 欧美老女人第四色| 久久精品亚洲国产奇米99| 中文字幕字幕中文在线中不卡视频| 亚洲成人资源在线| 国产一二三精品| 欧洲av一区二区嗯嗯嗯啊| 日韩欧美国产一二三区| 亚洲另类春色国产| 久久91精品国产91久久小草| 色综合天天综合在线视频| 日韩一级大片在线| 综合久久久久久| 国产在线精品一区二区| 91久久国产综合久久| 欧美国产激情一区二区三区蜜月| 午夜欧美一区二区三区在线播放| 国产成a人亚洲精| 欧美日韩电影一区| 国产精品久久久久久亚洲伦| 男人的j进女人的j一区| 97成人超碰视| 久久久精品人体av艺术| 丝袜亚洲另类欧美| 日本道免费精品一区二区三区| 精品免费日韩av| 日韩电影在线免费看| 色婷婷久久综合| 欧美国产精品中文字幕| 久久丁香综合五月国产三级网站 | 色一情一乱一乱一91av| 国产亚洲欧洲一区高清在线观看| 午夜精彩视频在线观看不卡| 99久久伊人久久99| 日本一区二区三级电影在线观看| 毛片av一区二区| 51精品久久久久久久蜜臀| 伊人开心综合网| 日本伦理一区二区| 亚洲色图19p| 91丝袜国产在线播放| 中文字幕在线不卡视频| 国产69精品一区二区亚洲孕妇| 2021中文字幕一区亚洲| 奇米影视7777精品一区二区| 欧美日韩精品一区二区三区蜜桃| 综合欧美亚洲日本| 色婷婷av一区二区三区之一色屋| 国产精品嫩草久久久久| 成人免费毛片app| 国产精品国产精品国产专区不片| 成人在线视频首页| 亚洲欧洲www| 在线国产亚洲欧美|