Changes between Version 7 and Version 8 of epics/bbb/debian/thermometer/attiny


Ignore:
Timestamp:
12/13/17 16:32:47 (7 years ago)
Author:
Tetsuya Michikawa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • epics/bbb/debian/thermometer/attiny

    v7 v8  
    299299=== src/Makefile ===
    300300
     301シリアルを使うので、DBDには{{{drvAsynSerialPort.dbd}}}を設定。
     302
    301303{{{
    302304debian@beaglebone:~/epics/usbTemp/usbTempApp/src$ more Makefile
     
    348350
    349351
     352=== st.cmd ===
     353
     354
     355{{{
     356debian@beaglebone:~/epics/usbTemp/iocBoot/iocusbTemp$ more st.cmd
     357#!../../bin/linux-arm/usbTemp
     358
     359## You may have to change usbTemp to something else
     360## everywhere it appears in this file
     361
     362< envPaths
     363
     364epicsEnvSet("DEV1",  "PS1")
     365epicsEnvSet("USER",  "TEST:USBTEMP")
     366epicsEnvSet("USER1", "${USER}:DEV1")
     367epicsEnvSet("SCAN",  "5 second")
     368
     369cd "${TOP}"
     370
     371epicsEnvSet("STREAM_PROTOCOL_PATH", ".:${TOP}/usbTempApp/Db" )
     372
     373## Register all support components
     374dbLoadDatabase "dbd/usbTemp.dbd"
     375usbTemp_registerRecordDeviceDriver pdbbase
     376
     377## Load record instances
     378dbLoadRecords("db/usbtemp.db","user=$(USER1),dev=$(DEV1),scan=$(SCAN)")
     379dbLoadRecords("db/timestamp.db","user=$(USER)")
     380
     381drvAsynSerialPortConfigure ("PS1","/dev/ttyUSBSens0")
     382asynSetOption("$(DEV1)", -1, "baud",    "9600")
     383asynSetOption("$(DEV1)", -1, "parity",  "none")
     384asynSetOption("$(DEV1)", -1, "bits",    "8")
     385asynSetOption("$(DEV1)", -1, "stop",    "1")
     386asynSetOption("$(DEV1)", -1, "clocal",  "Y")
     387asynSetOption("$(DEV1)", -1, "crtscts", "N")
     388
     389
     390cd "${TOP}/iocBoot/${IOC}"
     391iocInit
     392}}}
     393
     394
    350395
    351396