]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
ALARMS IOC added (blank so far)
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 22 Aug 2019 14:06:12 +0000 (16:06 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Thu, 22 Aug 2019 14:06:12 +0000 (16:06 +0200)
Default boilerplate code created by EPICS 7.0.3 using

    makeBaseApp.pl -t ioc ALARMS
    make
    makeBaseApp.pl -i -t ioc ALARMS
    make

16 files changed:
ALARMS/ALARMSApp/Db/Makefile [new file with mode: 0644]
ALARMS/ALARMSApp/Makefile [new file with mode: 0644]
ALARMS/ALARMSApp/src/ALARMSMain.cpp [new file with mode: 0644]
ALARMS/ALARMSApp/src/Makefile [new file with mode: 0644]
ALARMS/Makefile [new file with mode: 0644]
ALARMS/configure/CONFIG [new file with mode: 0644]
ALARMS/configure/CONFIG_SITE [new file with mode: 0644]
ALARMS/configure/Makefile [new file with mode: 0644]
ALARMS/configure/RELEASE [new file with mode: 0644]
ALARMS/configure/RULES [new file with mode: 0644]
ALARMS/configure/RULES.ioc [new file with mode: 0644]
ALARMS/configure/RULES_DIRS [new file with mode: 0644]
ALARMS/configure/RULES_TOP [new file with mode: 0644]
ALARMS/iocBoot/Makefile [new file with mode: 0644]
ALARMS/iocBoot/iocALARMS/Makefile [new file with mode: 0644]
ALARMS/iocBoot/iocALARMS/st.cmd [new file with mode: 0644]

diff --git a/ALARMS/ALARMSApp/Db/Makefile b/ALARMS/ALARMSApp/Db/Makefile
new file mode 100644 (file)
index 0000000..8eb9727
--- /dev/null
@@ -0,0 +1,18 @@
+TOP=../..
+include $(TOP)/configure/CONFIG
+#----------------------------------------
+#  ADD MACRO DEFINITIONS AFTER THIS LINE
+
+#----------------------------------------------------
+# Create and install (or just install) into <top>/db
+# databases, templates, substitutions like this
+#DB += xxx.db
+
+#----------------------------------------------------
+# If <anyname>.db template is not named <anyname>*.template add
+# <anyname>_template = <templatename>
+
+include $(TOP)/configure/RULES
+#----------------------------------------
+#  ADD RULES AFTER THIS LINE
+
diff --git a/ALARMS/ALARMSApp/Makefile b/ALARMS/ALARMSApp/Makefile
new file mode 100644 (file)
index 0000000..10e0126
--- /dev/null
@@ -0,0 +1,8 @@
+TOP = ..
+include $(TOP)/configure/CONFIG
+DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*))
+DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*))
+DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*))
+DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*))
+include $(TOP)/configure/RULES_DIRS
+
diff --git a/ALARMS/ALARMSApp/src/ALARMSMain.cpp b/ALARMS/ALARMSApp/src/ALARMSMain.cpp
new file mode 100644 (file)
index 0000000..f1c9216
--- /dev/null
@@ -0,0 +1,23 @@
+/* ALARMSMain.cpp */
+/* Author:  Marty Kraimer Date:    17MAR2000 */
+
+#include <stddef.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
+#include <stdio.h>
+
+#include "epicsExit.h"
+#include "epicsThread.h"
+#include "iocsh.h"
+
+int main(int argc,char *argv[])
+{
+    if(argc>=2) {    
+        iocsh(argv[1]);
+        epicsThreadSleep(.2);
+    }
+    iocsh(NULL);
+    epicsExit(0);
+    return(0);
+}
diff --git a/ALARMS/ALARMSApp/src/Makefile b/ALARMS/ALARMSApp/src/Makefile
new file mode 100644 (file)
index 0000000..cde0b32
--- /dev/null
@@ -0,0 +1,42 @@
+TOP=../..
+
+include $(TOP)/configure/CONFIG
+#----------------------------------------
+#  ADD MACRO DEFINITIONS AFTER THIS LINE
+#=============================
+
+#=============================
+# Build the IOC application
+
+PROD_IOC = ALARMS
+# ALARMS.dbd will be created and installed
+DBD += ALARMS.dbd
+
+# ALARMS.dbd will be made up from these files:
+ALARMS_DBD += base.dbd
+
+# Include dbd files from all support applications:
+#ALARMS_DBD += xxx.dbd
+
+# Add all the support libraries needed by this IOC
+#ALARMS_LIBS += xxx
+
+# ALARMS_registerRecordDeviceDriver.cpp derives from ALARMS.dbd
+ALARMS_SRCS += ALARMS_registerRecordDeviceDriver.cpp
+
+# Build the main IOC entry point on workstation OSs.
+ALARMS_SRCS_DEFAULT += ALARMSMain.cpp
+ALARMS_SRCS_vxWorks += -nil-
+
+# Add support from base/src/vxWorks if needed
+#ALARMS_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
+
+# Finally link to the EPICS Base libraries
+ALARMS_LIBS += $(EPICS_BASE_IOC_LIBS)
+
+#===========================
+
+include $(TOP)/configure/RULES
+#----------------------------------------
+#  ADD RULES AFTER THIS LINE
+
diff --git a/ALARMS/Makefile b/ALARMS/Makefile
new file mode 100644 (file)
index 0000000..19c9068
--- /dev/null
@@ -0,0 +1,31 @@
+# Makefile at top of application tree
+TOP = .
+include $(TOP)/configure/CONFIG
+
+# Directories to build, any order
+DIRS += configure
+DIRS += $(wildcard *Sup)
+DIRS += $(wildcard *App)
+DIRS += $(wildcard *Top)
+DIRS += $(wildcard iocBoot)
+
+# The build order is controlled by these dependency rules:
+
+# All dirs except configure depend on configure
+$(foreach dir, $(filter-out configure, $(DIRS)), \
+    $(eval $(dir)_DEPEND_DIRS += configure))
+
+# Any *App dirs depend on all *Sup dirs
+$(foreach dir, $(filter %App, $(DIRS)), \
+    $(eval $(dir)_DEPEND_DIRS += $(filter %Sup, $(DIRS))))
+
+# Any *Top dirs depend on all *Sup and *App dirs
+$(foreach dir, $(filter %Top, $(DIRS)), \
+    $(eval $(dir)_DEPEND_DIRS += $(filter %Sup %App, $(DIRS))))
+
+# iocBoot depends on all *App dirs
+iocBoot_DEPEND_DIRS += $(filter %App,$(DIRS))
+
+# Add any additional dependency rules here:
+
+include $(TOP)/configure/RULES_TOP
diff --git a/ALARMS/configure/CONFIG b/ALARMS/configure/CONFIG
new file mode 100644 (file)
index 0000000..c1a4703
--- /dev/null
@@ -0,0 +1,29 @@
+# CONFIG - Load build configuration data
+#
+# Do not make changes to this file!
+
+# Allow user to override where the build rules come from
+RULES = $(EPICS_BASE)
+
+# RELEASE files point to other application tops
+include $(TOP)/configure/RELEASE
+-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).Common
+ifdef T_A
+-include $(TOP)/configure/RELEASE.Common.$(T_A)
+-include $(TOP)/configure/RELEASE.$(EPICS_HOST_ARCH).$(T_A)
+endif
+
+CONFIG = $(RULES)/configure
+include $(CONFIG)/CONFIG
+
+# Override the Base definition:
+INSTALL_LOCATION = $(TOP)
+
+# CONFIG_SITE files contain other build configuration settings
+include $(TOP)/configure/CONFIG_SITE
+-include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).Common
+ifdef T_A
+ -include $(TOP)/configure/CONFIG_SITE.Common.$(T_A)
+ -include $(TOP)/configure/CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A)
+endif
+
diff --git a/ALARMS/configure/CONFIG_SITE b/ALARMS/configure/CONFIG_SITE
new file mode 100644 (file)
index 0000000..212485e
--- /dev/null
@@ -0,0 +1,43 @@
+# CONFIG_SITE
+
+# Make any application-specific changes to the EPICS build
+#   configuration variables in this file.
+#
+# Host/target specific settings can be specified in files named
+#   CONFIG_SITE.$(EPICS_HOST_ARCH).Common
+#   CONFIG_SITE.Common.$(T_A)
+#   CONFIG_SITE.$(EPICS_HOST_ARCH).$(T_A)
+
+# CHECK_RELEASE controls the consistency checking of the support
+#   applications pointed to by the RELEASE* files.
+# Normally CHECK_RELEASE should be set to YES.
+# Set CHECK_RELEASE to NO to disable checking completely.
+# Set CHECK_RELEASE to WARN to perform consistency checking but
+#   continue building even if conflicts are found.
+CHECK_RELEASE = YES
+
+# Set this when you only want to compile this application
+#   for a subset of the cross-compiled target architectures
+#   that Base is built for.
+#CROSS_COMPILER_TARGET_ARCHS = vxWorks-ppc32
+
+# To install files into a location other than $(TOP) define
+#   INSTALL_LOCATION here.
+#INSTALL_LOCATION=</absolute/path/to/install/top>
+
+# Set this when the IOC and build host use different paths
+#   to the install location. This may be needed to boot from
+#   a Microsoft FTP server say, or on some NFS configurations.
+#IOCS_APPL_TOP = </IOC's/absolute/path/to/install/top>
+
+# For application debugging purposes, override the HOST_OPT and/
+#   or CROSS_OPT settings from base/configure/CONFIG_SITE
+#HOST_OPT = NO
+#CROSS_OPT = NO
+
+# These allow developers to override the CONFIG_SITE variable
+# settings without having to modify the configure/CONFIG_SITE
+# file itself.
+-include $(TOP)/../CONFIG_SITE.local
+-include $(TOP)/configure/CONFIG_SITE.local
+
diff --git a/ALARMS/configure/Makefile b/ALARMS/configure/Makefile
new file mode 100644 (file)
index 0000000..9254309
--- /dev/null
@@ -0,0 +1,8 @@
+TOP=..
+
+include $(TOP)/configure/CONFIG
+
+TARGETS = $(CONFIG_TARGETS)
+CONFIGS += $(subst ../,,$(wildcard $(CONFIG_INSTALLS)))
+
+include $(TOP)/configure/RULES
diff --git a/ALARMS/configure/RELEASE b/ALARMS/configure/RELEASE
new file mode 100644 (file)
index 0000000..ac52b52
--- /dev/null
@@ -0,0 +1,42 @@
+# RELEASE - Location of external support modules
+#
+# IF YOU CHANGE ANY PATHS in this file or make API changes to
+# any modules it refers to, you should do a "make rebuild" in
+# this application's top level directory.
+#
+# The EPICS build process does not check dependencies against
+# any files from outside the application, so it is safest to
+# rebuild it completely if any modules it depends on change.
+#
+# Host- or target-specific settings can be given in files named
+#  RELEASE.$(EPICS_HOST_ARCH).Common
+#  RELEASE.Common.$(T_A)
+#  RELEASE.$(EPICS_HOST_ARCH).$(T_A)
+#
+# This file is parsed by both GNUmake and an EPICS Perl script,
+# so it may ONLY contain definititions of paths to other support
+# modules, variable definitions that are used in module paths,
+# and include statements that pull in other RELEASE files.
+# Variables may be used before their values have been set.
+# Build variables that are NOT used in paths should be set in
+# the CONFIG_SITE file.
+
+# Variables and paths to dependent modules:
+#MODULES = /path/to/modules
+#MYMODULE = $(MODULES)/my-module
+
+# If using the sequencer, point SNCSEQ at its top directory:
+#SNCSEQ = $(MODULES)/seq-ver
+
+# EPICS_BASE should appear last so earlier modules can override stuff:
+EPICS_BASE = /Users/pklaus/local_software/EPICS/base
+
+# Set RULES here if you want to use build rules from somewhere
+# other than EPICS_BASE:
+#RULES = $(MODULES)/build-rules
+
+# These lines allow developers to override these RELEASE settings
+# without having to modify this file directly.
+-include $(TOP)/../RELEASE.local
+-include $(TOP)/../RELEASE.$(EPICS_HOST_ARCH).local
+-include $(TOP)/configure/RELEASE.local
diff --git a/ALARMS/configure/RULES b/ALARMS/configure/RULES
new file mode 100644 (file)
index 0000000..6d56e14
--- /dev/null
@@ -0,0 +1,6 @@
+# RULES
+
+include $(CONFIG)/RULES
+
+# Library should be rebuilt because LIBOBJS may have changed.
+$(LIBNAME): ../Makefile
diff --git a/ALARMS/configure/RULES.ioc b/ALARMS/configure/RULES.ioc
new file mode 100644 (file)
index 0000000..901987c
--- /dev/null
@@ -0,0 +1,2 @@
+#RULES.ioc
+include $(CONFIG)/RULES.ioc
diff --git a/ALARMS/configure/RULES_DIRS b/ALARMS/configure/RULES_DIRS
new file mode 100644 (file)
index 0000000..3ba269d
--- /dev/null
@@ -0,0 +1,2 @@
+#RULES_DIRS
+include $(CONFIG)/RULES_DIRS
diff --git a/ALARMS/configure/RULES_TOP b/ALARMS/configure/RULES_TOP
new file mode 100644 (file)
index 0000000..d09d668
--- /dev/null
@@ -0,0 +1,3 @@
+#RULES_TOP
+include $(CONFIG)/RULES_TOP
+
diff --git a/ALARMS/iocBoot/Makefile b/ALARMS/iocBoot/Makefile
new file mode 100644 (file)
index 0000000..91e47d0
--- /dev/null
@@ -0,0 +1,6 @@
+TOP = ..
+include $(TOP)/configure/CONFIG
+DIRS += $(wildcard *ioc*)
+DIRS += $(wildcard as*)
+include $(CONFIG)/RULES_DIRS
+
diff --git a/ALARMS/iocBoot/iocALARMS/Makefile b/ALARMS/iocBoot/iocALARMS/Makefile
new file mode 100644 (file)
index 0000000..e1b9aa4
--- /dev/null
@@ -0,0 +1,5 @@
+TOP = ../..
+include $(TOP)/configure/CONFIG
+ARCH = $(EPICS_HOST_ARCH)
+TARGETS = envPaths
+include $(TOP)/configure/RULES.ioc
diff --git a/ALARMS/iocBoot/iocALARMS/st.cmd b/ALARMS/iocBoot/iocALARMS/st.cmd
new file mode 100644 (file)
index 0000000..3674750
--- /dev/null
@@ -0,0 +1,21 @@
+#!../../bin/darwin-x86/ALARMS
+
+#- You may have to change ALARMS to something else
+#- everywhere it appears in this file
+
+< envPaths
+
+cd "${TOP}"
+
+## Register all support components
+dbLoadDatabase "dbd/ALARMS.dbd"
+ALARMS_registerRecordDeviceDriver pdbbase
+
+## Load record instances
+#dbLoadRecords("db/xxx.db","user=pklaus")
+
+cd "${TOP}/iocBoot/${IOC}"
+iocInit
+
+## Start any sequence programs
+#seq sncxxx,"user=pklaus"