mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
a check in gotthard server to ensure that it is really gotthard and not moench module
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@527 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
parent
528b34d2b5
commit
671c30f30a
Binary file not shown.
@ -53,18 +53,6 @@ char mess[1000];
|
||||
int digitalTestBit = 0;
|
||||
|
||||
|
||||
|
||||
void check_detector_type(int b){
|
||||
if (((bus_r(PCB_REV_REG) & DETECTOR_TYPE_MASK)>> DETECTOR_TYPE_OFFSET) == MOENCH_MODULE){
|
||||
printf("This is a MOENCH detector. Exiting Gotthard Server.\n");
|
||||
exit(-1);
|
||||
}
|
||||
if(b)
|
||||
printf("***This is a GOTTHARD detector with %d chips per module***\n", NCHIP);
|
||||
}
|
||||
|
||||
|
||||
|
||||
int init_detector( int b) {
|
||||
|
||||
if (mapCSP0()==FAIL) {
|
||||
@ -72,12 +60,17 @@ int init_detector( int b) {
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
check_detector_type(b);
|
||||
//confirm if it is really gotthard
|
||||
if (((bus_r(PCB_REV_REG) & DETECTOR_TYPE_MASK)>> DETECTOR_TYPE_OFFSET) == MOENCH_MODULE){
|
||||
printf("This is a MOENCH detector. Exiting Gotthard Server.\n");
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
if (b) {
|
||||
printf("***This is a GOTTHARD detector with %d chips per module***\n", NCHIP);
|
||||
#ifdef MCB_FUNCS
|
||||
initDetector();
|
||||
printf("Initializing Detector\n");
|
||||
initDetector();
|
||||
printf("Initializing Detector\n");
|
||||
#endif
|
||||
testFpga();
|
||||
testRAM();
|
||||
|
@ -23,7 +23,6 @@ int sockfd;
|
||||
int function_table();
|
||||
|
||||
int decode_function(int);
|
||||
void check_detector_type(int);
|
||||
int init_detector(int);
|
||||
|
||||
int M_nofunc(int);
|
||||
|
Loading…
x
Reference in New Issue
Block a user