#!../../bin/linux-x86/DP41_TEST

## You may have to change DP41_TEST to something else
## everywhere it appears in this file

< envPaths

cd ${TOP}

## Register all support components
dbLoadDatabase("dbd/DP41_TEST.dbd",0,0)
DP41_TEST_registerRecordDeviceDriver(pdbbase)

## Load record instances
#dbLoadRecords("db/DP41_TEST.db","user=jadHost")

cd $(DP41)

dbLoadRecords("db/devDP41.db","P=DP41:,R=,L=0,A=0")
drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
asynSetOption("L0", -1, "baud","9600")
asynSetOption("L0", -1, "bits","8")
asynSetOption("L0", -1, "parity","none")
asynSetOption("L0", -1, "stop","1")
asynSetOption("L0", -1, "clocal","Y")
asynSetOption("L0", -1, "crtscts","N")

/* uncomment these two lines if you want trace info printed for serial port */
#asynSetTraceMask("L0",-1,0x9)
#asynSetTraceIOMask("L0",-1,0x2)

cd ${TOP}/iocBoot/${IOC}
iocInit()

## Start any sequence programs
#seq sncxxx,"user=jadHost"