can rename the default frontend
This commit is contained in:
1 parent
fa2ef5974d
commit
f590bea7f0
2 files changed
+20
-16
No files matched your search
+8
-4
@@ -69,26 +69,30 @@ target_link_libraries(
|
||||
|
||||
if(${BUILD_FRONTEND})
|
||||
|
||||
set(CFD950_NAME "CFD" CACHE STRING "Overridable frontend name")
|
||||
|
||||
add_executable(
|
||||
cfd950_fe
|
||||
CFD_scfe
|
||||
frontend/cfd950_scfe.cxx
|
||||
)
|
||||
|
||||
add_compile_definitions(CFD_scfe PRIVATE FRONTEND_NAME="${CFD950_NAME}")
|
||||
|
||||
set_property(
|
||||
TARGET
|
||||
cfd950_fe
|
||||
CFD_scfe
|
||||
PROPERTY
|
||||
CXX_STANDARD 11
|
||||
)
|
||||
|
||||
target_include_directories(
|
||||
cfd950_fe
|
||||
CFD_scfe
|
||||
PRIVATE
|
||||
$ENV{MIDASSYS}/drivers
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
cfd950_fe
|
||||
CFD_scfe
|
||||
PRIVATE
|
||||
cfd950
|
||||
midas::mfe
|
||||
|
||||
+12
-12
@@ -16,19 +16,19 @@
|
||||
#include "mfe.h"
|
||||
|
||||
#include "class/generic.h"
|
||||
#include "cfd950.h"
|
||||
#include "device/cfd950.h"
|
||||
#include "bus/null.h"
|
||||
|
||||
//-- Globals -------------------------------------------------------
|
||||
|
||||
//! The frontend name (client name) as seen by other MIDAS clients
|
||||
const char *frontend_name = "CFD950";
|
||||
const char *frontend_name = FRONTEND_NAME;
|
||||
|
||||
//! The frontend file name, don't change it
|
||||
const char *frontend_file_name = __FILE__;
|
||||
|
||||
//! frontend_loop is called periodically if this variable is TRUE
|
||||
BOOL frontend_call_loop = FALSE;
|
||||
BOOL frontend_call_loop = FALSE;
|
||||
|
||||
//! a frontend status page is displayed with this frequency in ms
|
||||
INT display_period = 1000;
|
||||
@@ -46,18 +46,18 @@ INT event_buffer_size = 10*10000;
|
||||
|
||||
//! device driver list
|
||||
DEVICE_DRIVER cfd950_driver[] = {
|
||||
{ "CFD950_1", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_2", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_3", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_4", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_5", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_1", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_2", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_3", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_4", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ "CFD950_5", cfd950, 35, null, DF_PRIO_DEVICE },
|
||||
{ ""},//List needs to be terminated by an empty name. Otherwise, unallocated memory is accessed during initialization!
|
||||
};
|
||||
|
||||
/*!
|
||||
* equipment_common_overwrite:
|
||||
*
|
||||
* - If that flag is TRUE, then the contents of the "equipment" structure is copied to
|
||||
* - If that flag is TRUE, then the contents of the "equipment" structure is copied to
|
||||
* the ODB on each start of the front-end.
|
||||
*
|
||||
* - If the flag is FALSE, then the ODB values are kept on the start of the front-end
|
||||
@@ -67,8 +67,8 @@ BOOL equipment_common_overwrite = FALSE;
|
||||
//! equipment structure for the mfe.c
|
||||
EQUIPMENT equipment[] = {
|
||||
|
||||
{ "CFD_950", // equipment name
|
||||
{204, 0, // event ID, trigger mask
|
||||
{ FRONTEND_NAME, // equipment name
|
||||
{204, 0, // event ID, trigger mask
|
||||
"SYSTEM", // event buffer
|
||||
EQ_SLOW, // equipment type
|
||||
0, // event source
|
||||
@@ -144,4 +144,4 @@ INT resume_run(INT run_number, char *error)
|
||||
INT end_of_run(INT run_number, char *error)
|
||||
{
|
||||
return CM_SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user