st.cmd 1.17 KB
Newer Older
Peter Zumbruch's avatar
Peter Zumbruch committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!../../bin/linux-arm/streamHadcon

< envPaths
#cd ${TOP}

epicsEnvSet("STREAM_PROTOCOL_PATH", "../../protocols")
epicsEnvSet("PATH","${PATH}:../../bin/linux-arm")

## Register all support components
dbLoadDatabase "../../dbd/streamHadcon.dbd"
streamHadcon_registerRecordDeviceDriver (pdbbase)

drvAsynSerialPortConfigure("hadcon2","/dev/ttyUSB0",0,0,0)
   asynSetOption("hadcon2",0,"baud","115200")
   asynSetOption("hadcon2",0,"bits","8")
   asynSetOption("hadcon2",0,"parity","none")
   asynSetOption("hadcon2",0,"stop","1")
   asynSetOption("hadcon2",0,"clocal","Y")
   asynSetOption("hadcon2",0,"crtscts","N")


## Load record instances
##
Peter Zumbruch's avatar
Peter Zumbruch committed
24
dbLoadRecords ("../../db/hadcon_global.db",       "HADCON=${HOSTNAME}:1, PREFIX=, SUFFIX=, device=hadcon2")
Peter Zumbruch's avatar
Peter Zumbruch committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#dbLoadRecords ("../../db/hadcon_debug_global.db", "HADCON=${HOSTNAME}:1, PREFIX=, SUFFIX=, device=hadcon2")
#dbLoadRecords ("../../db/hadcon_stats.db", "IOC=${HOSTNAME}")

dbLoadRecords ("../../db/hadcon_atmel_register_IO_ports.db", "device=hadcon2, HADCON=${HOSTNAME}")

#cd $(TOP)

## Set this to see messages from streamDev, already while init
## Run this to trace the stages of iocInit
#traceIocInit

#cd ${TOP}/iocBoot/${IOC}
iocInit