mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
gotthard2, dacs and onchip dacs from config file
This commit is contained in:
Binary file not shown.
@ -60,10 +60,7 @@ void basictests() {
|
||||
"Could not map to memory. Dangerous to continue.\n");
|
||||
FILE_LOG(logERROR, (initErrorMessage));
|
||||
initError = FAIL;
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
#else
|
||||
FILE_LOG(logINFOBLUE, ("******** Mythen3 Server: do the checks *****************\n"));
|
||||
@ -72,7 +69,6 @@ void basictests() {
|
||||
"Could not map to memory. Dangerous to continue.\n");
|
||||
FILE_LOG(logERROR, ("%s\n\n", initErrorMessage));
|
||||
initError = FAIL;
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
// does check only if flag is 0 (by default), set by command line
|
||||
@ -81,7 +77,6 @@ void basictests() {
|
||||
"Could not pass basic tests of FPGA and bus. Dangerous to continue.\n");
|
||||
FILE_LOG(logERROR, ("%s\n\n", initErrorMessage));
|
||||
initError = FAIL;
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
uint16_t hversion = getHardwareVersionNumber();
|
||||
@ -120,7 +115,6 @@ void basictests() {
|
||||
|
||||
// return if flag is not zero, debug mode
|
||||
if (debugflag) {
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -132,7 +126,6 @@ void basictests() {
|
||||
"Cant read versions from FPGA. Please update firmware.\n");
|
||||
FILE_LOG(logERROR, (initErrorMessage));
|
||||
initError = FAIL;
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -145,7 +138,6 @@ void basictests() {
|
||||
(long long int)requiredFirmwareVersion);
|
||||
FILE_LOG(logERROR, (initErrorMessage));
|
||||
initError = FAIL;
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -158,11 +150,9 @@ void basictests() {
|
||||
(long long int)requiredFirmwareVersion);
|
||||
FILE_LOG(logERROR, (initErrorMessage));
|
||||
initError = FAIL;
|
||||
initCheckDone = 1;
|
||||
return;
|
||||
}
|
||||
FILE_LOG(logINFO, ("Compatibility - success\n"));
|
||||
initCheckDone = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -315,7 +305,10 @@ u_int32_t getDetectorIP(){
|
||||
/* initialization */
|
||||
|
||||
void initControlServer(){
|
||||
setupDetector();
|
||||
if (initError == OK) {
|
||||
setupDetector();
|
||||
}
|
||||
initCheckDone = 1;
|
||||
}
|
||||
|
||||
void initStopServer() {
|
||||
|
Reference in New Issue
Block a user