From 1770045bcec6bd8a1f13209538ec9afca7264809 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 6 Jan 2012 10:02:55 +0000 Subject: [PATCH] Modified upto DAQ reg git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@75 951219d9-93cf-4727-9268-0efd64621fa3 --- .../gotthardDetectorServer/firmware_funcs.c | 74 ++++++++++++------- .../gotthardDetectorServer/firmware_funcs.h | 3 + .../gotthardDetectorServer/mcb_funcs.c | 1 + .../gotthardDetectorServer/mcb_funcs.h | 2 +- .../gotthardDetectorServer/registers_g.h | 1 + .../gotthardDetectorServer/server_defs.h | 2 + .../gotthardDetectorServer/server_funcs.c | 5 +- 7 files changed, 58 insertions(+), 30 deletions(-) diff --git a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c index 6887e45ec..cd8f20248 100755 --- a/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c +++ b/slsDetectorSoftware/gotthardDetectorServer/firmware_funcs.c @@ -111,33 +111,6 @@ int mapCSP0(void) { int setDummyRegister() { int result = OK; - /* - //to check if the dac really works with aldos code - int dacnum,dacvalue=700; - u_int32_t offw,codata; - u_int16_t valw; - int iru,i,ddx,csdx,cdx; - offw=0x37; - for(dacnum=0;dacnum<8;dacnum++) - { - ddx=2; csdx=0; cdx=1; - codata=((((0x2)<<4)+((dacnum)&0xf))<<16)+((dacvalue<<4)&0xfff0); - - valw=0xffff; bus_w(offw,(valw)); // start point - valw=((valw&(~(0x1<>(24-i))&0x1)<>(24-i))&0x1)); - valw=((valw&(~(0x1<