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

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

?? os_cpu_c.c

?? 移植好的UCOS2.86版
?? C
字號:
/*
*********************************************************************************************************
* 文件: OS_CPU_C.C.
* 描述: uC/OS-II在 44B0X 上的移植代碼 C 語言部分,包括任務(wù)堆棧初始化代碼和鉤子函數(shù)等.
* 編寫:  
*********************************************************************************************************
*/
#include "2440addr.h"
#include "Includes.h"
#define  OS_CPU_GLOBALS


/*
*********************************************************************************************************
*                                        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.
*              6) All your tasks are assumed to be in NON-PAGED memory.  However, the tasks can call
*                 functions in PAGED memory and if a context switch occurs, the proper page will be
*                 saved/restored by uC/OS-II.  Page #0 is stored onto the task's stack as a 'dummy'
*                 value.
*********************************************************************************************************
*/
OS_STK *OSTaskStkInit (void (*task)(void *pd), void *p_arg, OS_STK *ptos, INT16U opt)
{
    OS_STK *stk;

    opt      = opt;                 /* 'opt' is not used, prevent warning                      */
    
    stk      = ptos;                /* Load stack pointer                                      */
    
    *(stk)   = (OS_STK)task;        /* Entry Point                                             */
    *(--stk) = (INT32U)0;         	/* LR                                                      */
    *(--stk) = (INT32U)0;         	/* R12                                                     */
    *(--stk) = (INT32U)0;         	/* R11                                                     */
    *(--stk) = (INT32U)0;         	/* R10                                                     */
    *(--stk) = (INT32U)0;         	/* R9                                                      */
    *(--stk) = (INT32U)0;         	/* R8                                                      */
    *(--stk) = (INT32U)0;         	/* R7                                                      */
    *(--stk) = (INT32U)0;         	/* R6                                                      */
    *(--stk) = (INT32U)0;         	/* R5                                                      */
    *(--stk) = (INT32U)0;         	/* R4                                                      */
    *(--stk) = (INT32U)0;         	/* R3                                                      */
    *(--stk) = (INT32U)0;         	/* R2                                                      */
    *(--stk) = (INT32U)0;         	/* R1                                                      */
    *(--stk) = (INT32U)p_arg;		/* R0 : argument                                           */
    *(--stk) = (INT32U)0x00000013L; /* CPSR  (SVC mode, Enable both IRQ and FIQ interrupts)    */
 									         
    return (stk);
}

#if OS_CPU_HOOKS_EN
/*
*********************************************************************************************************
*                                       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_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_VERSION > 203
void OSInitHookEnd (void)
{
}
#endif

/*
*********************************************************************************************************
*                                          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)
{
   Uart_Printf("%d\n",OSPrioHighRdy);
}

/*
*********************************************************************************************************
*                                           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)
{
}

/*
*********************************************************************************************************
*                                           OSTCBInit() HOOK
*
* Description: This function is called by OSTCBInit() 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_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.
*********************************************************************************************************
*/
void OSTimeTickHook (void)
{
  //Uart_Printf("t");	
}

/*
*********************************************************************************************************
*                                             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_VERSION >= 251
void OSTaskIdleHook (void)
{
   Uart_Printf("b"); 	
}
#endif
#endif
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩日日骚| 亚洲激情图片小说视频| 一区二区三区四区在线播放 | 日韩精品一区二| 亚洲欧美日韩综合aⅴ视频| 国内外精品视频| 欧美一区二区高清| 亚洲国产成人av网| 91麻豆免费看| 国产精品欧美精品| 韩国一区二区在线观看| 日韩欧美在线123| 亚洲一二三区在线观看| 99久久精品国产一区| 国产片一区二区| 国产精品一级黄| 日韩女优av电影在线观看| 亚洲成人一区在线| 91高清视频免费看| 亚洲男人的天堂网| 一本一本大道香蕉久在线精品| 国产精品婷婷午夜在线观看| 国产一区二区剧情av在线| 日韩一区二区免费视频| 婷婷一区二区三区| 91精品国产综合久久久久久久| 亚洲高清不卡在线| 在线不卡一区二区| 日韩国产高清影视| 在线综合亚洲欧美在线视频| 日韩极品在线观看| 91精品国产综合久久久久| 日本一不卡视频| 日韩一二三四区| 久久成人免费网站| 久久日韩粉嫩一区二区三区| 国产.精品.日韩.另类.中文.在线.播放| 欧美va天堂va视频va在线| 精品一区二区三区影院在线午夜 | 中文字幕一区二区在线播放| 成人福利视频网站| 成人欧美一区二区三区| 91麻豆视频网站| 天堂久久一区二区三区| 日韩欧美123| 国产suv精品一区二区三区| 国产精品理伦片| 在线精品亚洲一区二区不卡| 天堂va蜜桃一区二区三区漫画版| 欧美一级日韩一级| 成人在线一区二区三区| 亚洲久本草在线中文字幕| 欧美精品三级在线观看| 黄页网站大全一区二区| 亚洲色图视频网| 日韩精品中文字幕一区| 国产高清亚洲一区| 亚洲国产精品天堂| 国产色一区二区| 欧美色男人天堂| 国内精品国产成人国产三级粉色 | 国产成人午夜电影网| 日韩美女视频一区| 欧美久久一二三四区| 国产在线精品一区二区不卡了 | 欧美一卡2卡三卡4卡5免费| 精品一区在线看| 亚洲欧美另类综合偷拍| 91丨porny丨在线| 日本不卡一二三区黄网| 日韩一区日韩二区| 久久综合九色欧美综合狠狠 | 成人av小说网| 日日夜夜精品视频天天综合网| 久久午夜电影网| 精品视频色一区| 国产精品亚洲一区二区三区妖精| 亚洲男人都懂的| 久久精品人人做人人爽人人| 欧美私模裸体表演在线观看| 国产成人高清视频| 日本视频中文字幕一区二区三区| 国产精品国模大尺度视频| 日韩一级黄色片| 91久久精品国产91性色tv| 国产精品一区二区无线| 日本va欧美va瓶| 亚洲一二三专区| 亚洲欧美日韩国产中文在线| 久久久亚洲高清| 欧美一级专区免费大片| 精品视频色一区| 欧美在线影院一区二区| 成人久久18免费网站麻豆| 九九精品一区二区| 日日摸夜夜添夜夜添国产精品| 99久久伊人久久99| 亚洲自拍偷拍麻豆| 日本一区二区三区在线观看| 日韩欧美黄色影院| 555www色欧美视频| 欧美色网站导航| 一本大道综合伊人精品热热 | 欧美精品一区二区高清在线观看 | 日韩国产欧美在线观看| 亚洲一区在线看| 亚洲精品欧美激情| 亚洲精品综合在线| 樱花草国产18久久久久| 中文字幕色av一区二区三区| 国产精品传媒在线| 国产精品不卡在线| 国产欧美综合色| 欧美高清在线一区| 国产精品国产三级国产普通话99| 国产女同性恋一区二区| 国产婷婷色一区二区三区在线| 久久久天堂av| 国产精品久久久久影院老司 | 久久综合999| 国产亚洲欧美激情| 国产精品久久久久久久久免费相片| 中日韩av电影| 亚洲国产综合在线| 日本亚洲欧美天堂免费| 国产曰批免费观看久久久| 懂色av中文一区二区三区 | 亚洲女与黑人做爰| 亚洲欧美日韩中文字幕一区二区三区| 亚洲黄色免费电影| 日韩av不卡一区二区| 久久精品国产亚洲高清剧情介绍| 激情久久五月天| av福利精品导航| 欧美日韩亚洲综合在线| 日韩视频一区二区在线观看| 久久网这里都是精品| 亚洲女女做受ⅹxx高潮| 午夜av区久久| 国产福利一区二区三区视频| 色播五月激情综合网| 日韩一区二区免费电影| 国产欧美一区二区精品久导航| 亚洲少妇最新在线视频| 免费在线观看日韩欧美| 国产成人午夜精品影院观看视频 | 免费观看91视频大全| 国产成人精品影视| 在线观看国产一区二区| 日韩一区二区三区免费观看| 欧美国产日韩一二三区| 亚洲图片欧美视频| 国产精品一级二级三级| 欧美日韩一级二级| 国产精品日韩精品欧美在线 | 亚洲午夜久久久久久久久电影院 | 日韩av网站免费在线| 国产精品一区二区果冻传媒| 欧美视频中文一区二区三区在线观看| 久久影音资源网| 亚洲成人动漫一区| 99精品国产视频| 久久久www免费人成精品| 亚洲成人一区在线| 成人永久免费视频| 日韩精品一区二区三区视频播放 | 色悠久久久久综合欧美99| 欧美一区永久视频免费观看| 成人免费一区二区三区视频| 国产在线精品一区二区夜色| 欧美日韩成人一区二区| 中文字幕在线视频一区| 久久91精品国产91久久小草| 欧美日韩免费观看一区三区| 国产精品成人免费| 成人一区二区三区| 精品第一国产综合精品aⅴ| 亚洲成人免费影院| 色婷婷精品久久二区二区蜜臀av | 国产色产综合色产在线视频| 美女性感视频久久| 欧美日韩国产a| 亚洲第一综合色| 欧美亚洲动漫另类| 亚洲视频1区2区| 99视频精品在线| 国产精品热久久久久夜色精品三区| 精品一区二区三区免费视频| 日韩三级视频中文字幕| 日韩1区2区3区| 日韩你懂的电影在线观看| 天堂一区二区在线免费观看| 欧美精品一二三| 五月综合激情网| 日韩一区二区高清| 免费av成人在线| 2022国产精品视频| 黄色小说综合网站| 久久久久国产精品麻豆ai换脸| 国产精品77777竹菊影视小说|