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

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

?? os_cpu_c.c

?? ads下ucos在9200上的移植
?? C
字號:
/*
*********************************************************************************************************
*                                               uC/OS-II
*                                        The Real-Time Kernel
*
*                           (c) Copyright 1992-2003, Micrium, Inc., Weston, FL
*                                          All Rights Reserved
*
*                                               ARM7 Port
*
* File : OS_CPU_C.C
* By   : Jean J. Labrosse
*        Michael Anburaj        Email : michaelanburaj@hotmail.com
*                               Web   : http://geocities.com/michaelanburaj/
*********************************************************************************************************
*/

#define  OS_CPU_GLOBALS
#include "ucos_ii.h"

#define  ARM_SVC_MODE   0x00000013
#define  F_BIT          0x40
/*
*********************************************************************************************************
*                                       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)
{
    OSIntCtxSwFlag = 0;
}
#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

/*
*********************************************************************************************************
*                                          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.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0 
void  OSTaskCreateHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                       /* Prevent compiler warning                                     */
}
#endif


/*
*********************************************************************************************************
*                                           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.
*********************************************************************************************************
*/
#if OS_CPU_HOOKS_EN > 0 
void  OSTaskDelHook (OS_TCB *ptcb)
{
    ptcb = ptcb;                       /* Prevent compiler warning                                     */
}
#endif

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

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

#if OS_CPU_HOOKS_EN > 0 
void  OSTaskStatHook (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
*
*              p_arg         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) Interrupts are enabled when your task starts executing. 
*              2) All tasks run in SVC mode.
*********************************************************************************************************
*/

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)0x14141414;         /* LR                                                      */
    *(--stk) = (INT32U)0x12121212;         /* R12                                                     */
    *(--stk) = (INT32U)0x11111111;         /* R11                                                     */
    *(--stk) = (INT32U)0x10101010;         /* R10                                                     */
    *(--stk) = (INT32U)0x09090909;         /* R9                                                      */
    *(--stk) = (INT32U)0x08080808;         /* R8                                                      */
    *(--stk) = (INT32U)0x07070707;         /* R7                                                      */
    *(--stk) = (INT32U)0x06060606;         /* R6                                                      */
    *(--stk) = (INT32U)0x05050505;         /* R5                                                      */
    *(--stk) = (INT32U)0x04040404;         /* R4                                                      */
    *(--stk) = (INT32U)0x03030303;         /* R3                                                      */
    *(--stk) = (INT32U)0x02020202;         /* R2                                                      */
    *(--stk) = (INT32U)0x01010101;         /* R1                                                      */
    *(--stk) = (INT32U)p_arg;               /* R0 : argument                                           */
    *(--stk) = (INT32U)ARM_SVC_MODE|F_BIT;        /* CPSR  (Enable both IRQ and FIQ interrupts)              */
    *(--stk) = (INT32U)ARM_SVC_MODE|F_BIT;        /* SPSR                                                    */

    return (stk);
}

