?? os_cpu_c.c
字號:
/****************************************Copyright (c)****************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
** http://www.embedtools.com
**
**--------------File Info---------------------------------------------------------------------------------
** File Name: os_cpu_c.c
** Last modified Date: 2007.01.18
** Last Version: 1.0
** Description: The C functions that a uC/OS-II port requires uC/OS-II移植所需要的C函數(shù)
**
**--------------------------------------------------------------------------------------------------------
** Created By: Steven Zhou 周紹剛
** Created date: 2007.12.12
** Version: 1.0
** Descriptions: The original version 初始版本
**
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Description:
**
*********************************************************************************************************/
#define OS_CPU_GLOBALS
#include <includes.h>
/********************************************************************************************************
Local variables 局部變量
********************************************************************************************************/
#if OS_TMR_EN > 0
static INT16U OSTmrCtr;
#endif
/*********************************************************************************************************
** Function name: OSInitHookBegin
** Descriptions: The hook function called by OSInit() at the beginning of OSInit()
** OSInit()函數(shù)剛開始執(zhí)行時調(diào)用的鉤子函數(shù)
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.12.12
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
void OSInitHookBegin (void)
{
#if OS_TMR_EN > 0
OSTmrCtr = 0;
#endif
}
#endif
/*********************************************************************************************************
** Function name: OSInitHookEnd
** Descriptions: The hook function called by OSInit() at the end of OSInit()
** OSInit()函數(shù)結(jié)束前調(diào)用的鉤子函數(shù)
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.12.12
**--------------------------------------------------------------------------------------------------------
** Modified by: Ni Likao 倪力考
** Modified date: 2007.10.29
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if OS_CPU_HOOKS_EN > 0 && OS_VERSION > 203
void OSInitHookEnd (void)
{
}
#endif
/*********************************************************************************************************
** Function name: OSTaskCreateHook
** Descriptions: The hook function called when a task is created
** 初始化任務(wù)時調(diào)用的鉤子函數(shù)
** Input parameters: ptcb
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.12.12
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if OS_CPU_HOOKS_EN > 0
void OSTaskCreateHook (OS_TCB *ptcb)
{
(void)ptcb; /* Prevent compiler warning */
/* 防止編譯警告 */
}
#endif
/*********************************************************************************************************
** Function name: OSTaskDelHook
** Descriptions: The hook function called when a task is deleted
** 刪除任務(wù)時調(diào)用的鉤子函數(shù)
** Input parameters: ptcb
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.12.12
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if OS_CPU_HOOKS_EN > 0
void OSTaskDelHook (OS_TCB *ptcb)
{
(void)ptcb; /* Prevent compiler warning */
/* 防止編譯警告 */
}
#endif
/*********************************************************************************************************
** Function name: OSTaskIdleHook
** Descriptions: The hook function called by the idle task
** 空閑任務(wù)調(diào)用的鉤子函數(shù)
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.12.12
**--------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
**-------------------------------------------------------------------------------------------------------
*********************************************************************************************************/
#if OS_CPU_HOOKS_EN > 0 && OS_VERSION >= 251
void OSTaskIdleHook (void)
{
}
#endif
/*********************************************************************************************************
** Function name: OSTaskStatHook
** Descriptions: The hook function called every second by the statistics task
** 統(tǒng)計任務(wù)每秒鐘調(diào)用的鉤子函數(shù)
** Input parameters: None 無
** Output parameters: None 無
** Returned value: None 無
** Created by: Steven Zhou 周紹剛
** Created Date: 2007.12.12
**--------------------------------------------------------------------------------------------------------
** Modified by:
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -