diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..419dc78 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "turboPmac"] + path = turboPmac + url = https://gitea.psi.ch/lin-epics-modules/turboPmac diff --git a/Makefile b/Makefile index d0d73d5..3cc63bf 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,6 @@ REQUIRED+=motorBase # Specify the version of motorBase we want to build against motorBase_VERSION=7.2.2 -# Specify the version of turboPmac we want to build against -turboPmac_VERSION=0.13.0 - # These headers allow to depend on this library for derived drivers. HEADERS += src/seleneGuideController.h HEADERS += src/seleneLiftAxis.h @@ -22,15 +19,27 @@ HEADERS += src/seleneAngleAxis.h HEADERS += src/seleneOffsetAxis.h # Source files to build +SOURCES += turboPmac/sinqMotor/src/msgPrintControl.cpp +SOURCES += turboPmac/sinqMotor/src/sinqAxis.cpp +SOURCES += turboPmac/sinqMotor/src/sinqController.cpp +SOURCES += turboPmac/src/pmacAsynIPPort.c +SOURCES += turboPmac/src/turboPmacAxis.cpp +SOURCES += turboPmac/src/turboPmacController.cpp +SOURCES += turboPmac/src/pmacAsynIPPort.c SOURCES += src/seleneGuideController.cpp SOURCES += src/seleneLiftAxis.cpp SOURCES += src/seleneAngleAxis.cpp SOURCES += src/seleneOffsetAxis.cpp # Store the record files +TEMPLATES += turboPmac/sinqMotor/db/asynRecord.db +TEMPLATES += turboPmac/sinqMotor/db/sinqMotor.db +TEMPLATES += turboPmac/db/turboPmac.db TEMPLATES += db/seleneGuide.db # This file registers the motor-specific functions in the IOC shell. +DBDS += turboPmac/sinqMotor/src/sinqMotor.dbd +DBDS += turboPmac/src/turboPmac.dbd DBDS += src/seleneGuide.dbd USR_CFLAGS += -Wall -Wextra -Weffc++ -Wunused-result -Wextra -Werror # -Wpedantic // Does not work because EPICS macros trigger warnings diff --git a/README.md b/README.md index bd26101..7b4eeed 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,13 @@ seleneVirtualAxes("$(NAME)", 1, 2, 3, 4, 5, 6, 9, 10); # Parametrize the EPICS record database with the substitution file named after the motor controller. # In order to provide the PVs for absolute position and normalization, the # corresponding `seleneGuide.db` file is loaded here as well. -epicsEnvSet("SINQDBPATH","$(sinqMotor_DB)/sinqMotor.db") +epicsEnvSet("SINQDBPATH","$(seleneGuide_DB)/sinqMotor.db") dbLoadTemplate("$(TOP)/motors/$(NAME).substitutions", "INSTR=$(INSTR)$(NAME):,CONTROLLER=$(NAME)") -epicsEnvSet("SINQDBPATH","$(turboPmac_DB)/turboPmac.db") +epicsEnvSet("SINQDBPATH","$(seleneGuide_DB)/turboPmac.db") dbLoadTemplate("$(TOP)/motors/$(NAME).substitutions", "INSTR=$(INSTR)$(NAME):,CONTROLLER=$(NAME)") epicsEnvSet("SINQDBPATH","$(seleneGuide_DB)/seleneGuide.db") dbLoadTemplate("$(TOP)/motors/$(NAME).substitutions", "INSTR=$(INSTR)$(NAME):,CONTROLLER=$(NAME)") -dbLoadRecords("$(sinqMotor_DB)/asynRecord.db","P=$(INSTR)$(NAME),PORT=$(ASYN_PORT)") +dbLoadRecords("$(seleneGuide_DB)/asynRecord.db","P=$(INSTR)$(NAME),PORT=$(ASYN_PORT)") ``` ### Substitution file diff --git a/turboPmac b/turboPmac new file mode 160000 index 0000000..5298b5e --- /dev/null +++ b/turboPmac @@ -0,0 +1 @@ +Subproject commit 5298b5ef6986dcfee22d8272fb8c059ef78e61f6