From 82d441411b6a95ab2ca9bbed254866bda687953d Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 28 Apr 2000 20:40:58 +0000 Subject: [PATCH] changes for iocsh --- src/makeBaseApp/Makefile | 2 ++ src/makeBaseApp/top/exampleBoot/ioc/README | 3 +++ src/makeBaseApp/top/exampleBoot/ioc/stcmd.host | 7 +++++++ 3 files changed, 12 insertions(+) create mode 100644 src/makeBaseApp/top/exampleBoot/ioc/README create mode 100644 src/makeBaseApp/top/exampleBoot/ioc/stcmd.host diff --git a/src/makeBaseApp/Makefile b/src/makeBaseApp/Makefile index fe3f42ddd..b1af12576 100644 --- a/src/makeBaseApp/Makefile +++ b/src/makeBaseApp/Makefile @@ -46,6 +46,8 @@ TEMPLATES += top/exampleBoot/Makefile TEMPLATES += top/exampleBoot/nfsCommands TEMPLATES += top/exampleBoot/ioc/Makefile TEMPLATES += top/exampleBoot/ioc/st.cmd +TEMPLATES += top/exampleBoot/ioc/stcmd.host +TEMPLATES += top/exampleBoot/ioc/README TEMPLATES += top/simpleApp/Makefile TEMPLATES += top/simpleApp/Db/Makefile diff --git a/src/makeBaseApp/top/exampleBoot/ioc/README b/src/makeBaseApp/top/exampleBoot/ioc/README new file mode 100644 index 000000000..e33aca77a --- /dev/null +++ b/src/makeBaseApp/top/exampleBoot/ioc/README @@ -0,0 +1,3 @@ +On host execute the command + +../../bin//example stcmd.host diff --git a/src/makeBaseApp/top/exampleBoot/ioc/stcmd.host b/src/makeBaseApp/top/exampleBoot/ioc/stcmd.host new file mode 100644 index 000000000..e12ceb1cb --- /dev/null +++ b/src/makeBaseApp/top/exampleBoot/ioc/stcmd.host @@ -0,0 +1,7 @@ +dbLoadDatabase("../../dbd/exampleApp.dbd",0,0); +registerRecordDeviceDriver(pdbbase); +dbLoadRecords("../../db/dbExample1.db","user=_USER_") +dbLoadRecords("../../db/dbExample2.db","user=_USER_,no=1,scan=1 second") +dbLoadRecords("../../db/dbExample2.db","user=_USER_,no=2,scan=2 second"); +dbLoadRecords("../../db/dbExample2.db","user=_USER_,no=3,scan=5 second"); +iocInit();