Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
inc.c
Package: DTU3.0.rar [view]
Upload User: tzzxrml
Upload Date: 2013-08-22
Package Size: 9106k
Code Size: 13k
Category:
SCM
Development Platform:
C/C++
- /*************************************************************************/
- /* */
- /* Copyright (c) 1993-1998 Accelerated Technology, Inc. */
- /* */
- /* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
- /* subject matter of this material. All manufacturing, reproduction, */
- /* use, and sales rights pertaining to this subject matter are governed */
- /* by the license agreement. The recipient of this software implicitly */
- /* accepts the terms of the license. */
- /* */
- /*************************************************************************/
- /*************************************************************************/
- /* */
- /* FILE NAME VERSION */
- /* */
- /* inc.c PLUS 1.3 */
- /* */
- /* COMPONENT */
- /* */
- /* IN - Initialization */
- /* */
- /* DESCRIPTION */
- /* */
- /* This file contains initialization and setup routines associated */
- /* with the initialization component. */
- /* */
- /* AUTHOR */
- /* */
- /* William E. Lamie, Accelerated Technology, Inc. */
- /* */
- /* DATA STRUCTURES */
- /* */
- /* None */
- /* */
- /* FUNCTIONS */
- /* */
- /* INC_Initialize Common system initialization */
- /* */
- /* DEPENDENCIES */
- /* */
- /* in_extr.h Initialization functions */
- /* er_extr.h Error handling function */
- /* hi_extr.h History functions */
- /* tc_extr.h Thread Control functions */
- /* mb_extr.h Mailbox functions */
- /* qu_extr.h Queue functions */
- /* pi_extr.h Pipe functions */
- /* sm_extr.h Semaphore functions */
- /* ev_extr.h Event group functions */
- /* pm_extr.h Partition memory functions */
- /* dm_extr.h Dynamic memory functions */
- /* tm_extr.h Timer functions */
- /* io_extr.h I/O Driver functions */
- /* */
- /* HISTORY */
- /* */
- /* NAME DATE REMARKS */
- /* */
- /* W. Lamie 03-01-1993 Created initial version 1.0 */
- /* D. Lamie 04-19-1993 Verified version 1.0 */
- /* W. Lamie 03-01-1994 Replaced void with VOID, */
- /* resulting in version 1.1 */
- /* R. Pfaff - */
- /* D. Lamie 03-18-1994 Verified version 1.1 */
- /* M.Q. Qian 04-17-1996 updated to version 1.2 */
- /* M. Trippi 03-20-1998 Moved the INC_Initialize_State */
- /* define values into their own */
- /* in_defs.h include file as part */
- /* of SPR455. This creates */
- /* version 1.2a. */
- /* M. Trippi 03-24-1998 Released version 1.3. */
- /* */
- /*************************************************************************/
- #define NU_SOURCE_FILE
- #include "in_defs.h" /* Initialization defines */
- #include "in_extr.h" /* Initialization functions */
- #include "hi_extr.h" /* History functions */
- #include "er_extr.h" /* Error handling function */
- #include "tc_extr.h" /* Thread Control functions */
- #include "mb_extr.h" /* Mailbox functions */
- #include "qu_extr.h" /* Queue functions */
- #include "pi_extr.h" /* Pipe functions */
- #include "sm_extr.h" /* Semaphore functions */
- #include "ev_extr.h" /* Event group functions */
- #include "pm_extr.h" /* Partition memory functions*/
- #include "dm_extr.h" /* Dynamic memory functions */
- #include "tm_extr.h" /* Timer functions */
- #include "io_extr.h" /* I/O Driver functions */
- /* Define global variable that contains the state of initialization. This
- flag is for information use only. */
- INT INC_Initialize_State;
- /* Define external functions that access the release and license
- information. */
- CHAR *RLC_Release_Information(VOID);
- CHAR *LIC_License_Information(VOID);
- /*************************************************************************/
- /* */
- /* FUNCTION */
- /* */
- /* INC_Initialize */
- /* */
- /* DESCRIPTION */
- /* */
- /* This function is the main initialization function of the system. */
- /* All components are initialized by this function. After system */
- /* initialization is complete, the Application_Initialize routine */
- /* is called. After all initialization is complete, this function */
- /* calls TCT_Schedule to start scheduling tasks. */
- /* */
- /* AUTHOR */
- /* */
- /* William E. Lamie, Accelerated Technology, Inc. */
- /* */
- /* CALLED BY */
- /* */
- /* INT_Initialize Target dependent initialize */
- /* */
- /* CALLS */
- /* */
- /* Application_Initialize Application initialize */
- /* RLC_Release_Information Release information */
- /* LIC_License_Information License information */
- /* ERI_Initialize Error handling initialize */
- /* HII_Initialize History initialization */
- /* TCI_Initialize Thread control initialize */
- /* MBI_Initialize Mailbox initialize */
- /* QUI_Initialize Queue initialize */
- /* PII_Initialize Pipe initialize */
- /* SMI_Initialize Semaphore initialize */
- /* EVI_Initialize Event flag initialize */
- /* PMI_Initialize Partition memory initialize */
- /* DMI_Initialize Dynamic memory initialize */
- /* TMI_Initialize Timer initialize */
- /* IOI_Initialize I/O Driver initialize */
- /* TCT_Schedule Thread scheduling loop */
- /* */
- /* INPUTS */
- /* */
- /* first_available_memory Pointer to available memory */
- /* */
- /* OUTPUTS */
- /* */
- /* None */
- /* */
- /* HISTORY */
- /* */
- /* NAME DATE REMARKS */
- /* */
- /* W. Lamie 03-01-1993 Created initial version 1.0 */
- /* D. Lamie 04-19-1993 Verified version 1.0 */
- /* */
- /*************************************************************************/
- VOID INC_Initialize(VOID *first_available_memory)
- {
- /* Indicate that initialization is starting. */
- INC_Initialize_State = INC_START_INITIALIZE;
- /* Call release information function. */
- RLC_Release_Information();
- /* Call license information function. */
- LIC_License_Information();
- /* Initialize the Error handling (ER) component. */
- ERI_Initialize();
- /* Initialize the History (HI) component. */
- HII_Initialize();
- /* Initialize the Thread Control (TC) component. */
- TCI_Initialize();
- /* Initialize the Mailbox (MB) component. */
- MBI_Initialize();
- /* Initialize the Queue (QU) component. */
- QUI_Initialize();
- /* Initialize the Pipe (PI) component. */
- PII_Initialize();
- /* Initialize the Semaphore (SM) component. */
- SMI_Initialize();
- /* Initialize the Event Group (EV) component. */
- EVI_Initialize();
- /* Initialize the Partition memory (PM) component. */
- PMI_Initialize();
- /* Initialize the Dynamic memory (DM) component. */
- DMI_Initialize();
- /* Initialize the Timer (TM) component. */
- TMI_Initialize();
- /* Initialize the I/O Driver (IO) component. */
- IOI_Initialize();
- /* Invoke the application-supplied initialization function. */
- Application_Initialize(first_available_memory);
- /* Indicate that initialization is finished. */
- INC_Initialize_State = INC_END_INITIALIZE;
- /* Start scheduling threads of execution. */
- TCT_Schedule();
- }