/*
*********************************************************************************************************
*                                           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).
*********************************************************************************************************
*/
#if (OS_CPU_HOOKS_EN > 0) && (OS_TASK_SW_HOOK_EN > 0)
void  OSTaskSwHook (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


/*
*********************************************************************************************************
*                                               TICK HOOK
*
* Description: This function is called every tick.
*
* Arguments  : none
*
* Note(s)    : 1) Interrupts may or may not be ENABLED during this call.
*********************************************************************************************************
*/
#if (OS_CPU_HOOKS_EN > 0) && (OS_TIME_TICK_HOOK_EN > 0)
void  OSTimeTickHook (void)
{
}
#endif


/*
*********************************************************************************************************
*                                         ARM SPECIFIC CODE
*********************************************************************************************************
*/


/*
*********************************************************************************************************
*                                   INTERRUPT LEVEL CONTEXT SWITCH
*
* Description : This function is called by the OSIntExit() to perform a context switch at the completion
*               of an ISR.  However, instead of actually doing the context switch from within OSIntExit(),
*               we simply set a flag (OSIntCtxSwFlag) and defer the actual context switch until the actual
*               ISR completes (see OS_CPU_IRQ_ISR()).
*               
* Arguments   : none
*********************************************************************************************************
*/
void  OSIntCtxSw (void)
{
    OSIntCtxSwFlag = 1;                       /* Indicate that a context switch from ISR is needed  */
}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产精品99久久久久久老狼 | 色综合久久久久| 国产一区二区网址| 激情深爱一区二区| 九九国产精品视频| 蜜臀久久久久久久| 老色鬼精品视频在线观看播放| 日韩高清不卡一区| 麻豆视频一区二区| 精品亚洲成a人| 国产在线麻豆精品观看| 国产福利精品导航| 春色校园综合激情亚洲| 波波电影院一区二区三区| 成人av电影免费观看| 91女神在线视频| 91成人国产精品| 欧美精品成人一区二区三区四区| 欧美三级中文字| 91精品国产综合久久福利| 欧美成人女星排名| 欧美精品一区在线观看| 欧美激情一区二区三区| 亚洲三级在线看| 亚洲国产综合91精品麻豆| 丝袜美腿成人在线| 久久99久久99| 成人免费看的视频| 欧美在线制服丝袜| 欧美一区二区三区白人| 久久久久国产成人精品亚洲午夜| 国产精品午夜在线观看| 亚洲人成网站在线| 日日摸夜夜添夜夜添精品视频| 精品一区二区成人精品| 成人app软件下载大全免费| 色欧美乱欧美15图片| 日韩一区二区在线免费观看| 久久九九全国免费| 亚洲最新视频在线观看| 精品一区二区三区在线观看| 成人小视频免费在线观看| 91国产精品成人| 精品剧情在线观看| 亚洲人成精品久久久久| 久久精品国产在热久久| eeuss影院一区二区三区| 欧美精品一级二级三级| 国产午夜亚洲精品午夜鲁丝片| 亚洲图片你懂的| 人人狠狠综合久久亚洲| 不卡av免费在线观看| 911精品国产一区二区在线| 国产午夜精品久久久久久久| 亚洲国产一区在线观看| 国产精品99久久久久久久vr| 欧美色大人视频| 国产视频一区在线观看| 水蜜桃久久夜色精品一区的特点| 国产ts人妖一区二区| 欧美日韩色综合| 国产女同性恋一区二区| 日本午夜精品视频在线观看| 不卡高清视频专区| 欧美电影精品一区二区| 亚洲尤物视频在线| 成人不卡免费av| 精品免费日韩av| 亚洲一二三区在线观看| 成人av资源在线| 欧美成人精品高清在线播放| 亚洲一区二区美女| 成人免费的视频| 久久新电视剧免费观看| 日韩精品一卡二卡三卡四卡无卡| jizz一区二区| 久久久99久久精品欧美| 日韩国产欧美在线观看| 在线观看av一区二区| 国产亚洲污的网站| 久久精品国产精品亚洲红杏| 欧美伊人久久久久久久久影院 | 久久国产麻豆精品| 欧美视频一区二区三区四区| 亚洲欧洲成人自拍| 国产成人免费在线视频| 2024国产精品视频| 美女性感视频久久| 制服丝袜中文字幕亚洲| 午夜精品久久久久久久99水蜜桃| 99久久免费国产| 中日韩av电影| 成人网在线播放| 国产日韩精品一区| 国产精品一品二品| 久久噜噜亚洲综合| 狠狠色丁香久久婷婷综| 欧美电影免费观看高清完整版在线| 香港成人在线视频| 精品视频999| 亚洲国产视频一区| 精品视频全国免费看| 一区二区三区av电影| 一本久道中文字幕精品亚洲嫩| 一色桃子久久精品亚洲| 成人av电影在线| 国产精品成人免费在线| 99在线精品观看| 综合色天天鬼久久鬼色| 91原创在线视频| 亚洲精品美腿丝袜| 在线欧美日韩精品| 亚洲国产欧美日韩另类综合 | 综合久久一区二区三区| 91小视频在线免费看| 亚洲精品免费在线观看| 91九色02白丝porn| 亚洲成va人在线观看| 6080午夜不卡| 精品一区二区三区的国产在线播放| 日韩免费视频线观看| 国产一区二区伦理片| 欧美韩国日本不卡| 91美女片黄在线观看91美女| 亚洲最色的网站| 欧美一级片在线看| 国产成人小视频| 亚洲精品日产精品乱码不卡| 欧美色爱综合网| 久久成人综合网| 中文字幕免费一区| 在线观看免费成人| 老司机午夜精品99久久| 中文在线一区二区| 在线一区二区三区四区五区| 日韩av午夜在线观看| 久久五月婷婷丁香社区| 99精品久久免费看蜜臀剧情介绍| 亚洲亚洲精品在线观看| 精品国产一区二区三区久久久蜜月 | 久久精品亚洲精品国产欧美| 91一区在线观看| 日日夜夜精品视频免费| 久久精品欧美一区二区三区麻豆| 99视频精品全部免费在线| 亚洲第一激情av| 久久久99精品免费观看不卡| 一本色道**综合亚洲精品蜜桃冫 | 成人少妇影院yyyy| 亚洲尤物在线视频观看| 26uuu亚洲综合色欧美| 色综合夜色一区| 久草在线在线精品观看| 最新不卡av在线| 日韩欧美在线1卡| 一本大道av一区二区在线播放| 蜜臀av一区二区| 亚洲视频一二三区| 精品久久久久久久久久久久久久久久久| 成人午夜精品一区二区三区| 亚洲gay无套男同| 国产精品麻豆欧美日韩ww| 欧美精品日韩一区| 不卡电影一区二区三区| 美国十次综合导航| 一区二区久久久久久| 久久蜜桃av一区二区天堂| 欧美性三三影院| 国产不卡视频在线播放| 青椒成人免费视频| 亚洲精品你懂的| 国产三级一区二区三区| 欧美一区二区三区在线| 在线亚洲一区二区| 国产91精品精华液一区二区三区 | 久久久国产午夜精品| 欧美肥胖老妇做爰| av午夜一区麻豆| 韩国女主播成人在线观看| 午夜伦欧美伦电影理论片| 中文字幕欧美一| 中文字幕精品三区| 精品国精品自拍自在线| 欧美高清激情brazzers| 在线中文字幕不卡| 91一区二区在线观看| 成人av电影在线| 粉嫩av亚洲一区二区图片| 久久99国内精品| 美女一区二区在线观看| 亚洲成人免费在线| 亚洲女爱视频在线| 国产精品久久网站| 国产日韩精品一区| 久久精品亚洲麻豆av一区二区| 欧美v日韩v国产v| 欧美一区二区免费视频| 欧美日韩黄视频| 久久久久久免费| 精品乱码亚洲一区二区不卡|