diff --git a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c index cd8f20248..958567ebf 100755 --- a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c +++ b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c @@ -167,36 +167,46 @@ int setDAQRegister() result=FAIL; } #ifdef VERBOSE - printf("DAQ reg:20916770:%d\n",reg); + printf("DAQ reg:20916770:%d",reg); #endif return result; } + int setPhaseShiftOnce(){ - u_int32_t addr, reg, val; - int result=OK, i,off; + u_int32_t addr, reg; + int result=OK, i,val,powerOn=0; addr=MULTI_PURPOSE_REG; - //off=15; - // mask=((0x1)<>16)>0){ + bus_w(addr,0x0); //clear the reg +#ifdef VERBOSE + printf("Implementing Phase Shift-Reg:%d\n",bus_r(addr)); +#endif + //phase shift + for (i=1;i