tried fifo change

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@443 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-01-30 14:33:39 +00:00
parent 2176620ca4
commit 7d96d8b3af
4 changed files with 248 additions and 49 deletions

View File

@ -52,11 +52,17 @@ int dataBytes;
int init_detector(int b) {
#ifdef VIRTUAL
printf("This is a VIRTUAL detector\n");
#endif
#else
mapCSP0();
//only for control server
if(b){
//PLB_LL_fifo
fifoReset();
fifoTest();
//Aurora-Links
#endif
#ifdef SLS_DETECTOR_FUNCTION_LIST
initializeDetector();
//testFpga();
@ -98,9 +104,9 @@ int64_t swap_int64(int64_t val)
int decode_function(int file_des) {
int fnum,n;
int retval=FAIL;
//#ifdef VERBOSE
#ifdef VERBOSE
printf( "receive data\n");
//#endif
#endif
n = receiveDataOnly(file_des,&fnum,sizeof(fnum));
fnum=swap_int32(fnum);
if (n <= 0) {