99 lines
2.5 KiB
C
99 lines
2.5 KiB
C
/* initHooks.c ioc initialization hooks */
|
||
/* share/src/db $Id$ */
|
||
/*
|
||
* Author: Marty Kraimer
|
||
* Date: 06-01-91
|
||
*
|
||
* Experimental Physics and Industrial Control System (EPICS)
|
||
*
|
||
* Copyright 1991, the Regents of the University of California,
|
||
* and the University of Chicago Board of Governors.
|
||
*
|
||
* This software was produced under U.S. Government contracts:
|
||
* (W-7405-ENG-36) at the Los Alamos National Laboratory,
|
||
* and (W-31-109-ENG-38) at Argonne National Laboratory.
|
||
*
|
||
* Initial development by:
|
||
* The Controls and Automation Group (AT-8)
|
||
* Ground Test Accelerator
|
||
* Accelerator Technology Division
|
||
* Los Alamos National Laboratory
|
||
*
|
||
* Co-developed with
|
||
* The Controls and Computing Group
|
||
* Accelerator Systems Division
|
||
* Advanced Photon Source
|
||
* Argonne National Laboratory
|
||
*
|
||
* Modification Log:
|
||
* -----------------
|
||
* .01 09-05-92 rcz initial version
|
||
* .02 09-10-92 rcz changed return from void to long
|
||
* .03 09-10-92 rcz changed completely
|
||
* .04 09-10-92 rcz bug - moved call to setMasterTimeToSelf later
|
||
*
|
||
*/
|
||
|
||
|
||
#include <vxWorks.h>
|
||
#include <initHooks.h>
|
||
|
||
extern void setMasterTimeToSelf();
|
||
|
||
/*
|
||
* INITHOOKS
|
||
*
|
||
* called by iocInit at various points during initialization
|
||
*
|
||
*/
|
||
|
||
|
||
/* If this function (initHooks) is loaded, iocInit calls this function
|
||
* at certain defined points during IOC initialization */
|
||
void initHooks(callNumber)
|
||
int callNumber;
|
||
{
|
||
switch (callNumber) {
|
||
case INITHOOKatBeginning :
|
||
break;
|
||
case INITHOOKafterSetEnvParams :
|
||
/* Note: EPICS_IOCMCLK_INET enabled in the resource.def file*/
|
||
/* will override this call to setMasterTimeToSelf */
|
||
setMasterTimeToSelf();
|
||
break;
|
||
case INITHOOKafterGetResources :
|
||
break;
|
||
case INITHOOKafterLogInit :
|
||
break;
|
||
case INITHOOKafterCallbackInit :
|
||
break;
|
||
case INITHOOKafterCaLinkInit1 :
|
||
break;
|
||
case INITHOOKafterInitDrvSup :
|
||
break;
|
||
case INITHOOKafterInitRecSup :
|
||
break;
|
||
case INITHOOKafterInitDevSup :
|
||
break;
|
||
case INITHOOKafterTS_init :
|
||
break;
|
||
case INITHOOKafterInitDatabase :
|
||
break;
|
||
case INITHOOKafterCaLinkInit2 :
|
||
break;
|
||
case INITHOOKafterFinishDevSup :
|
||
break;
|
||
case INITHOOKafterScanInit :
|
||
break;
|
||
case INITHOOKafterInterruptAccept :
|
||
break;
|
||
case INITHOOKafterInitialProcess :
|
||
break;
|
||
case INITHOOKatEnd :
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
return;
|
||
}
|