by default readout through blackfin upon server startup

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@422 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-01-11 09:17:41 +00:00
parent da2fd8369d
commit 42fe126f33
2 changed files with 12 additions and 6 deletions

View File

@ -1665,11 +1665,15 @@ u_int32_t* fifo_read_event()
if (runBusy()==0) {
t = bus_r(LOOK_AT_ME_REG);
if ((t&0x1)==0) {
#ifdef VERBOSE
printf("no frame found - exiting ");
printf("%08x %08x\n", runState(), bus_r(LOOK_AT_ME_REG));
#endif
return NULL;
} else {
#ifdef VERBOSE
printf("no frame found %x status %x\n", bus_r(LOOK_AT_ME_REG),runState());
#endif
break;
}
}
@ -1677,9 +1681,9 @@ u_int32_t* fifo_read_event()
}
//#ifdef VERBOSE
#ifdef VERBOSE
printf("before readout %08x %08x\n", runState(), bus_r(LOOK_AT_ME_REG));
//#endif
#endif
dma_memcpy(now_ptr,values ,dataBytes);
@ -1693,10 +1697,10 @@ u_int32_t* fifo_read_event()
printf("********\n");
//memcpy(now_ptr, values, dataBytes);
#endif
//#ifdef VERBOSE
#ifdef VERBOSE
printf("Copying to ptr %08x %d\n",(unsigned int)(now_ptr), dataBytes);
printf("after readout %08x %08x\n", runState(), bus_r(LOOK_AT_ME_REG));
//#endif
#endif
if (storeInRAM>0) {
now_ptr+=dataBytes;