-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
68 lines (42 loc) · 1.75 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# llrfHlsAsyn epics driver
#
1. configure/CONFIG_SITE
add LLRFHLS API as the folowings
remarks) the version will varies depends on release
# LLRFHLS API
LLRFHLS_PACKAGE_NAME=rf/llrfHls
LLRFHLS_VERSION=llrfHls-git
LLRFHLS_TOP=$(PACKAGE_SITE_TOP)/$(LLRFHLS_PACKAGE_NAME)/$(LLRFHLS_VERSION)
LLRFHLS_LIB=$(LLRFHLS_TOP)/$(PKG_ARCH)/lib
LLRFHLS_INCLUDE=$(LLRFHLS_TOP)/$(PKG_ARCH)/include
2. configure/RELEASE.local
add LLRFHLSASYN module as the followings
remarks) the version will varies depends on release
LLRFHLSASYN_MODULE_VERSION=llrfHlsAsyn-git
LLRFHLSASYN=$(EPICS_MODULES)/llrfHlsAsyn/$(LLRFHLSASYN_MODULE_VERSION)
3. <application>/src/Makefile
add dbd and library for llrfHlsAsyn
<application_name>_DBD += llrfHlsAsynDriver.dbd
<application_name>_LIB += llrfHlsAsyn
add llrfHls API
llrfHls_DIR = $(LLRFHLS_LIB)
USR_LIB_Linux += llrfHls
4. <application>/Db/Makefile
add database template for llrfHlsAsy
DB_INSTALLS += $(LLRFHLSASYN)/db/llrfHlsASyn.db
5. iocBoot/<ioc_name>/st.cmd
# driver configuration
#################################################################
#
# llrfHlsAsynDriverConfigure('port', 'register path', 'named_root')
#
# port : port name for asynPort driver, should be matched with dbLoadRecords
# register path : register path in hierarchy yaml, ex) mmio/AppTop/AppCore/Sysgen/LlrfFeedbackWrapper
# named_root : optional for multi-root system, ioc engineer can skip it for a single root system
llrfHlsAsynDriverConfigure("llrfHls0", "mmio/AppTop/AppCore/Sysgen/LlrfFeedbackWrapper")
# database template
#################################################################
#
# dbLoadRecord("db/llrfHlsAsyn.db", "DEV=${IOC_NAME}:$(INST),PORT=$(LLRFHLS_PORT)")
dbLoadRecords("db/llrfHlsAsyn.db", "DEV=${IOC_NAME}:0,PORT=llrfHls0")