Mirrors CERN QMUL |
ATLAS Level 1 Calorimeter Trigger Software | ||||||||||||||||
L1Calo Software | VME Drivers in HDMC | ||||||||||||||||
![]()
|
IntroductionSupport for both Hannappel and VMELinux drivers is now included in HDMC. It is possible to have both available from the HDMC GUI. However, some programs which automatically create a real VMEBus object (such as the busserver and the vme line mode utility) require a default choice to VME driver to be made at compile time.Both drivers are implemented in VMEBus subclasses. There are two options available for Hannappel and one for VMELinux:
MakefilesThe standard HDMC Makefile now expects to find a custom Makefile.local in the same directory.In that file you can define two symbols:
The VMEBus subclasses for the two drivers both need to access header files from their installed distributions. I chose to create a link drivers in the same directory which contains the top level hdmc directory. This link points to a directory containing the installation directories for the two drivers (ie /home/drivers as described on the driver installation page). Makefile.local needs to contain suitable code to add these directories to the include file search path. To include all the above options, but using the VMELinux driver by default, Makefile.local should look like this: LFLAGS_LOCAL = -L$(QWTDIR) VME = Linux VMEBUSES = Dummy Eltec Hanna Linux ifneq ($(findstring Eltec,"$(VMEBUSES) $(VME)"),) VPATH += ../../drivers/universe_vme-0.10 endif ifneq ($(findstring Hanna,"$(VMEBUSES) $(VME)"),) VPATH += ../../drivers/universe_vme-0.10 endif ifneq ($(findstring Linux,"$(VMEBUSES) $(VME)"),) VPATH += ../../drivers/vmelinux-0.95/vmeutils LFLAGS_LOCAL += ../../drivers/vmelinux-0.95/vmeutils/unilib.o endif Usage and Problems
Last updated on 20-Feb-2002 by Murrough Landon |