Skip to content

Commit 9340444

Browse files
committed
added second GEMORC
1 parent d798199 commit 9340444

File tree

6 files changed

+83
-0
lines changed

6 files changed

+83
-0
lines changed

GEMORC/GEMORC-IOC-02App/Db/Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
TOP=../..
2+
include $(TOP)/configure/CONFIG
3+
#----------------------------------------
4+
# ADD MACRO DEFINITIONS AFTER THIS LINE
5+
6+
#----------------------------------------------------
7+
# Create and install (or just install) into <top>/db
8+
# databases, templates, substitutions like this
9+
#DB += xxx.db
10+
11+
#----------------------------------------------------
12+
# If <anyname>.db template is not named <anyname>*.template add
13+
# <anyname>_template = <templatename>
14+
15+
include $(TOP)/configure/RULES
16+
#----------------------------------------
17+
# ADD RULES AFTER THIS LINE
18+

GEMORC/GEMORC-IOC-02App/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
TOP = ..
2+
include $(TOP)/configure/CONFIG
3+
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *src*))
4+
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Src*))
5+
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *db*))
6+
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *Db*))
7+
DIRS := $(DIRS) $(filter-out $(DIRS), $(wildcard *protocol*))
8+
include $(TOP)/configure/RULES_DIRS
9+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* GEMORC-IOC-02Main.cpp */
2+
/* Author: Marty Kraimer Date: 17MAR2000 */
3+
4+
#include <stddef.h>
5+
#include <stdlib.h>
6+
#include <stddef.h>
7+
#include <string.h>
8+
#include <stdio.h>
9+
10+
#include "epicsExit.h"
11+
#include "epicsThread.h"
12+
#include "iocsh.h"
13+
14+
int main(int argc,char *argv[])
15+
{
16+
if(argc>=2) {
17+
iocsh(argv[1]);
18+
epicsThreadSleep(.2);
19+
}
20+
iocsh(NULL);
21+
epicsExit(0);
22+
return(0);
23+
}

GEMORC/GEMORC-IOC-02App/src/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
TOP=../..
2+
# This file should do very little - it's purpose is to set the APPNAME and then load build.mak
3+
4+
# this definition is used in build.mak
5+
APPNAME=GEMORC-IOC-02
6+
7+
# If we are ###-IOC-01 leave this as is, if we are ###-IOC-02 or higher change to ###-IOC-01 and delete build.mak from this directory
8+
# there should only be a single build.mak for all IOCs of a given family and it is located in the ###-IOC-01 directory
9+
include $(TOP)/GEMORC-IOC-01App/src/build.mak
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
TOP = ../..
2+
include $(TOP)/configure/CONFIG
3+
#ARCH = windows-x64-debug
4+
ARCH = $(EPICS_HOST_ARCH)
5+
TARGETS = envPaths dllPath.bat relPaths.sh runIOC.bat runIOC.sh
6+
include $(TOP)/configure/RULES.ioc
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!../../bin/windows-x64-debug/GEMORC-IOC-02
2+
3+
## You may have to change GEMORC-IOC-02 to something else
4+
## everywhere it appears in this file
5+
6+
# Increase this if you get <<TRUNCATED>> or discarded messages warnings in your errlog output
7+
errlogInit2(65536, 256)
8+
9+
< envPaths
10+
11+
cd "${TOP}"
12+
13+
## Register all support components
14+
dbLoadDatabase "dbd/GEMORC-IOC-02.dbd"
15+
GEMORC_IOC_02_registerRecordDeviceDriver pdbbase
16+
17+
## calling common command file in ioc 01 boot dir
18+
< ${TOP}/iocBoot/ioc_01_APP_NAME_/st-common.cmd

0 commit comments

Comments
 (0)