Experimental Physics and Industrial Control System
All,
I have recently made a change to the EPICS build system which allows new sub
system
error codes to be defined without making source code changes in EPICS base. The
immediate benefit will be that application developers will be able to define
M_XXXX
subsystem codes for local drivers and device support without needing to modify
errMdef.h in EPICS base each time that a new version of base is installed.
The following steps will be required to install a new subsystem:
1) define error codes in your subsystems C header file as before
(no change to past procedures here).
2) include lines as follow in the top of the header file in (1)
#ifndef M_xxxx
#define M_xxxx NNNN
#endif
Where M_xxxx is the subsystem's symbol name used when defining error
codes for your subsystem, and NNNN is a subsystem code which is
chosen to not conflict with any of the subsystems already defined
in "$(EPICS)/base/src/libCom/O.<arch>/errSymTable.c".
(this step replaces past modification of errMdef.h)
3) Add lines as follows to "CONFIG_SITE" or "$(HOME)/EPICS_CONFIG".
(no change to past procedures here).
ERR_S_FILES += <path>/<header file in (1)>.h
4) Rebuild EPICS (libCom and iocCore)
(no change to past procedures here).
This change will show up in a future version of 3.13.
Details on how this was done:
I modified "makeStatTbl.pl", the perl utility that creates
"errSymTbl.c", so that it finds any M_xxxx definitions
in the applications header file. If any exist they are
replicated in "errSymTbl.c".
Jeff
______________________________________________________
Jeffrey O. Hill Internet [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos NM 87545 USA FAX 505 665 5107
- Navigate by Date:
- Prev:
Error in State Notation Language or Sequencer Users Guide Oleg A. Makarov
- Next:
Capfast symbols for transform or ANL motor record? William Lupton
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Error in State Notation Language or Sequencer Users Guide Oleg A. Makarov
- Next:
Capfast symbols for transform or ANL motor record? William Lupton
- Index:
1994
1995
1996
<1997>
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024