?? 80ca4112af5f001d1289bbda6de18a35
字號:
/*$Log:**** Rev /main/NC_V0_integration/4** Date: May 31 16:19:40 2007 abdeaity** Kommentar:Windows Entry separat behandlen in dab_h_win32**** Rev /main/NC_V0_integration/3** Date: May 24 14:20:46 2007 abdeaity** Kommentar:Initial the WERA language**** Rev /main/NC_V0_integration/2** Date: Mar 13 13:57:58 2007 rolfglei** Log-Syntax geaendert*//*** ---------------------------------------------------------------------** Copyright (c) Bosch Rexroth AG 1997 - 2007** All Rights Reserved** ---------------------------------------------------------------------**** File: dab_h_main.c** ** Responsible: AB** ** Description of functions: ** This is the main file of Dab ss. ** ** we disting between 2 platforms-specific ** - Win32 will use dab_h_win32.c ; ** - BRC Target whith Vxworks will use this file whith the Entry fun** ktion ** Dab_h_Startup(). **** In this file we will:** - Creat and Start The Graphik Task ** - Creat and Start the NCS event handler ** ****** NOTE : Please do not modify this file only after consulting BRC** ** ---------------------------------------------------------------------*//*======================================================================** >>>> C - Standard Headerfiles <<<<** ==================================================================== *//*======================================================================** >>>> General definitions for c-files <<<<** these lines are generated automatically , do not modify !** ==================================================================== *//*#include <ty3c_mac.h>*//*F*//*======================================================================** >>>> MTX - Headerfiles <<<<** ==================================================================== */#ifndef SYS0KONF_INCLUDED#include "sys0konf.h"#endif#ifndef PXR0TASK_INCLUDED#include "pxr0task.h"#endif#ifndef NCS1BAS_INCLUDED#include "ncs1bas.h"#endif #ifndef NCS1SAV_INCLUDED#include "ncs1sav.h"#endif #ifndef NCS1ACB_INCLUDED#include "ncs1acb.h"#endif#ifndef NCS1WEA_INCLUDED#include "ncs1wea.h"#endif#ifndef NCS1FSSE_INCLUDED#include "ncs1fsse.h"#endif #ifndef NCS1BAP_INCLUDED#include "ncs1bap.h"#endif/*======================================================================** >>>> Headerfiles of the subsystem <<<<** ==================================================================== */#ifndef DAB0_IF_INCLUDED#include "dab0_if.h"#endif#ifndef DAB_H_STARTGRA_INCLUDED#include "dab_h_startgra.h"#endif#ifndef DAB_H_EVHAN_INCLUDED#include "dab_h_evhan.h"#endif#include "dab_h_cpl.h" /*Jiang add it*//*F*//*======================================================================** >>>> Local definitions <<<<** ==================================================================== *//*F*//*************************************************************************** >AUTHOR : AB** FUNCTIONNAME : Dab_h_Startup** ** >DESCRIPTION: This is the startup funktion of the subsytem dab** ** This Funktion will be called automaticlly from an other** Subsystem (cap ss)** the call of this funktion will start the graphik task ** and the NCS event handler** ** >NOTES: this function will be called in an other Subsystem ** Please do not modify only after consulting BRC** ** >PARAMETER: phase : Strart phase. We start in phase 9** CpuId :Id of the cpu** StartupIn :** StartupOut :** ** >RETURN VALUE:** ** >INCLUDES:** *//*lint -e715*/EXPORT void Dab_h_Startup(int Phase, int CpuId, void *StartupIn, void *StartupOut){ PxrTask_t HMI_EvHan_TaskId, HMI_Graphic_TaskId; /*Task structur*/ /*defined in file Pxr0task.h*/ switch (Phase) { case SYS_PHASE1: break; case SYS_PHASE2: break; case SYS_PHASE3: break; case SYS_PHASE4: break; case SYS_PHASE8: break; case SYS_PHASE9: /*The graphic applikation willbe started in Phase 9 */ /* Creat HMI_Event-handler Task */ HMI_EvHan_TaskId = Pxr_MakeTask ("Dab_EvHan", /* Task name don?t modify*/ /*sizeof(HMI_EvHanPrivateData_t)*/200, (PXrTaskMainFunc_t)Dab_h_EventHandlerStartup, /* Entry Function defined in file evhan.c*/ NULL, NULL); /* we dont use any input data for this task: muss be NULL*/ if (HMI_EvHan_TaskId == NULL) /* Error by creating the Task */ /*set error in WEA Database */ Ncs_WeaSetCritSysErr (2059,"%s","Failed to create task 'TestTask'"); /*Creat the graphic Task */ HMI_Graphic_TaskId = Pxr_MakeTask ("Dab_BWM",/* Task name don?t modify*/ 200, (PXrTaskMainFunc_t)Dab_h_GraStartup,/* Entry Function */ /* defined in file dab_h_startgra.h*/ NULL, NULL); /* we dont use any input data for*/ if (HMI_Graphic_TaskId == NULL)/* Error by creating the Task */ /*set error in WEA Database */ Ncs_WeaSetCritSysErr (2059,"%s","Failed to create Graphic Task"); /*Initila the WERA language*/ /* ncs Command to change the Language example 044 for English */ if(Ncs_Bap_IniWeraLang_Cmd("044")) {/* Traitement of Error*/ } break; default: /* */ NO_STATEMENTS_FOR_OTHER_VALUES; break; }} /* OF Dab_h_Startup *//*lint +e715*//*F*//*======================================================================** detailed documentation of the history** of this file. the numbers of the paragraphs must correspond** to the numbers of the history-comments within the fileheader**----------------------------------------------------------------------*//* ausgecheckte Revision: /main/NC_V0_integration/1** Autor: rolfglei Datum: Mar 13 2007** eingecheckte Revision: /main/NC_V0_integration/2** Date: Mar 13 13:57:58 2007** CQ-Pr: ** Pflichtenheft-Nr/Name: ** Kommentar: Log-Eintrag ge?ndert.** ---------------------------------------------------------------------*//* ausgecheckte Revision: /main/NC_V0_integration/2** Autor: abdeaity Datum: May 24 2007** eingecheckte Revision: /main/NC_V0_integration/3** Date: May 24 14:20:46 2007** CQ-Pr: ** Pflichtenheft-Nr/Name: ** Kommentar: Initial the WERA Language Ncs_Bap_IniWeraLang_Cmd** ---------------------------------------------------------------------*//* ausgecheckte Revision: /main/NC_V0_integration/3** Autor: abdeaity Datum: May 31 2007** eingecheckte Revision: /main/NC_V0_integration/4** Date: May 31 16:19:40 2007** CQ-Pr: ** Pflichtenheft-Nr/Name: ** Kommentar: Windows Entry Von Vxworks Entry trennen** - F?r Windows gibt es dab_h_win32.c** - F?r Vxworks dab_h_main.c ** ---------------------------------------------------------------------*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -