Generation working and Compilation of MARTe components

This commit is contained in:
ferrog
2025-05-13 16:03:11 +00:00
parent 3a5e378d99
commit 4faee3802a
1571 changed files with 611466 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
ARCH = linux-x86_64
TARGETS = envPaths
include $(TOP)/configure/RULES.ioc

View File

@@ -0,0 +1,45 @@
#======================================================================
# Loading DBs
#======================================================================
cd $(TOP)/db
dbLoadRecords("PCF0-EC-GN-HWCF-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GAF-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GAF-CCPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GAF-FHPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GAF-GCPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GAF-MCPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GAFP-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GBF-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GBF-CCPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GBF-FHPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GBF-GCPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GBF-MCPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GBFP-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GPF-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-GPS-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-PA1F-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-PA2F-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-PB1F-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-PB2F-iocEC-GN-PSH0PCF.db")
dbLoadRecords("PCF0-EC-GN-P01-PMF-iocEC-GN-PSH0PCF.db")
#======================================================================
# Loading Substitution Files
#======================================================================
cd $(TOP)/iocBoot/$(IOC)
#======================================================================
# PLC Communication Monitoring PVs DB Loading
#======================================================================
cd $(EPICS_ROOT)/db
#======================================================================
# IOC Monitor
#======================================================================
cd $(EPICS_ROOT)/db
#dbLoadRecords("iocmon.db","CBS=EC-GN-SYSM, CTRLTYPE=F, IDX=0, IOCTYPE=CORE, PP=01, PPPP=52RF, NNNN=4210, TTT=PCF")
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,3 @@
epicsEnvSet("IOC","iocEC-GN-PSH0PCF")
epicsEnvSet("TOP","/mnt/ITER/ferrog/MARTe2Project/GIT/ec-gn-ja-pcf/EC-GN-JA-PCF/target/main/epics")
epicsEnvSet("EPICS_BASE","/opt/codac-6.3/epics")

View File

@@ -0,0 +1,10 @@
############################################################################
## CODAC specific environment variables
############################################################################
epicsEnvSet("AUTOSAVE_SYSM_PV_PREFIX","EC-GN-SYSM:PCF0CORE-")
epicsEnvSet("IOCSH_PS1","${IOC}> ")
epicsEnvSet("STREAM_PROTOCOL_PATH","$(TOP)/db:$(EPICS_ROOT)/db")
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,9 @@
############################################################################
## User provided environment variables
############################################################################
#epicsEnvSet("EPICS_CA_SERVER_PORT", "5064")
#epicsEnvSet("EPICS_CA_ADDR_LIST", "")
#epicsEnvSet("EPICS_CA_AUTO_ADDR_LIST", "YES")
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,8 @@
############################################################################
## Autosave monitor post setup
############################################################################
cd "${TOP}/iocBoot/$(IOC)"
create_monitor_set("iocEC-GN-PSH0PCF.req",30,"P=$(AUTOSAVE_SYSM_PV_PREFIX)")
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,42 @@
############################################################################
## Save and restore
############################################################################
### save_restore setup
# status-PV prefix
save_restoreSet_status_prefix("$(AUTOSAVE_SYSM_PV_PREFIX)")
# Use status-PV
save_restoreSet_UseStatusPVs(1)
# Debug-output level
save_restoreSet_Debug(0)
# Ok to save/restore save sets with missing values (no CA connection to PV)?
save_restoreSet_IncompleteSetsOk(1)
# Save dated backup files?
save_restoreSet_DatedBackupFiles(1)
# Number of sequenced backup files to write
save_restoreSet_NumSeqFiles(3)
# Time interval between sequenced backups
save_restoreSet_SeqPeriodInSeconds(300)
# specify where save files should be
set_savefile_path("$(EPICS_AUTOSAVE_VAR)/$(UNIT_NAME)")
# specify what save files should be restored. Note these files must be
# in the directory specified in set_savefile_path(), or, if that function
# has not been called, from the directory current when iocInit is invoked
# Save files associated with the request files 'auto-output.req' and
# 'auto-input.req'. These files are the standard way to use autosave
set_pass1_restoreFile("iocEC-GN-PSH0PCF.sav")
# specify directories in which to to search for included request files
set_requestfile_path("./")
dbLoadRecords("$(EPICS_ROOT)/db/save_restoreStatus.db", "P=$(AUTOSAVE_SYSM_PV_PREFIX)")
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,2 @@
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,2 @@
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,6 @@
############################################################################
## SDD provided sequence programs to load
############################################################################
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,8 @@
############################################################################
## Sequence programs to load
############################################################################
## Start any sequence programs
#seq sncxxx,"user=codac-devHost"
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,67 @@
#!../../bin/linux-x86_64/EC-GN
#+======================================================================
# $HeadURL: https://svnpub.codac.iter.org/codac/iter/codac/dev/units/m-epics-iter-templates/branches/codac-core-6.1/templates/genericBoot/ioc/st.cmd $
# $Id: st.cmd 96475 2019-01-09 13:47:38Z sivecm $
#
# Project : CODAC Core System
#
# Description : ITER ioc template EPICS start up file
#
# Author(s) : This file was generated by CODAC development toolkit
#
# Copyright (c) : 2010-2019 ITER Organization,
# CS 90 046
# 13067 St. Paul-lez-Durance Cedex
# France
#
# This file is part of ITER CODAC software.
# For the terms and conditions of redistribution or use of this software
# refer to the file ITER-LICENSE.TXT located in the top level directory
# of the distribution package.
#
#-======================================================================
< envPaths
< envSystem
< envUser
cd "${TOP}"
############################################################################
## Register all support components
############################################################################
dbLoadDatabase "dbd/EC-GN.dbd"
EC_GN_registerRecordDeviceDriver pdbbase
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/sddPreDriverConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/userPreDriverConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/threadSchedulingConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/dbToLoad.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/iocEC-GN-PSH0PCF-preSaveRestore.cmd"
############################################################################
## IOC Logging
############################################################################
iocLogInit
iocLogPrefix "${STY} : "
############################################################################
## IOC initialization
############################################################################
cd "${TOP}/db"
iocInit
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/iocEC-GN-PSH0PCF-postSaveRestore.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/sddSeqToLoad.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/seqToLoad.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/sddPostDriverConf.cmd"
< "${TOP}/iocBoot/iocEC-GN-PSH0PCF/userPostDriverConf.cmd"
dbl > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbl"
dbla > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbla"
dbior > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbior"
dbhcr > "${CODAC_VAR}/iocdump/${UNIT_NAME}/${IOC_NAME}-${IOC_BOOT_TIME}.dbhcr"
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,6 @@
############################################################################
## Thread scheduling configuration for real-time tuning
############################################################################
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,6 @@
############################################################################
## User provided PLC or fast controller driver post configuration
############################################################################
#- End-of-file marker - do not delete or add lines below!

View File

@@ -0,0 +1,12 @@
############################################################################
## User provided PLC or fast controller driver pre configuration
############################################################################
# Enable parallel callback threads to improve 'I/O Intr' record scanning
# see https://bugzilla.iter.org/codac/show_bug.cgi?id=10413
callbackParallelThreads
callbackSetQueueSize(100000)
scanOnceSetQueueSize(100000)
#- End-of-file marker - do not delete or add lines below!