mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 12:57:13 +02:00
changed fifo_data address, made fifo related stuff volatile, changed makefile to incorporate compiling image and program simultaneously
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@138 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -10,12 +10,13 @@
|
||||
#include "trimming_funcs.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Global variables
|
||||
|
||||
int (*flist[256])(int);
|
||||
|
||||
|
||||
|
||||
#ifdef MCB_FUNCS
|
||||
extern const enum detectorType myDetectorType;
|
||||
#endif
|
||||
@ -34,7 +35,7 @@ extern char thisClientIP[INET_ADDRSTRLEN];
|
||||
extern int differentClients;
|
||||
|
||||
/* global variables for optimized readout */
|
||||
extern int *ram_values;
|
||||
extern unsigned int *ram_values;
|
||||
char *dataretval=NULL;
|
||||
int nframes, iframes, dataret;
|
||||
char mess[1000];
|
||||
@ -68,7 +69,7 @@ int init_detector( int b) {
|
||||
#ifdef MCB_FUNCS
|
||||
if (b) {
|
||||
initDetector();
|
||||
printf("\ninitdetector done! \n");
|
||||
printf("\n----initdetector done! new serverRdRR\n\n");
|
||||
testFpga();
|
||||
testRAM();
|
||||
|
||||
@ -846,7 +847,7 @@ int read_register(int file_des) {
|
||||
|
||||
if(ret!=FAIL){
|
||||
address=(addr<<11);
|
||||
if(addr==0x80)
|
||||
if(addr==0x50)
|
||||
retval=bus_r16(address);
|
||||
else
|
||||
retval=bus_r(address);
|
||||
@ -1931,7 +1932,7 @@ int read_frame(int file_des) {
|
||||
sendDataOnly(file_des,&dataret,sizeof(dataret));
|
||||
sendDataOnly(file_des,dataretval,dataBytes);
|
||||
#ifdef VERBOSE
|
||||
printf("sent %d bytes\n",dataBytes);
|
||||
printf("sent %d bytes \n",dataBytes);
|
||||
#endif
|
||||
printf("dataret OK\n");
|
||||
return OK;
|
||||
@ -2007,15 +2008,13 @@ int read_frame(int file_des) {
|
||||
|
||||
int read_all(int file_des) {
|
||||
|
||||
|
||||
while(read_frame(file_des)==OK) {
|
||||
//usleep(0);
|
||||
while(read_frame(file_des)==OK) {
|
||||
|
||||
#ifdef VERBOSE
|
||||
printf("frame read\n");
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
#ifdef VERBOSE
|
||||
printf("Frames finished\n");
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user