mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-10 12:00:43 +02:00
changes in gotthard
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@225 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
CFLAGS= -DC_ONLY
|
||||
FLAGS= -DVERBOSE -DVERYVERBOSE -DDACS_INT
|
||||
FLAGS+= -DDACS_INT #-DVERBOSE -DVERYVERBOSE
|
||||
INCLUDES= -IcommonFiles -IslsDetector -IMySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis
|
||||
|
||||
#EPICSFLAGS=-D EPICS -I/usr/local/epics/base/include/ -I /usr/local/epics/base/include/os/Linux/ -L /usr/local/epics/base/lib/SL5-x86/ -Wl,-R/usr/local/epics/base/lib/SL5-x86 -lca -lCom
|
||||
|
@ -12,17 +12,15 @@
|
||||
/** maxmimum number of detectors ina multidetector structure*/
|
||||
#define MAXDET 100
|
||||
|
||||
typedef double double32_t;
|
||||
typedef int int32_t;
|
||||
typedef double double32_t;
|
||||
typedef float float32_t;
|
||||
typedef int int32_t;
|
||||
typedef char mystring[MAX_STR_LENGTH];
|
||||
typedef double mysteps[MAX_SCAN_STEPS];
|
||||
|
||||
|
||||
#ifdef DACS_INT
|
||||
typedef int dacs_t;
|
||||
//typedef uint32_t dacs_t;
|
||||
//#elif DACS_INT_CSERVER
|
||||
//typedef u_int32_t dacs_t;
|
||||
#else
|
||||
typedef float dacs_t;
|
||||
#endif
|
||||
|
@ -228,9 +228,9 @@ int setPhaseShiftOnce(){
|
||||
//Checking if it is power on(negative number)
|
||||
if(((reg&0xFFFF0000)>>16)>0){
|
||||
bus_w(addr,0x0); //clear the reg
|
||||
#ifdef VERBOSE
|
||||
//#ifdef VERBOSE
|
||||
printf("Implementing Phase Shift-Reg:%x\n",bus_r(addr));
|
||||
#endif
|
||||
//#endif
|
||||
//phase shift
|
||||
for (i=1;i<PHASE_SHIFT;i++) {
|
||||
bus_w(addr,(INT_RSTN_BIT|ENET_RESETN_BIT|SW1_BIT|PHASE_STEP_BIT));//0x2821
|
||||
|
@ -71,7 +71,7 @@ int init_detector( int b) {
|
||||
testFpga();
|
||||
testRAM();
|
||||
//gotthard specific
|
||||
setPhaseShiftOnce();
|
||||
//setPhaseShiftOnce();
|
||||
setDAQRegister();
|
||||
setSettings(GET_SETTINGS,-1);
|
||||
//Initialization
|
||||
|
Reference in New Issue
Block a user