mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-11 04:17:15 +02:00
changes for testram which didnt work anyway
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@111 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -511,6 +511,7 @@ u_int32_t getMcsVersion() {
|
||||
|
||||
// for fpga test
|
||||
u_int32_t testFpga(void) {
|
||||
printf("Test FPGA:\n");
|
||||
u_int32_t val,addr;
|
||||
int result=OK,i;
|
||||
//fixed pattern
|
||||
@ -572,7 +573,7 @@ u_int32_t testRAM(void) {
|
||||
allocateRAM();
|
||||
// while(i<100000) {
|
||||
memcpy(ram_values, values, dataBytes);
|
||||
printf ("%d: copied fifo %x to memory %x size %d\n",i++, values, ram_values, dataBytes);
|
||||
printf ("Test RAM:\t%d: copied fifo %x to memory %x size %d\n",i++, values, ram_values, dataBytes);
|
||||
// }
|
||||
return result;
|
||||
}
|
||||
@ -1677,7 +1678,6 @@ int allocateRAM() {
|
||||
#ifdef VERBOSE
|
||||
printf("RAM of size %d already allocated: nothing to be done\n", size);
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,6 @@ int init_detector( int b) {
|
||||
system("bus -a 0xb0000000");
|
||||
#endif
|
||||
#endif
|
||||
testFpga(); shouldnt this be inside virtual as well?!
|
||||
|
||||
*/
|
||||
if (res<0) { printf("Could not map memory\n");
|
||||
@ -71,14 +70,12 @@ int init_detector( int b) {
|
||||
initDetector();
|
||||
printf("\ninitdetector done! \n");
|
||||
testFpga();
|
||||
//testRAM();
|
||||
|
||||
//gotthard specific
|
||||
setPhaseShiftOnce();
|
||||
setDAQRegister();
|
||||
setSettings(GET_SETTINGS,-1);
|
||||
|
||||
|
||||
//testRAM();
|
||||
}
|
||||
#endif
|
||||
strcpy(mess,"dummy message");
|
||||
|
Reference in New Issue
Block a user