mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
in between in terms of mythen3 server, done with setdac and set power
This commit is contained in:
parent
6af3a6d33a
commit
08fda2b662
@ -373,13 +373,13 @@ enum dacIndex {
|
||||
TEMPERATURE_FPGA3, /**< temperature sensor (fpga3 (eiger:febr) */
|
||||
M_vIpre, /**< mythen 3 >*/
|
||||
M_vIbias, /**< mythen 3 >*/
|
||||
M_Vth2, /**< mythen 3 >*/
|
||||
M_Vth3, /**< mythen 3 >*/
|
||||
M_VPL, /**< mythen 3 >*/
|
||||
M_vIinSh, /**< mythen 3 >*/
|
||||
M_VdcSh, /**< mythen 3 >*/
|
||||
M_cas, /**< mythen 3 >*/
|
||||
M_Vth2, /**< mythen 3 >*/
|
||||
M_VPL, /**< mythen 3 >*/
|
||||
M_Vth3, /**< mythen 3 >*/
|
||||
M_casSh, /**< mythen 3 >*/
|
||||
M_cas, /**< mythen 3 >*/
|
||||
M_vIbiasSh, /**< mythen 3 >*/
|
||||
M_vIcin, /**< mythen 3 >*/
|
||||
M_vIpreOut, /**< mythen 3 >*/
|
||||
|
@ -1,141 +0,0 @@
|
||||
#ifndef AD9257_H
|
||||
#define AD9257_H
|
||||
|
||||
#include "ansi.h"
|
||||
|
||||
#include "commonServerFunctions.h"
|
||||
#include <stdio.h>
|
||||
|
||||
/* AD9257 ADC DEFINES */
|
||||
#define AD9257_ADC_NUMBITS (24)
|
||||
|
||||
#define AD9257_DEV_IND_2_REG (0x04)
|
||||
#define AD9257_CHAN_H_OFST (0)
|
||||
#define AD9257_CHAN_H_MSK (0x00000001 << AD9257_CHAN_H_OFST)
|
||||
#define AD9257_CHAN_G_OFST (1)
|
||||
#define AD9257_CHAN_G_MSK (0x00000001 << AD9257_CHAN_G_OFST)
|
||||
#define AD9257_CHAN_F_OFST (2)
|
||||
#define AD9257_CHAN_F_MSK (0x00000001 << AD9257_CHAN_F_OFST)
|
||||
#define AD9257_CHAN_E_OFST (3)
|
||||
#define AD9257_CHAN_E_MSK (0x00000001 << AD9257_CHAN_E_OFST)
|
||||
|
||||
#define AD9257_DEV_IND_1_REG (0x05)
|
||||
#define AD9257_CHAN_D_OFST (0)
|
||||
#define AD9257_CHAN_D_MSK (0x00000001 << AD9257_CHAN_D_OFST)
|
||||
#define AD9257_CHAN_C_OFST (1)
|
||||
#define AD9257_CHAN_C_MSK (0x00000001 << AD9257_CHAN_C_OFST)
|
||||
#define AD9257_CHAN_B_OFST (2)
|
||||
#define AD9257_CHAN_B_MSK (0x00000001 << AD9257_CHAN_B_OFST)
|
||||
#define AD9257_CHAN_A_OFST (3)
|
||||
#define AD9257_CHAN_A_MSK (0x00000001 << AD9257_CHAN_A_OFST)
|
||||
#define AD9257_CLK_CH_DCO_OFST (4)
|
||||
#define AD9257_CLK_CH_DCO_MSK (0x00000001 << AD9257_CLK_CH_DCO_OFST)
|
||||
#define AD9257_CLK_CH_IFCO_OFST (5)
|
||||
#define AD9257_CLK_CH_IFCO_MSK (0x00000001 << AD9257_CLK_CH_IFCO_OFST)
|
||||
|
||||
#define AD9257_POWER_MODE_REG (0x08)
|
||||
#define AD9257_POWER_INTERNAL_OFST (0)
|
||||
#define AD9257_POWER_INTERNAL_MSK (0x00000003 << AD9257_POWER_INTERNAL_OFST)
|
||||
#define AD9257_INT_RESET_VAL (0x3)
|
||||
#define AD9257_INT_CHIP_RUN_VAL (0x0)
|
||||
#define AD9257_POWER_EXTERNAL_OFST (5)
|
||||
#define AD9257_POWER_EXTERNAL_MSK (0x00000001 << AD9257_POWER_EXTERNAL_OFST)
|
||||
#define AD9257_EXT_FULL_POWER_VAL (0x0)
|
||||
#define AD9257_EXT_STANDBY_VAL (0x1)
|
||||
|
||||
#define AD9257_OUT_MODE_REG (0x14)
|
||||
#define AD9257_OUT_FORMAT_OFST (0)
|
||||
#define AD9257_OUT_FORMAT_MSK (0x00000001 << AD9257_OUT_FORMAT_OFST)
|
||||
#define AD9257_OUT_BINARY_OFST_VAL (0)
|
||||
#define AD9257_OUT_TWOS_COMPL_VAL (1)
|
||||
#define AD9257_OUT_LVDS_OPT_OFST (6)
|
||||
#define AD9257_OUT_LVDS_OPT_MSK (0x00000001 << AD9257_OUT_LVDS_OPT_OFST)
|
||||
#define AD9257_OUT_LVDS_ANSI_VAL (0)
|
||||
#define AD9257_OUT_LVDS_IEEE_VAL (1)
|
||||
|
||||
#define AD9257_OUT_PHASE_REG (0x16)
|
||||
#define AD9257_OUT_CLK_OFST (0)
|
||||
#define AD9257_OUT_CLK_MSK (0x0000000F << AD9257_OUT_CLK_OFST)
|
||||
#define AD9257_OUT_CLK_60_VAL (0x1)
|
||||
#define AD9257_IN_CLK_OFST (4)
|
||||
#define AD9257_IN_CLK_MSK (0x00000007 << AD9257_IN_CLK_OFST)
|
||||
#define AD9257_IN_CLK_0_VAL (0x0)
|
||||
|
||||
#define AD9257_VREF_REG (0x18)
|
||||
#define AD9257_VREF_OFST (0)
|
||||
#define AD9257_VREF_MSK (0x00000003 << AD9257_VREF_OFST)
|
||||
#define AD9257_VREF_1_33_VAL (0x2)
|
||||
|
||||
#define AD9257_TEST_MODE_REG (0x0D)
|
||||
#define AD9257_OUT_TEST_OFST (0)
|
||||
#define AD9257_OUT_TEST_MSK (0x0000000F << AD9257_OUT_TEST_OFST)
|
||||
#define AD9257_NONE_VAL (0x0)
|
||||
#define AD9257_MIXED_BIT_FREQ_VAL (0xC)
|
||||
#define AD9257_TEST_RESET_SHORT_GEN (4)
|
||||
#define AD9257_TEST_RESET_LONG_GEN (5)
|
||||
#define AD9257_USER_IN_MODE_OFST (6)
|
||||
#define AD9257_USER_IN_MODE_MSK (0x00000003 << AD9257_USER_IN_MODE_OFST)
|
||||
|
||||
|
||||
void setAdc(int addr, int val) {
|
||||
|
||||
u_int32_t codata;
|
||||
codata = val + (addr << 8);
|
||||
printf(" Setting ADC SPI Register. Wrote 0x%04x at 0x%04x\n", val, addr);
|
||||
serializeToSPI(ADC_SPI_REG, codata, ADC_SERIAL_CS_OUT_MSK, AD9257_ADC_NUMBITS,
|
||||
ADC_SERIAL_CLK_OUT_MSK, ADC_SERIAL_DATA_OUT_MSK, ADC_SERIAL_DATA_OUT_OFST);
|
||||
}
|
||||
|
||||
void prepareADC(){
|
||||
printf("\n\nPreparing ADC ... \n");
|
||||
|
||||
//power mode reset
|
||||
printf("power mode reset:\n");
|
||||
setAdc(AD9257_POWER_MODE_REG,
|
||||
(AD9257_INT_RESET_VAL << AD9257_POWER_INTERNAL_OFST) & AD9257_POWER_INTERNAL_MSK);
|
||||
|
||||
//power mode chip run
|
||||
printf("power mode chip run:\n");
|
||||
setAdc(AD9257_POWER_MODE_REG,
|
||||
(AD9257_INT_CHIP_RUN_VAL << AD9257_POWER_INTERNAL_OFST) & AD9257_POWER_INTERNAL_MSK);
|
||||
|
||||
//output clock phase
|
||||
printf("output clock phase:\n");
|
||||
setAdc(AD9257_OUT_PHASE_REG,
|
||||
(AD9257_OUT_CLK_60_VAL << AD9257_OUT_CLK_OFST) & AD9257_OUT_CLK_MSK);
|
||||
|
||||
// lvds-iee reduced , binary offset
|
||||
printf("lvds-iee reduced, binary offset:\n");
|
||||
setAdc(AD9257_OUT_MODE_REG,
|
||||
(AD9257_OUT_LVDS_IEEE_VAL << AD9257_OUT_LVDS_OPT_OFST) & AD9257_OUT_LVDS_OPT_MSK);
|
||||
|
||||
// all devices on chip to receive next command
|
||||
printf("all devices on chip to receive next command:\n");
|
||||
setAdc(AD9257_DEV_IND_2_REG,
|
||||
AD9257_CHAN_H_MSK | AD9257_CHAN_G_MSK | AD9257_CHAN_F_MSK | AD9257_CHAN_E_MSK);
|
||||
setAdc(AD9257_DEV_IND_1_REG,
|
||||
AD9257_CHAN_D_MSK | AD9257_CHAN_C_MSK | AD9257_CHAN_B_MSK | AD9257_CHAN_A_MSK |
|
||||
AD9257_CLK_CH_DCO_MSK | AD9257_CLK_CH_IFCO_MSK);
|
||||
|
||||
// vref 1.33
|
||||
printf("vref 1.33:\n");
|
||||
setAdc(AD9257_VREF_REG,
|
||||
(AD9257_VREF_1_33_VAL << AD9257_VREF_OFST) & AD9257_VREF_MSK);
|
||||
|
||||
// no test mode
|
||||
printf("no test mode:\n");
|
||||
setAdc(AD9257_TEST_MODE_REG,
|
||||
(AD9257_NONE_VAL << AD9257_OUT_TEST_OFST) & AD9257_OUT_TEST_MSK);
|
||||
|
||||
#ifdef TESTADC
|
||||
printf("***************************************** *******\n");
|
||||
printf("******* PUTTING ADC IN TEST MODE!!!!!!!!! *******\n");
|
||||
printf("***************************************** *******\n");
|
||||
// mixed bit frequency test mode
|
||||
printf("mixed bit frequency test mode:\n");
|
||||
setAdc(AD9257_TEST_MODE_REG,
|
||||
(AD9257_MIXED_BIT_FREQ_VAL << AD9257_OUT_TEST_OFST) & AD9257_OUT_TEST_MSK);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif //AD9257_H
|
1
slsDetectorSoftware/mythen3DetectorServer/AD9257.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/AD9257.h
Symbolic link
@ -0,0 +1 @@
|
||||
../slsDetectorServer/AD9257.h
|
@ -1,28 +1,33 @@
|
||||
CROSS = bfin-uclinux-
|
||||
CC = $(CROSS)gcc
|
||||
#CC = gcc
|
||||
CLAGS += -Wall -DVIRTUAL -DDACS_INT -DMYTHEN3D -DVERBOSE -DSLS_DETECTOR_FUNCTION_LIST #-DGENERICD
|
||||
LDLIBS += -lm
|
||||
INCS = -I. -I../../slsReceiverSoftware/include/ -I../commonFiles
|
||||
PROGS = mythen3Server
|
||||
#DESTDIR ?= bin
|
||||
CLAGS += -Wall -DMYTHEN3D -DSLS_DETECTOR_FUNCTION_LIST -DDACS_INT -DSTOP_SERVER #-DVERBOSEI #-DVERBOSE
|
||||
LDLIBS += -lm -lstdc++
|
||||
|
||||
|
||||
PROGS = mythen3DetectorServer
|
||||
DESTDIR ?= bin
|
||||
INSTMODE = 0777
|
||||
|
||||
SRC_CLNT = slsDetectorServer.c mythen3Server_funcs.c ../commonFiles/communication_funcs.c mythen3FunctionList.c
|
||||
SRC_CLNT = communication_funcs.c slsDetectorServer.c slsDetectorServer_funcs.c slsDetectorFunctionList.c
|
||||
OBJS = $(SRC_CLNT:.c=.o)
|
||||
|
||||
|
||||
|
||||
all: clean $(PROGS)
|
||||
all: clean versioning $(PROGS)
|
||||
|
||||
boot: $(OBJS)
|
||||
|
||||
$(PROGS):
|
||||
echo $(OBJS)
|
||||
# mkdir -p $(DESTDIR)
|
||||
$(CC) $(SRC_CLNT) $(CLAGS) $(LDLIBS) $(INCS) -o $@
|
||||
# mv $(PROGS) $(DESTDIR)
|
||||
versioning:
|
||||
@echo `tput setaf 6; ./updateGitVersion.sh; tput sgr0;`
|
||||
|
||||
$(PROGS): $(OBJS)
|
||||
# echo $(OBJS)
|
||||
mkdir -p $(DESTDIR)
|
||||
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
|
||||
mv $(PROGS) $(DESTDIR)
|
||||
rm *.gdb
|
||||
|
||||
clean:
|
||||
rm -rf $(PROGS) *.o
|
||||
rm -rf $(DESTDIR)/$(PROGS) *.o
|
||||
|
||||
|
25
slsDetectorSoftware/mythen3DetectorServer/Makefile.virtual
Normal file
25
slsDetectorSoftware/mythen3DetectorServer/Makefile.virtual
Normal file
@ -0,0 +1,25 @@
|
||||
CC = gcc
|
||||
CFLAGS += -Wall -DVIRTUAL -DMYTHEN3D -DSLS_DETECTOR_FUNCTION_LIST -DDACS_INT -DSTOP_SERVER #-DVERBOSEI #-DVERBOSE
|
||||
LDLIBS += -lm -lstdc++
|
||||
|
||||
PROGS = virtualMythen3DetectorServer
|
||||
DESTDIR ?= bin
|
||||
INSTMODE = 0777
|
||||
|
||||
SRC_CLNT = communication_funcs.c slsDetectorServer.c slsDetectorServer_funcs.c slsDetectorFunctionList.c
|
||||
OBJS = $(SRC_CLNT:.c=.o)
|
||||
|
||||
all: clean $(PROGS)
|
||||
|
||||
boot: $(OBJS)
|
||||
|
||||
$(PROGS): $(OBJS)
|
||||
echo $(OBJS)
|
||||
mkdir -p $(DESTDIR)
|
||||
$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
|
||||
mv $(PROGS) $(DESTDIR)
|
||||
rm *.gdb
|
||||
|
||||
clean:
|
||||
rm -rf $(DESTDIR)/$(PROGS) *.o
|
||||
|
101
slsDetectorSoftware/mythen3DetectorServer/RegisterDefs.h
Normal file
101
slsDetectorSoftware/mythen3DetectorServer/RegisterDefs.h
Normal file
@ -0,0 +1,101 @@
|
||||
#ifndef REGISTERS_G_H
|
||||
#define REGISTERS_G_H
|
||||
|
||||
/* Definitions for FPGA*/
|
||||
|
||||
/* FPGA Version register */
|
||||
#define FPGA_VERSION_REG (0x00 << 11)
|
||||
|
||||
#define BOARD_REVISION_OFST (0)
|
||||
#define BOARD_REVISION_MSK (0x00FFFFFF << BOARD_REVISION_OFST)
|
||||
#define DETECTOR_TYPE_OFST (24)
|
||||
#define DETECTOR_TYPE_MSK (0x000000FF << DETECTOR_TYPE_OFST)
|
||||
|
||||
/* Fix pattern register */
|
||||
#define FIX_PATT_REG (0x01 << 11)
|
||||
|
||||
|
||||
/* Timer 64 bit Regiser */
|
||||
#define SET_DELAY_LSB_REG (0x60 << 11) //96<<11 //0x68<<11
|
||||
#define SET_DELAY_MSB_REG (0x61 << 11) //97<<11 //0x69<<11
|
||||
#define SET_CYCLES_LSB_REG (0x62 << 11) //98<<11//0x6c<<11
|
||||
#define SET_CYCLES_MSB_REG (0x63 << 11) //99<<11//0x6d<<11
|
||||
#define SET_FRAMES_LSB_REG (0x64 << 11) //(100<<11)/** to hex */
|
||||
#define SET_FRAMES_MSB_REG (0x65 << 11) //101<<11//0x71<<11
|
||||
#define SET_PERIOD_LSB_REG (0x66 << 11) //102<<11//0x74<<11
|
||||
#define SET_PERIOD_MSB_REG (0x67 << 11) //103<<11//0x75<<11
|
||||
#define SET_GATES_LSB_REG (0x6A << 11) /*check in firmware*///106<<11//0x7c<<11
|
||||
#define SET_GATES_MSB_REG (0x6B << 11) //107<<11//0x7d<<11
|
||||
#define SET_EXPTIME_LSB_REG (0x72 << 11) /** check in firmware *///114<<11//0x78<<11
|
||||
#define SET_EXPTIME_MSB_REG (0x73 << 11) //115<<11//0x79<<11
|
||||
|
||||
#define GET_ACTUAL_TIME_LSB_REG (0x10 << 11) //16<<11
|
||||
#define GET_ACTUAL_TIME_MSB_REG (0x11 << 11) //17<<11
|
||||
#define GET_DELAY_LSB_REG (0x12 << 11) //18<<11//0x6a<<11
|
||||
#define GET_DELAY_MSB_REG (0x13 << 11) //19<<11//0x6b<<11
|
||||
#define GET_CYCLES_LSB_REG (0x14 << 11) //20<<11//0x6e<<11
|
||||
#define GET_CYCLES_MSB_REG (0x15 << 11) //21<<11//0x6f<<11
|
||||
#define GET_FRAMES_LSB_REG (0x16 << 11) //22<<11//0x72<<11
|
||||
#define GET_FRAMES_MSB_REG (0x17 << 11) //23<<11//0x73<<11
|
||||
#define GET_PERIOD_LSB_REG (0x18 << 11) //24<<11//0x76<<11
|
||||
#define GET_PERIOD_MSB_REG (0x19 << 11) //25<<11//0x77<<11
|
||||
#define GET_EXPTIME_LSB_REG (0x1A << 11) //26<<11//0x7a<<11
|
||||
#define GET_EXPTIME_MSB_REG (0x1B << 11) //27<<11//0x7b<<11
|
||||
#define GET_GATES_LSB_REG (0x1C << 11) //28<<11//0x7e<<11
|
||||
#define GET_GATES_MSB_REG (0x1D << 11) //29<<11//0x7f<<11
|
||||
|
||||
#define FRAMES_FROM_START_LSB_REG (0x22 << 11) //34<<11
|
||||
#define FRAMES_FROM_START_MSB_REG (0x23 << 11) //35<<11
|
||||
#define FRAMES_FROM_START_PG_LSB_REG (0x24 << 11) //36<<11
|
||||
#define FRAMES_FROM_START_PG_MSB_REG (0x25 << 11) //37<<11
|
||||
#define GET_MEASUREMENT_TIME_LSB_REG (0x26 << 11) //38<<11
|
||||
#define GET_MEASUREMENT_TIME_MSB_REG (0x27 << 11) //39<<11
|
||||
|
||||
|
||||
/* SPI (Serial Peripheral Interface) Register */
|
||||
#define SPI_REG (0x40 << 11)
|
||||
|
||||
#define DAC_SERIAL_DIGITAL_OUT_OFST (0)
|
||||
#define DAC_SERIAL_DIGITAL_OUT_MSK (0x00000001 << DAC_SERIAL_DIGITAL_OUT_OFST)
|
||||
#define DAC_SERIAL_CLK_OUT_OFST (1)
|
||||
#define DAC_SERIAL_CLK_OUT_MSK (0x00000001 << DAC_SERIAL_CLK_OUT_OFST)
|
||||
#define DAC_SERIAL_CS_OUT_OFST (2)
|
||||
#define DAC_SERIAL_CS_OUT_MSK (0x00000001 << DAC_SERIAL_CS_OUT_OFST)
|
||||
#define HV_SERIAL_DIGITAL_OUT_OFST (8)
|
||||
#define HV_SERIAL_DIGITAL_OUT_MSK (0x00000001 << HV_SERIAL_DIGITAL_OUT_OFST)
|
||||
#define HV_SERIAL_CLK_OUT_OFST (9)
|
||||
#define HV_SERIAL_CLK_OUT_MSK (0x00000001 << HV_SERIAL_CLK_OUT_OFST)
|
||||
#define HV_SERIAL_CS_OUT_OFST (10)
|
||||
#define HV_SERIAL_CS_OUT_MSK (0x00000001 << HV_SERIAL_CS_OUT_OFST)
|
||||
|
||||
/* Control Register */
|
||||
#define CONTROL_REG (0x4F << 11) //(79 << 11) /** to hex */
|
||||
|
||||
|
||||
/* Reconfiguratble PLL Control Regiser */
|
||||
#define PLL_CONTROL_REG (0x51 << 11) //(81 << 11)/** to hex */
|
||||
|
||||
//#define PLL_CTRL_RECONFIG_RST_OFST (0) //parameter reset
|
||||
//#define PLL_CTRL_RECONFIG_RST_MSK (0x00000001 << PLL_CTRL_RECONFIG_RST_OFST) //parameter reset
|
||||
//#define PLL_CTRL_WR_PARAMETER_OFST (2)
|
||||
//#define PLL_CTRL_WR_PARAMETER_MSK (0x00000001 << PLL_CTRL_WR_PARAMETER_OFST)
|
||||
#define PLL_CTRL_RST_OFST (3)
|
||||
#define PLL_CTRL_RST_MSK (0x00000001 << PLL_CTRL_RST_OFST)
|
||||
//#define PLL_CTRL_ADDR_OFST (16)
|
||||
//#define PLL_CTRL_ADDR_MSK (0x0000003F << PLL_CTRL_ADDR_OFST)
|
||||
|
||||
/* Samples Register */
|
||||
#define NSAMPLES_REG (0x5D << 11) //93<<11
|
||||
|
||||
/* Power On Register */
|
||||
#define POWER_ON_REG (0x5e<<11)
|
||||
|
||||
#define POWER_ENABLE_OFST (16)
|
||||
|
||||
/* Dac Registers */
|
||||
#define DAC_VAL_REG (0x79 << 11) //121<<11
|
||||
#define DAC_NUM_REG (0x80 << 11) //122<<11
|
||||
#define DAC_VAL_OUT_REG (0x2A << 11) //42<<11
|
||||
|
||||
#endif
|
||||
|
1
slsDetectorSoftware/mythen3DetectorServer/ansi.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/ansi.h
Symbolic link
@ -0,0 +1 @@
|
||||
../../slsReceiverSoftware/include/ansi.h
|
@ -1 +0,0 @@
|
||||
export PATH=/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin:$PATH
|
@ -1,60 +0,0 @@
|
||||
#ifndef COMMON_SERVER_FUNCTIONS_H
|
||||
#define COMMON_SERVER_FUNCTIONS_H
|
||||
|
||||
#ifndef GOTTHARDD //gotthard already had bus_w etc defined in its firmware_funcs.c (not yet made with common files)
|
||||
#include "blackfin.h"
|
||||
#endif
|
||||
|
||||
/* global variables */
|
||||
void serializeToSPI(u_int32_t addr, u_int32_t val, u_int32_t csmask, int numbitstosend, u_int32_t clkmask, u_int32_t digoutmask, int digofset) {
|
||||
#ifdef VERBOSE
|
||||
if (numbitstosend == 16)
|
||||
printf("Writing to SPI Register: 0x%04x\n",val);
|
||||
else
|
||||
printf("Writing to SPI Register: 0x%08x\n", val);
|
||||
#endif
|
||||
|
||||
u_int32_t valw;
|
||||
|
||||
// start point
|
||||
valw = 0xffffffff; // old board compatibility (not using specific bits)
|
||||
bus_w (addr, valw);
|
||||
|
||||
// chip sel bar down
|
||||
valw &= ~csmask; /* todo with test: done a bit different, not with previous value */
|
||||
bus_w (addr, valw);
|
||||
|
||||
{
|
||||
int i = 0;
|
||||
for (i = 0; i < numbitstosend; ++i) {
|
||||
|
||||
// clk down
|
||||
valw &= ~clkmask;
|
||||
bus_w (addr, valw);
|
||||
|
||||
// write data (i)
|
||||
valw = ((valw & ~digoutmask) + // unset bit
|
||||
(((val >> (numbitstosend - 1 - i)) & 0x1) << digofset)); // each bit from val starting from msb
|
||||
bus_w (addr, valw);
|
||||
|
||||
// clk up
|
||||
valw |= clkmask ;
|
||||
bus_w (addr, valw);
|
||||
}
|
||||
}
|
||||
|
||||
// chip sel bar up
|
||||
valw |= csmask; /* todo with test: not done for spi */
|
||||
bus_w (addr, valw);
|
||||
|
||||
//clk down
|
||||
valw &= ~clkmask;
|
||||
bus_w (addr, valw);
|
||||
|
||||
// stop point = start point of course
|
||||
valw = 0xffffffff; // old board compatibility (not using specific bits)
|
||||
bus_w (addr, valw);
|
||||
}
|
||||
|
||||
|
||||
#endif //COMMON_SERVER_FUNCTIONS_H
|
@ -0,0 +1 @@
|
||||
../slsDetectorServer/commonServerFunctions.h
|
1
slsDetectorSoftware/mythen3DetectorServer/communication_funcs.c
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/communication_funcs.c
Symbolic link
@ -0,0 +1 @@
|
||||
../commonFiles/communication_funcs.c
|
1
slsDetectorSoftware/mythen3DetectorServer/communication_funcs.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/communication_funcs.h
Symbolic link
@ -0,0 +1 @@
|
||||
../commonFiles/communication_funcs.h
|
@ -1,602 +0,0 @@
|
||||
rm -rf mythen3Server *.o
|
||||
echo slsDetectorServer.o mythen3Server_funcs.o communication_funcs.o mythen3FunctionList.o
|
||||
slsDetectorServer.o mythen3Server_funcs.o communication_funcs.o mythen3FunctionList.o
|
||||
bfin-uclinux-gcc slsDetectorServer.c mythen3Server_funcs.c communication_funcs.c mythen3FunctionList.c -Wall -DVIRTUAL -DDACS_INT -DMYTHEN3D -DVERBOSE -DSLS_DETECTOR_FUNCTION_LIST -lm -I. -I../../slsReceiverSoftware/include/ -o mythen3Server
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:27,
|
||||
from communication_funcs.h:7,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/uio.h: In function ‘setDAC’:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/uio.h:40: error: storage class specified for parameter ‘readv’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/uio.h:50: error: storage class specified for parameter ‘writev’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:35,
|
||||
from communication_funcs.h:7,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/socket.h:36: error: storage class specified for parameter ‘socklen_t’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/socket.h:142,
|
||||
from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:35,
|
||||
from communication_funcs.h:7,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/sockaddr.h:29: error: storage class specified for parameter ‘sa_family_t’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:35,
|
||||
from communication_funcs.h:7,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/socket.h:147: error: expected specifier-qualifier-list before ‘sa_family_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/socket.h:164: error: expected specifier-qualifier-list before ‘sa_family_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/socket.h:223: error: expected specifier-qualifier-list before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/socket.h:271: error: storage class specified for parameter ‘__cmsg_nxthdr’
|
||||
In file included from communication_funcs.h:7,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:100: error: storage class specified for parameter ‘socket’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:107: error: storage class specified for parameter ‘socketpair’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:110: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:111: error: storage class specified for parameter ‘bind’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:115: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:115: error: storage class specified for parameter ‘getsockname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:124: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:124: error: storage class specified for parameter ‘connect’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:129: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:129: error: storage class specified for parameter ‘getpeername’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:136: error: storage class specified for parameter ‘send’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:143: error: storage class specified for parameter ‘recv’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:152: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:152: error: storage class specified for parameter ‘sendto’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:163: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:163: error: storage class specified for parameter ‘recvfrom’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:172: error: storage class specified for parameter ‘sendmsg’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:179: error: storage class specified for parameter ‘recvmsg’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:187: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:187: error: storage class specified for parameter ‘getsockopt’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:193: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:193: error: storage class specified for parameter ‘setsockopt’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:199: error: storage class specified for parameter ‘listen’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:210: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:210: error: storage class specified for parameter ‘accept’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:218: error: storage class specified for parameter ‘shutdown’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/socket.h:231: error: storage class specified for parameter ‘isfdtype’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:23,
|
||||
from communication_funcs.h:10,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:93: error: storage class specified for parameter ‘in_port_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:137: error: storage class specified for parameter ‘in_addr_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:140: error: expected specifier-qualifier-list before ‘in_addr_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:207: error: storage class specified for parameter ‘in6addr_any’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:208: error: storage class specified for parameter ‘in6addr_loopback’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:223: error: expected specifier-qualifier-list before ‘sa_family_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:238: error: expected specifier-qualifier-list before ‘sa_family_t’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:23,
|
||||
from communication_funcs.h:10,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:357: error: storage class specified for parameter ‘ntohl’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:359: error: storage class specified for parameter ‘ntohs’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:361: error: storage class specified for parameter ‘htonl’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:363: error: storage class specified for parameter ‘htons’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:23,
|
||||
from communication_funcs.h:10,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:431: error: storage class specified for parameter ‘bindresvport’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netinet/in.h:435: error: storage class specified for parameter ‘bindresvport6’
|
||||
In file included from communication_funcs.h:10,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inet_addr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inet_lnaof’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:42: error: expected ‘)’ before ‘__net’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inet_netof’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inet_network’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:54: error: storage class specified for parameter ‘inet_ntoa’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:56: error: storage class specified for parameter ‘inet_ntoa_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:62: error: storage class specified for parameter ‘inet_pton’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:68: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:69: error: storage class specified for parameter ‘inet_ntop’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:76: error: storage class specified for parameter ‘inet_aton’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:80: error: expected ‘)’ before ‘__net’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:86: error: storage class specified for parameter ‘inet_net_ntop’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:92: error: storage class specified for parameter ‘inet_net_pton’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:98: error: storage class specified for parameter ‘inet_nsap_addr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/arpa/inet.h:103: error: storage class specified for parameter ‘inet_nsap_ntoa’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:33,
|
||||
from communication_funcs.h:11,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:53: error: storage class specified for parameter ‘setrpcent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:54: error: storage class specified for parameter ‘endrpcent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:55: error: storage class specified for parameter ‘getrpcbyname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:56: error: storage class specified for parameter ‘getrpcbynumber’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:57: error: storage class specified for parameter ‘getrpcent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:62: error: storage class specified for parameter ‘getrpcbyname_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:66: error: storage class specified for parameter ‘getrpcbynumber_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/rpc/netdb.h:69: error: storage class specified for parameter ‘getrpcent_r’
|
||||
In file included from communication_funcs.h:11,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:60: error: storage class specified for parameter ‘h_errno’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:66: error: storage class specified for parameter ‘__h_errno_location’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:93: error: storage class specified for parameter ‘herror’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:96: error: storage class specified for parameter ‘hstrerror’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:116: error: storage class specified for parameter ‘sethostent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:122: error: storage class specified for parameter ‘endhostent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:129: error: storage class specified for parameter ‘gethostent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:137: error: storage class specified for parameter ‘gethostbyaddr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:143: error: storage class specified for parameter ‘gethostbyname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:154: error: storage class specified for parameter ‘gethostbyname2’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:169: error: storage class specified for parameter ‘gethostent_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:176: error: storage class specified for parameter ‘gethostbyaddr_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:182: error: storage class specified for parameter ‘gethostbyname_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:188: error: storage class specified for parameter ‘gethostbyname2_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:197: error: storage class specified for parameter ‘setnetent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:203: error: storage class specified for parameter ‘endnetent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:210: error: storage class specified for parameter ‘getnetent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:217: error: storage class specified for parameter ‘getnetbyaddr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:223: error: storage class specified for parameter ‘getnetbyname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:272: error: storage class specified for parameter ‘setservent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:278: error: storage class specified for parameter ‘endservent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:285: error: storage class specified for parameter ‘getservent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:293: error: storage class specified for parameter ‘getservbyname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:300: error: storage class specified for parameter ‘getservbyport’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:313: error: storage class specified for parameter ‘getservent_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:319: error: storage class specified for parameter ‘getservbyname_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:324: error: storage class specified for parameter ‘getservbyport_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:341: error: storage class specified for parameter ‘setprotoent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:347: error: storage class specified for parameter ‘endprotoent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:354: error: storage class specified for parameter ‘getprotoent’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:360: error: storage class specified for parameter ‘getprotobyname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:366: error: storage class specified for parameter ‘getprotobynumber’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:379: error: storage class specified for parameter ‘getprotoent_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:384: error: storage class specified for parameter ‘getprotobyname_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:389: error: storage class specified for parameter ‘getprotobynumber_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:446: error: storage class specified for parameter ‘ruserpass’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:464: error: storage class specified for parameter ‘rcmd’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:495: error: storage class specified for parameter ‘rexec’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:508: error: expected declaration specifiers or ‘...’ before ‘sa_family_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:508: error: storage class specified for parameter ‘rexec_af’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:519: error: storage class specified for parameter ‘ruserok’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:543: error: storage class specified for parameter ‘rresvport’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:568: error: expected specifier-qualifier-list before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:640: error: storage class specified for parameter ‘getaddrinfo’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:643: error: storage class specified for parameter ‘freeaddrinfo’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:646: error: storage class specified for parameter ‘gai_strerror’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:653: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:654: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:655: error: expected declaration specifiers or ‘...’ before ‘socklen_t’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/netdb.h:655: error: storage class specified for parameter ‘getnameinfo’
|
||||
In file included from communication_funcs.h:13,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:256: error: storage class specified for parameter ‘access’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:299: error: storage class specified for parameter ‘lseek’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:318: error: storage class specified for parameter ‘close’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:325: error: storage class specified for parameter ‘read’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:331: error: storage class specified for parameter ‘write’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:382: error: storage class specified for parameter ‘pipe’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:391: error: storage class specified for parameter ‘alarm’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:403: error: storage class specified for parameter ‘sleep’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:411: error: storage class specified for parameter ‘ualarm’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:418: error: storage class specified for parameter ‘usleep’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:427: error: storage class specified for parameter ‘pause’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:432: error: storage class specified for parameter ‘chown’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:436: error: storage class specified for parameter ‘fchown’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:442: error: storage class specified for parameter ‘lchown’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:455: error: storage class specified for parameter ‘chdir’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:459: error: storage class specified for parameter ‘fchdir’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:469: error: storage class specified for parameter ‘getcwd’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:488: error: storage class specified for parameter ‘dup’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:491: error: storage class specified for parameter ‘dup2’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:494: error: storage class specified for parameter ‘__environ’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:503: error: storage class specified for parameter ‘execve’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:515: error: storage class specified for parameter ‘execv’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:520: error: storage class specified for parameter ‘execle’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:525: error: storage class specified for parameter ‘execl’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:530: error: storage class specified for parameter ‘execvp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:536: error: storage class specified for parameter ‘execlp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:541: error: storage class specified for parameter ‘nice’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:546: error: storage class specified for parameter ‘_exit’
|
||||
In file included from communication_funcs.h:13,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:556: error: storage class specified for parameter ‘pathconf’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:559: error: storage class specified for parameter ‘fpathconf’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:562: error: storage class specified for parameter ‘sysconf’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:566: error: storage class specified for parameter ‘confstr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:571: error: storage class specified for parameter ‘getpid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:574: error: storage class specified for parameter ‘getppid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:579: error: storage class specified for parameter ‘getpgrp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:589: error: storage class specified for parameter ‘__getpgid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:598: error: storage class specified for parameter ‘setpgid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:615: error: storage class specified for parameter ‘setpgrp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:632: error: storage class specified for parameter ‘setsid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:640: error: storage class specified for parameter ‘getuid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:643: error: storage class specified for parameter ‘geteuid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:646: error: storage class specified for parameter ‘getgid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:649: error: storage class specified for parameter ‘getegid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:654: error: storage class specified for parameter ‘getgroups’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:665: error: storage class specified for parameter ‘setuid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:670: error: storage class specified for parameter ‘setreuid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:675: error: storage class specified for parameter ‘seteuid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:682: error: storage class specified for parameter ‘setgid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:687: error: storage class specified for parameter ‘setregid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:692: error: storage class specified for parameter ‘setegid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:732: error: storage class specified for parameter ‘vfork’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:738: error: storage class specified for parameter ‘ttyname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:743: error: storage class specified for parameter ‘ttyname_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:747: error: storage class specified for parameter ‘isatty’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:759: error: storage class specified for parameter ‘link’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:772: error: storage class specified for parameter ‘symlink’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:779: error: storage class specified for parameter ‘readlink’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:794: error: storage class specified for parameter ‘unlink’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:803: error: storage class specified for parameter ‘rmdir’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:807: error: storage class specified for parameter ‘tcgetpgrp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:810: error: storage class specified for parameter ‘tcsetpgrp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:817: error: storage class specified for parameter ‘getlogin’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:825: error: storage class specified for parameter ‘getlogin_r’
|
||||
In file included from /afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:840,
|
||||
from communication_funcs.h:13,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/getopt.h:61: error: storage class specified for parameter ‘optarg’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/getopt.h:75: error: storage class specified for parameter ‘optind’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/getopt.h:80: error: storage class specified for parameter ‘opterr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/getopt.h:84: error: storage class specified for parameter ‘optopt’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/bits/getopt.h:155: error: storage class specified for parameter ‘getopt’
|
||||
In file included from communication_funcs.h:13,
|
||||
from mythen3Server_funcs.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:848: error: storage class specified for parameter ‘gethostname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:856: error: storage class specified for parameter ‘sethostname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:860: error: storage class specified for parameter ‘sethostid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:867: error: storage class specified for parameter ‘getdomainname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:869: error: storage class specified for parameter ‘setdomainname’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:875: error: storage class specified for parameter ‘vhangup’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:896: error: storage class specified for parameter ‘acct’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:900: error: storage class specified for parameter ‘getusershell’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:901: error: storage class specified for parameter ‘endusershell’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:902: error: storage class specified for parameter ‘setusershell’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:908: error: storage class specified for parameter ‘daemon’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:915: error: storage class specified for parameter ‘chroot’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:919: error: storage class specified for parameter ‘getpass’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:928: error: storage class specified for parameter ‘fsync’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:935: error: storage class specified for parameter ‘gethostid’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:938: error: storage class specified for parameter ‘sync’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:943: error: storage class specified for parameter ‘getpagesize’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:948: error: storage class specified for parameter ‘getdtablesize’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:954: error: storage class specified for parameter ‘truncate’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:975: error: storage class specified for parameter ‘ftruncate’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:995: error: storage class specified for parameter ‘brk’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:1001: error: storage class specified for parameter ‘sbrk’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:1016: error: storage class specified for parameter ‘syscall’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:1039: error: storage class specified for parameter ‘lockf’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/unistd.h:1071: error: storage class specified for parameter ‘fdatasync’
|
||||
In file included from communication_funcs.h:15,
|
||||
from mythen3Server_funcs.c:5:
|
||||
sls_detector_defs.h:594: error: expected declaration specifiers before ‘;’ token
|
||||
In file included from mythen3Server_funcs.c:5:
|
||||
communication_funcs.h:24: error: storage class specified for parameter ‘intType’
|
||||
communication_funcs.h:34: error: expected declaration specifiers or ‘...’ before ‘intType’
|
||||
communication_funcs.h:35: error: expected declaration specifiers or ‘...’ before ‘intType’
|
||||
communication_funcs.h:36: error: expected declaration specifiers or ‘...’ before ‘intType’
|
||||
In file included from mythen3RegisterDefs.h:5,
|
||||
from mythen3Server_funcs.c:7:
|
||||
sls_detector_defs.h:594: error: expected declaration specifiers before ‘;’ token
|
||||
In file included from mythen3Server_funcs.c:7:
|
||||
mythen3RegisterDefs.h:456: warning: empty declaration
|
||||
In file included from blackfin.h:7,
|
||||
from mythen3Server_funcs.c:8:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:74: error: storage class specified for parameter ‘fcntl’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:93: error: storage class specified for parameter ‘open’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:138: error: storage class specified for parameter ‘creat’
|
||||
In file included from blackfin.h:8,
|
||||
from mythen3Server_funcs.c:8:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:59: error: storage class specified for parameter ‘mmap’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:77: error: storage class specified for parameter ‘munmap’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:82: error: storage class specified for parameter ‘mprotect’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:104: error: storage class specified for parameter ‘madvise’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:148: error: storage class specified for parameter ‘mincore’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:168: error: storage class specified for parameter ‘shm_open’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:171: error: storage class specified for parameter ‘shm_unlink’
|
||||
In file included from mythen3Server_funcs.c:8:
|
||||
blackfin.h:12: error: parameter ‘CSP0BASE’ is initialized
|
||||
blackfin.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
In file included from mythen3Server_funcs.c:11:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:40: error: storage class specified for parameter ‘memcpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:44: error: storage class specified for parameter ‘memmove’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:53: error: storage class specified for parameter ‘memccpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:59: error: storage class specified for parameter ‘memset’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:63: error: storage class specified for parameter ‘memcmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:67: error: storage class specified for parameter ‘memchr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:85: error: storage class specified for parameter ‘strcpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:89: error: storage class specified for parameter ‘strncpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:93: error: storage class specified for parameter ‘strcat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:96: error: storage class specified for parameter ‘strncat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:100: error: storage class specified for parameter ‘strcmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:103: error: storage class specified for parameter ‘strncmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:107: error: storage class specified for parameter ‘strcoll’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:111: error: storage class specified for parameter ‘strxfrm’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:131: error: storage class specified for parameter ‘strdup’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:168: error: storage class specified for parameter ‘strchr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:171: error: storage class specified for parameter ‘strrchr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:185: error: storage class specified for parameter ‘strcspn’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:189: error: storage class specified for parameter ‘strspn’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:192: error: storage class specified for parameter ‘strpbrk’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:195: error: storage class specified for parameter ‘strstr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:200: error: storage class specified for parameter ‘strtok’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:214: error: storage class specified for parameter ‘strtok_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:247: error: storage class specified for parameter ‘strlen’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:260: error: storage class specified for parameter ‘strerror’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:286: error: storage class specified for parameter ‘__glibc_strerror_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:288: error: storage class specified for parameter ‘strerror_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:307: error: storage class specified for parameter ‘bcopy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:310: error: storage class specified for parameter ‘bzero’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:314: error: storage class specified for parameter ‘bcmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:318: error: storage class specified for parameter ‘index’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:322: error: storage class specified for parameter ‘rindex’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:339: error: storage class specified for parameter ‘ffs’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:353: error: storage class specified for parameter ‘strcasecmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:357: error: storage class specified for parameter ‘strncasecmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:377: error: storage class specified for parameter ‘strsep’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:430: error: storage class specified for parameter ‘strlcat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:432: error: storage class specified for parameter ‘strlcpy’
|
||||
mythen3Server_funcs.c:16: error: storage class specified for parameter ‘lockStatus’
|
||||
mythen3Server_funcs.c:17: error: storage class specified for parameter ‘lastClientIP’
|
||||
mythen3Server_funcs.c:18: error: storage class specified for parameter ‘thisClientIP’
|
||||
mythen3Server_funcs.c:19: error: storage class specified for parameter ‘differentClients’
|
||||
mythen3Server_funcs.c:40: error: parameter ‘myDetectorType’ is initialized
|
||||
mythen3Server_funcs.c:45: error: parameter ‘dataBytes’ is initialized
|
||||
mythen3Server_funcs.c:46: error: parameter ‘isControlServer’ is initialized
|
||||
mythen3Server_funcs.c:47: error: parameter ‘debugflag’ is initialized
|
||||
mythen3Server_funcs.c:49: error: parameter ‘N_DAC’ is initialized
|
||||
mythen3Server_funcs.c:50: error: parameter ‘N_PWR’ is initialized
|
||||
mythen3Server_funcs.c:52: error: parameter ‘vPowerLimit’ is initialized
|
||||
mythen3Server_funcs.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:295: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:321: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:380: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:408: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:462: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:505: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:579: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:642: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:724: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:836: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:855: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:874: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:894: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1239: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1340: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1398: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1459: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1478: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1549: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1620: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1641: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1717: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1784: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:1805: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2221: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2278: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2349: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2386: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2425: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2475: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2502: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2532: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2595: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2686: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2766: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2865: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:2949: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3049: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3215: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3271: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3286: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3350: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3359: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3489: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3696: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3747: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3796: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3857: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3911: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:3971: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4031: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4102: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4179: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4238: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4290: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4344: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4397: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4471: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4515: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4604: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4747: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4792: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4858: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4918: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:4963: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3Server_funcs.c:5007: error: old-style parameter declarations in prototyped function definition
|
||||
mythen3Server_funcs.c:5005: error: expected ‘{’ at end of input
|
||||
communication_funcs.c: In function ‘receiveModuleGeneral’:
|
||||
communication_funcs.c:540: warning: unused variable ‘id’
|
||||
In file included from blackfin.h:7,
|
||||
from commonServerFunctions.h:5,
|
||||
from AD9257.h:6,
|
||||
from mythen3FunctionList.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h: In function ‘setDAC’:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:74: error: storage class specified for parameter ‘fcntl’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:93: error: storage class specified for parameter ‘open’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:138: error: storage class specified for parameter ‘creat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/fcntl.h:167: error: storage class specified for parameter ‘lockf’
|
||||
In file included from blackfin.h:8,
|
||||
from commonServerFunctions.h:5,
|
||||
from AD9257.h:6,
|
||||
from mythen3FunctionList.c:5:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:59: error: storage class specified for parameter ‘mmap’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:77: error: storage class specified for parameter ‘munmap’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:82: error: storage class specified for parameter ‘mprotect’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:104: error: storage class specified for parameter ‘madvise’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:134: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:148: error: storage class specified for parameter ‘mincore’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:168: error: storage class specified for parameter ‘shm_open’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/sys/mman.h:171: error: storage class specified for parameter ‘shm_unlink’
|
||||
In file included from commonServerFunctions.h:5,
|
||||
from AD9257.h:6,
|
||||
from mythen3FunctionList.c:5:
|
||||
blackfin.h:12: error: parameter ‘CSP0BASE’ is initialized
|
||||
blackfin.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
blackfin.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
In file included from AD9257.h:6,
|
||||
from mythen3FunctionList.c:5:
|
||||
commonServerFunctions.h:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
In file included from mythen3FunctionList.c:5:
|
||||
AD9257.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
AD9257.h:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
In file included from mythen3FunctionList.c:8:
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:40: error: storage class specified for parameter ‘memcpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:44: error: storage class specified for parameter ‘memmove’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:53: error: storage class specified for parameter ‘memccpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:59: error: storage class specified for parameter ‘memset’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:63: error: storage class specified for parameter ‘memcmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:67: error: storage class specified for parameter ‘memchr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:85: error: storage class specified for parameter ‘strcpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:89: error: storage class specified for parameter ‘strncpy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:93: error: storage class specified for parameter ‘strcat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:96: error: storage class specified for parameter ‘strncat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:100: error: storage class specified for parameter ‘strcmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:103: error: storage class specified for parameter ‘strncmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:107: error: storage class specified for parameter ‘strcoll’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:111: error: storage class specified for parameter ‘strxfrm’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:131: error: storage class specified for parameter ‘strdup’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:168: error: storage class specified for parameter ‘strchr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:171: error: storage class specified for parameter ‘strrchr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:185: error: storage class specified for parameter ‘strcspn’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:189: error: storage class specified for parameter ‘strspn’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:192: error: storage class specified for parameter ‘strpbrk’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:195: error: storage class specified for parameter ‘strstr’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:200: error: storage class specified for parameter ‘strtok’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:214: error: storage class specified for parameter ‘strtok_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:247: error: storage class specified for parameter ‘strlen’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:260: error: storage class specified for parameter ‘strerror’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:286: error: storage class specified for parameter ‘__glibc_strerror_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:288: error: storage class specified for parameter ‘strerror_r’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:307: error: storage class specified for parameter ‘bcopy’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:310: error: storage class specified for parameter ‘bzero’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:314: error: storage class specified for parameter ‘bcmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:318: error: storage class specified for parameter ‘index’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:322: error: storage class specified for parameter ‘rindex’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:339: error: storage class specified for parameter ‘ffs’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:353: error: storage class specified for parameter ‘strcasecmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:357: error: storage class specified for parameter ‘strncasecmp’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:377: error: storage class specified for parameter ‘strsep’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:430: error: storage class specified for parameter ‘strlcat’
|
||||
/afs/psi.ch/project/sls_det_firmware/jungfrau_software/uClinux-2010_64bit/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/include/string.h:432: error: storage class specified for parameter ‘strlcpy’
|
||||
mythen3FunctionList.c:11: error: parameter ‘nChans’ is initialized
|
||||
mythen3FunctionList.c:12: error: parameter ‘nChips’ is initialized
|
||||
mythen3FunctionList.c:13: error: parameter ‘nDacs’ is initialized
|
||||
mythen3FunctionList.c:14: error: parameter ‘nAdcs’ is initialized
|
||||
mythen3FunctionList.c:15: error: parameter ‘allSelected’ is initialized
|
||||
mythen3FunctionList.c:16: error: parameter ‘noneSelected’ is initialized
|
||||
mythen3FunctionList.c:18: error: parameter ‘detectorModules’ is initialized
|
||||
mythen3FunctionList.c:19: error: parameter ‘detectorChips’ is initialized
|
||||
mythen3FunctionList.c:20: error: parameter ‘detectorChans’ is initialized
|
||||
mythen3FunctionList.c:21: error: parameter ‘detectorDacs’ is initialized
|
||||
mythen3FunctionList.c:22: error: parameter ‘detectorAdcs’ is initialized
|
||||
mythen3FunctionList.c:24: error: parameter ‘nModY’ is initialized
|
||||
mythen3FunctionList.c:25: error: parameter ‘nModX’ is initialized
|
||||
mythen3FunctionList.c:26: error: parameter ‘dynamicRange’ is initialized
|
||||
mythen3FunctionList.c:27: error: parameter ‘dataBytes’ is initialized
|
||||
mythen3FunctionList.c:28: error: parameter ‘masterMode’ is initialized
|
||||
mythen3FunctionList.c:29: error: parameter ‘syncMode’ is initialized
|
||||
mythen3FunctionList.c:30: error: parameter ‘timingMode’ is initialized
|
||||
mythen3FunctionList.c:37: error: storage class specified for parameter ‘dataBytes’
|
||||
mythen3FunctionList.c:37: error: redefinition of parameter ‘dataBytes’
|
||||
mythen3FunctionList.c:27: error: previous definition of ‘dataBytes’ was here
|
||||
mythen3FunctionList.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:145: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:164: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:176: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:197: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:235: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:256: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:356: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:492: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:500: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:507: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:514: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:520: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:525: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:530: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:535: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:542: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:550: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:557: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:576: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:583: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:590: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:599: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:668: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:688: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:696: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:702: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:716: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:724: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:730: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:736: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:741: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:746: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:751: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:756: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:761: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:762: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:763: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:764: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:765: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:766: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:767: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:775: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:785: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:836: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:954: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:1086: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
|
||||
mythen3FunctionList.c:1197: error: old-style parameter declarations in prototyped function definition
|
||||
mythen3FunctionList.c:1193: error: expected ‘{’ at end of input
|
||||
make: *** [mythen3Server] Error 1
|
9
slsDetectorSoftware/mythen3DetectorServer/gitInfo.txt
Normal file
9
slsDetectorSoftware/mythen3DetectorServer/gitInfo.txt
Normal file
@ -0,0 +1,9 @@
|
||||
Path: slsDetectorsPackage/slsDetectorSoftware/jungfrauDetectorServer
|
||||
URL: origin git@git.psi.ch:sls_detectors_software/slsDetectorPackage.git
|
||||
Repository Root: origin git@git.psi.ch:sls_detectors_software/slsDetectorPackage.git
|
||||
Repsitory UUID: 2f3dc8d109de8607f3217cf429619073dc9cc60e
|
||||
Revision: 103
|
||||
Branch: developer
|
||||
Last Changed Author: Dhanya_Maliakal
|
||||
Last Changed Rev: 3397
|
||||
Last Changed Date: 2017-12-04 18:23:05.000000002 +0100 ./RegisterDefs.h
|
@ -0,0 +1,6 @@
|
||||
#define GITURL "git@git.psi.ch:sls_detectors_software/slsDetectorPackage.git"
|
||||
#define GITREPUUID "2f3dc8d109de8607f3217cf429619073dc9cc60e"
|
||||
#define GITAUTH "Dhanya_Maliakal"
|
||||
#define GITREV 0x3397
|
||||
#define GITDATE 0x20171204
|
||||
#define GITBRANCH "developer"
|
@ -0,0 +1,6 @@
|
||||
#define GITURL ""
|
||||
#define GITREPUUID ""
|
||||
#define GITAUTH ""
|
||||
#define GITREV ""
|
||||
#define GITDATE ""
|
||||
#define GITBRANCH ""
|
File diff suppressed because it is too large
Load Diff
@ -1,249 +0,0 @@
|
||||
#ifdef SLS_DETECTOR_FUNCTION_LIST
|
||||
#ifndef SLS_DETECTOR_FUNCTION_LIST_H
|
||||
#define SLS_DETECTOR_FUNCTION_LIST_H
|
||||
|
||||
#include "sls_receiver_defs.h"
|
||||
#include "mythen3Server_defs.h" // DAC_INDEX, ADC_INDEX, also include RegisterDefs.h
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h> // FILE
|
||||
|
||||
|
||||
/****************************************************
|
||||
This functions are used by the slsDetectroServer_funcs interface.
|
||||
Here are the definitions, but the actual implementation should be done for each single detector.
|
||||
|
||||
****************************************************/
|
||||
|
||||
|
||||
// basic tests
|
||||
void checkFirmwareCompatibility(int flag);
|
||||
#ifdef JUNGFRAUD
|
||||
int checkType();
|
||||
u_int32_t testFpga(void);
|
||||
int testBus(void);
|
||||
#endif
|
||||
|
||||
#if defined(MYTHEND) || defined(JUNGFRAUD) || defined(MTHEN3D)
|
||||
int moduleTest( enum digitalTestMode arg, int imod);
|
||||
#endif
|
||||
int detectorTest( enum digitalTestMode arg);
|
||||
|
||||
// Ids
|
||||
int64_t getDetectorId(enum idMode arg);
|
||||
u_int64_t getFirmwareVersion();
|
||||
#ifdef MYTHEND
|
||||
int64_t getModuleId(enum idMode arg, int imod);
|
||||
#elif JUNGFRAUDN_DAC
|
||||
u_int16_t getHardwareVersionNumber();
|
||||
u_int16_t getHardwareSerialNumber();
|
||||
#endif
|
||||
u_int32_t getDetectorNumber();
|
||||
u_int64_t getDetectorMAC();
|
||||
u_int32_t getDetectorIP();
|
||||
|
||||
|
||||
// initialization
|
||||
void initControlServer();
|
||||
void initStopServer();
|
||||
#ifdef EIGERD
|
||||
void getModuleConfiguration();
|
||||
#endif
|
||||
|
||||
// set up detector
|
||||
void allocateDetectorStructureMemory();
|
||||
int setupDetector();
|
||||
|
||||
|
||||
// advanced read/write reg
|
||||
#ifndef EIGERD
|
||||
extern u_int32_t writeRegister(u_int32_t offset, u_int32_t data); // blackfin.h
|
||||
extern u_int32_t readRegister(u_int32_t offset); // blackfin.h
|
||||
#else
|
||||
uint32_t writeRegister(uint32_t offset, uint32_t data);
|
||||
uint32_t readRegister(uint32_t offset);
|
||||
#endif
|
||||
|
||||
|
||||
// firmware functions (resets)
|
||||
#ifdef JUNGFRAUD
|
||||
int powerChip (int on);
|
||||
void cleanFifos();
|
||||
void resetCore();
|
||||
void resetPeripheral();
|
||||
int adcPhase(int st);
|
||||
int getPhase();
|
||||
#endif
|
||||
|
||||
// parameters - nmod, dr, roi
|
||||
int setNMod(int nm, enum dimension dim); // mythen specific, but for detector compatibility as a get
|
||||
int getNModBoard(enum dimension arg); // mythen specific, but for detector compatibility as a get
|
||||
int setDynamicRange(int dr);
|
||||
#ifdef GOTTHARD
|
||||
int setROI(int n, ROI arg[], int *retvalsize, int *ret);
|
||||
#endif
|
||||
|
||||
// parameters - readout
|
||||
int setSpeed(enum speedVariable arg, int val);
|
||||
#if defined(EIGERD) || defined(MYTHEND)
|
||||
enum readOutFlags setReadOutFlags(enum readOutFlags val);
|
||||
#endif
|
||||
#ifdef MYTHEND
|
||||
int executeTrimming(enum trimMode mode, int par1, int par2, int imod);
|
||||
#endif
|
||||
|
||||
// parameters - timer
|
||||
int64_t setTimer(enum timerIndex ind, int64_t val);
|
||||
#ifndef EIGERD
|
||||
int64_t getTimeLeft(enum timerIndex ind);
|
||||
#endif
|
||||
|
||||
|
||||
// parameters - channel, chip, module, settings
|
||||
#ifdef MYTHEND
|
||||
int setChannel(sls_detector_channel myChan);
|
||||
int getChannel(sls_detector_channel *myChan);
|
||||
int setChip(sls_detector_chip myChip);
|
||||
int getChip(sls_detector_chip *myChip);
|
||||
#endif
|
||||
#ifdef EIGERD
|
||||
int setModule(sls_detector_module myMod, int delay);
|
||||
#else
|
||||
int setModule(sls_detector_module myMod);
|
||||
#endif
|
||||
int getModule(sls_detector_module *myMod);
|
||||
enum detectorSettings setSettings(enum detectorSettings sett, int imod);
|
||||
enum detectorSettings getSettings();
|
||||
|
||||
|
||||
// parameters - threshold
|
||||
#if defined(MYTHEND) || defined(EIGERD)
|
||||
int getThresholdEnergy(int imod);
|
||||
int setThresholdEnergy(int ev, int imod);
|
||||
#endif
|
||||
|
||||
// parameters - dac, adc, hv
|
||||
#ifdef JUNGFRAUD
|
||||
void serializeToSPI(u_int32_t addr, u_int32_t val, u_int32_t csmask, int numbitstosend, u_int32_t clkmask, u_int32_t digoutmask, int digofset);
|
||||
void initDac(int dacnum);
|
||||
extern void setAdc(int addr, int val); // AD9257.h
|
||||
int voltageToDac(int value);
|
||||
int dacToVoltage(unsigned int digital);
|
||||
#endif
|
||||
// void setDAC(enum DACINDEX ind, int val, int imod, int mV, int retval[]);
|
||||
double setDAC(enum DACINDEX ind, double val, int imod, int mV);
|
||||
|
||||
#ifndef MYTHEND
|
||||
int setHighVoltage(int val);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
// parameters - timing, extsig
|
||||
#ifdef MYTHEND
|
||||
enum externalSignalFlag getExtSignal(int signalindex);
|
||||
enum externalSignalFlag setExtSignal(int signalindex, enum externalSignalFlag flag);
|
||||
#endif
|
||||
enum externalCommunicationMode setTiming( enum externalCommunicationMode arg);
|
||||
|
||||
// configure mac
|
||||
#ifdef JUNGFRAUD
|
||||
long int calcChecksum(int sourceip, int destip);
|
||||
#endif
|
||||
#ifndef MYTHEND
|
||||
int configureMAC(uint32_t destip, uint64_t destmac, uint64_t sourcemac, uint32_t sourceip, uint32_t udpport, uint32_t udpport2, int ival);
|
||||
// int configureMAC(int ipad, long long int imacadd, long long int iservermacadd, int dtb);
|
||||
#endif
|
||||
#if defined(JUNGFRAUD) || defined(EIGERD)
|
||||
int setDetectorPosition(int pos[]);
|
||||
#endif
|
||||
|
||||
|
||||
// very detector specific
|
||||
|
||||
// gotthard specific - image, pedestal
|
||||
#ifdef GOTTHARDD
|
||||
int loadImage(enum imageType index, char *imageVals);
|
||||
int readCounterBlock(int startACQ, char *counterVals);
|
||||
int resetCounterBlock(int startACQ);
|
||||
int calibratePedestal(int frames);
|
||||
|
||||
// jungfrau specific - pll, flashing firmware
|
||||
#elif JUNGFRAUD
|
||||
void resetPLL();
|
||||
u_int32_t setPllReconfigReg(u_int32_t reg, u_int32_t val);
|
||||
void configurePll();
|
||||
extern void eraseFlash(); // programfpga.h
|
||||
extern int startWritingFPGAprogram(FILE** filefp); // programfpga.h
|
||||
extern void stopWritingFPGAprogram(FILE* filefp); // programfpga.h
|
||||
extern int writeFPGAProgram(char* fpgasrc, size_t fsize, FILE* filefp); // programfpga.h
|
||||
|
||||
// eiger specific - iodelay, 10g, pulse, rate, temp, activate, delay nw parameter
|
||||
#elif EIGERD
|
||||
int setIODelay(int val, int imod);
|
||||
int enableTenGigabitEthernet(int val);
|
||||
int setCounterBit(int val);
|
||||
int pulsePixel(int n, int x, int y);
|
||||
int pulsePixelNMove(int n, int x, int y);
|
||||
int pulseChip(int n);
|
||||
int64_t setRateCorrection(int64_t custom_tau_in_nsec);
|
||||
int getRateCorrectionEnable();
|
||||
int getDefaultSettingsTau_in_nsec();
|
||||
void setDefaultSettingsTau_in_nsec(int t);
|
||||
int64_t getCurrentTau();
|
||||
void setExternalGating(int enable[]);
|
||||
int setAllTrimbits(int val);
|
||||
int getAllTrimbits();
|
||||
int getBebFPGATemp();
|
||||
int activate(int enable);
|
||||
int setNetworkParameter(enum NETWORKINDEX mode, int value);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
// aquisition
|
||||
#if defined(EIGERD) || defined(GOTTHARD)
|
||||
int prepareAcquisition();
|
||||
#endif
|
||||
int startStateMachine();
|
||||
#ifdef VIRTUAL
|
||||
void* start_timer(void* arg);
|
||||
#endif
|
||||
int stopStateMachine();
|
||||
#ifndef JUNGFRAUD
|
||||
int startReadOut();
|
||||
#endif
|
||||
enum runStatus getRunStatus();
|
||||
// void readFrame(int *ret, char *mess);
|
||||
char *readFrame(int *ret, char *mess);
|
||||
#ifdef JUNGFRAUD
|
||||
u_int32_t runBusy(void);
|
||||
#endif
|
||||
|
||||
|
||||
//common
|
||||
int copyModule(sls_detector_module *destMod, sls_detector_module *srcMod);
|
||||
int calculateDataBytes();
|
||||
int getTotalNumberOfChannels();
|
||||
int getTotalNumberOfChips();
|
||||
int getTotalNumberOfModules();
|
||||
int getNumberOfChannelsPerModule();
|
||||
int getNumberOfChipsPerModule();
|
||||
int getNumberOfDACsPerModule();
|
||||
int getNumberOfADCsPerModule();
|
||||
#ifdef EIGERD
|
||||
int getNumberOfGainsPerModule();
|
||||
int getNumberOfOffsetsPerModule();
|
||||
#endif
|
||||
int getNumberOfChannelsPerChip();
|
||||
|
||||
// sync
|
||||
enum masterFlags setMaster(enum masterFlags arg);
|
||||
enum synchronizationMode setSynchronization(enum synchronizationMode arg);
|
||||
|
||||
int setPower(int ind, int val);
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
@ -1,551 +0,0 @@
|
||||
#ifndef REGISTERS_G_H
|
||||
#define REGISTERS_G_H
|
||||
|
||||
|
||||
#include "sls_detector_defs.h"
|
||||
|
||||
|
||||
/* Definitions for FPGA*/
|
||||
#define CSP0 0x20200000
|
||||
#define MEM_SIZE 0x100000
|
||||
|
||||
|
||||
|
||||
/* values defined for FPGA */
|
||||
#define MCSNUM 0x0
|
||||
#define FIXED_PATT_VAL 0xacdc1980
|
||||
|
||||
|
||||
#define FPGA_INIT_PAT 0x60008
|
||||
#define FPGA_INIT_ADDR 0xb0000000
|
||||
|
||||
//#ifdef JUNGFRAU_DHANYA
|
||||
#define POWER_ON_REG 0x5e<<11
|
||||
// Pwr_I2C_SDA <= PowerReg_s(1) when PowerReg_s(3)='1' else 'Z';
|
||||
// Pwr_I2C_SCL <= PowerReg_s(0) when PowerReg_s(2)='1' else 'Z';
|
||||
|
||||
#define PWR_I2C_SCL_BIT 0
|
||||
#define PWR_I2C_SDA_BIT 1
|
||||
#define PWR_I2C_SCL_EN_BIT 2
|
||||
#define PWR_I2C_SDA_EN_BIT 3
|
||||
|
||||
#define POWER_STATUS_REG 41<<11
|
||||
|
||||
#define ADCREG1 0x08
|
||||
#define ADCREG2 0x14//20
|
||||
#define ADCREG3 0x4
|
||||
#define ADCREG4 0x5
|
||||
#define ADCREG_VREFS 24
|
||||
#define DBIT_PIPELINE_REG 89<<11 //0x59 same PATTERN_N_LOOP2_REG
|
||||
#define MEM_MACHINE_FIFOS_REG 79<<11 //from gotthard
|
||||
#define CONFGAIN_REG 93<<11 //from gotthard
|
||||
#define ADC_PIPELINE_REG 66<<11 //0x42 same as ADC_OFFSET_REG
|
||||
//#endif
|
||||
|
||||
//#define ADC_OFFSET_REG 93<<11 //same as DAQ_REG
|
||||
#define ADC_INVERSION_REG 67<<11
|
||||
|
||||
#define DAC_REG 64<<11//0x17<<11// control the dacs
|
||||
//ADC
|
||||
#define ADC_WRITE_REG 65<<11//0x18<<11
|
||||
//#define ADC_SYNC_REG 66<<11//0x19<<11
|
||||
//#define HV_REG 67<<11//0x20<<11
|
||||
|
||||
|
||||
|
||||
|
||||
//#define MUTIME_REG 0x1a<<11
|
||||
//temperature
|
||||
#define TEMP_IN_REG 0x1b<<11
|
||||
#define TEMP_OUT_REG 0x1c<<11
|
||||
//configure MAC
|
||||
#define TSE_CONF_REG 0x1d<<11
|
||||
#define ENET_CONF_REG 0x1e<<11
|
||||
//#define WRTSE_SHAD_REG 0x1f<<11
|
||||
//HV
|
||||
|
||||
|
||||
#define DUMMY_REG 68<<11//0x21<<11
|
||||
#define FPGA_VERSION_REG 0<<11 //0x22<<11
|
||||
#define PCB_REV_REG 0<<11
|
||||
#define FIX_PATT_REG 1<<11 //0x23<<11
|
||||
#define CONTROL_REG 79<<11//0x24<<11
|
||||
#define STATUS_REG 2<<11 //0x25<<11
|
||||
#define CONFIG_REG 77<<11//0x26<<11
|
||||
#define EXT_SIGNAL_REG 78<<11// 0x27<<11
|
||||
//#define FPGA_SVN_REG 0x29<<11
|
||||
|
||||
|
||||
#define CHIP_OF_INTRST_REG 0x2A<<11
|
||||
|
||||
//FIFO
|
||||
#define LOOK_AT_ME_REG 3<<11 //0x28<<11
|
||||
#define SYSTEM_STATUS_REG 4<<11
|
||||
|
||||
#define FIFO_DATA_REG 6<<11
|
||||
#define FIFO_STATUS_REG 7<<11
|
||||
|
||||
// constant FifoDigitalInReg_c : integer := 60;
|
||||
#define FIFO_DIGITAL_DATA_LSB_REG 60<<11
|
||||
#define FIFO_DIGITAL_DATA_MSB_REG 61<<11
|
||||
|
||||
#define FIFO_DATA_REG_OFF 0x50<<11 ///////
|
||||
//to read back dac registers
|
||||
//#define MOD_DACS1_REG 0x65<<11
|
||||
//#define MOD_DACS2_REG 0x66<<11
|
||||
//#define MOD_DACS3_REG 0x67<<11
|
||||
|
||||
//user entered
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define GET_ACTUAL_TIME_LSB_REG 16<<11
|
||||
#define GET_ACTUAL_TIME_MSB_REG 17<<11
|
||||
|
||||
#define GET_MEASUREMENT_TIME_LSB_REG 38<<11
|
||||
#define GET_MEASUREMENT_TIME_MSB_REG 39<<11
|
||||
|
||||
|
||||
#define SET_DELAY_LSB_REG 96<<11 //0x68<<11
|
||||
#define SET_DELAY_MSB_REG 97<<11 //0x69<<11
|
||||
#define GET_DELAY_LSB_REG 18<<11//0x6a<<11
|
||||
#define GET_DELAY_MSB_REG 19<<11//0x6b<<11
|
||||
|
||||
#define SET_CYCLES_LSB_REG 98<<11//0x6c<<11
|
||||
#define SET_CYCLES_MSB_REG 99<<11//0x6d<<11
|
||||
#define GET_CYCLES_LSB_REG 20<<11//0x6e<<11
|
||||
#define GET_CYCLES_MSB_REG 21<<11//0x6f<<11
|
||||
|
||||
#define SET_FRAMES_LSB_REG 100<<11//0x70<<11
|
||||
#define SET_FRAMES_MSB_REG 101<<11//0x71<<11
|
||||
#define GET_FRAMES_LSB_REG 22<<11//0x72<<11
|
||||
#define GET_FRAMES_MSB_REG 23<<11//0x73<<11
|
||||
|
||||
#define SET_PERIOD_LSB_REG 102<<11//0x74<<11
|
||||
#define SET_PERIOD_MSB_REG 103<<11//0x75<<11
|
||||
#define GET_PERIOD_LSB_REG 24<<11//0x76<<11
|
||||
#define GET_PERIOD_MSB_REG 25<<11//0x77<<11
|
||||
|
||||
//#define PATTERN_WAIT0_TIME_REG_LSB 114<<11
|
||||
//#define PATTERN_WAIT0_TIME_REG_MSB 115<<11
|
||||
#define SET_EXPTIME_LSB_REG 114<<11//0x78<<11
|
||||
#define SET_EXPTIME_MSB_REG 115<<11//0x79<<11
|
||||
#define GET_EXPTIME_LSB_REG 26<<11//0x7a<<11
|
||||
#define GET_EXPTIME_MSB_REG 27<<11//0x7b<<11
|
||||
|
||||
#define SET_GATES_LSB_REG 106<<11//0x7c<<11
|
||||
#define SET_GATES_MSB_REG 107<<11//0x7d<<11
|
||||
#define GET_GATES_LSB_REG 28<<11//0x7e<<11
|
||||
#define GET_GATES_MSB_REG 29<<11//0x7f<<11
|
||||
|
||||
#define DATA_IN_LSB_REG 30<<11
|
||||
#define DATA_IN_MSB_REG 31<<11
|
||||
|
||||
#define PATTERN_OUT_LSB_REG 32<<11
|
||||
#define PATTERN_OUT_MSB_REG 33<<11
|
||||
|
||||
#define FRAMES_FROM_START_LSB_REG 34<<11
|
||||
#define FRAMES_FROM_START_MSB_REG 35<<11
|
||||
|
||||
#define FRAMES_FROM_START_PG_LSB_REG 36<<11
|
||||
#define FRAMES_FROM_START_PG_MSB_REG 37<<11
|
||||
|
||||
#define SLOW_ADC_REG 43<<11
|
||||
|
||||
|
||||
|
||||
#define PLL_PARAM_REG 80<<11//0x37<<11
|
||||
#define PLL_PARAM_OUT_REG 5<<11 //0x38<<11
|
||||
#define PLL_CNTRL_REG 81<<11//0x34<<11
|
||||
|
||||
|
||||
#ifdef NEW_GBE_INTERFACE
|
||||
#define GBE_PARAM_OUT_REG 40<<11
|
||||
#define GBE_PARAM_REG 69<<11
|
||||
#define GBE_CNTRL_REG 70<<11
|
||||
#else
|
||||
#define RX_UDP_AREG 69<<11 //rx_udpip_AReg_c : integer:= 69; *\/
|
||||
#define UDPPORTS_AREG 70<<11// udpports_AReg_c : integer:= 70; *\/
|
||||
#define RX_UDPMACL_AREG 71<<11//rx_udpmacL_AReg_c : integer:= 71; *\/
|
||||
#define RX_UDPMACH_AREG 72<<11//rx_udpmacH_AReg_c : integer:= 72; *\/
|
||||
#define DETECTORMACL_AREG 73<<11//detectormacL_AReg_c : integer:= 73; *\/
|
||||
#define DETECTORMACH_AREG 74<<11//detectormacH_AReg_c : integer:= 74; *\/
|
||||
#define DETECTORIP_AREG 75<<11//detectorip_AReg_c : integer:= 75; *\/
|
||||
#define IPCHKSUM_AREG 76<<11//ipchksum_AReg_c : integer:= 76; *\/ */
|
||||
#endif
|
||||
|
||||
|
||||
#define PATTERN_CNTRL_REG 82<<11 // address of patword
|
||||
#define PATTERN_LIMITS_AREG 83<<11 // start/stop pattern
|
||||
|
||||
#define PATTERN_LOOP0_AREG 84<<11 // start/stop of loop
|
||||
#define PATTERN_N_LOOP0_REG 85<<11 // # loops
|
||||
|
||||
#define PATTERN_LOOP1_AREG 86<<11
|
||||
#define PATTERN_N_LOOP1_REG 87<<11
|
||||
|
||||
#define PATTERN_LOOP2_AREG 88<<11
|
||||
#define PATTERN_N_LOOP2_REG 89<<11
|
||||
|
||||
#define PATTERN_WAIT0_AREG 90<<11 // address where to wait
|
||||
#define PATTERN_WAIT1_AREG 91<<11
|
||||
#define PATTERN_WAIT2_AREG 92<<11
|
||||
|
||||
|
||||
|
||||
//#define DAQ_REG 93<<11 //unused
|
||||
#define NSAMPLES_REG 93<<11 //unused
|
||||
|
||||
|
||||
#define HV_REG 95<<11
|
||||
|
||||
|
||||
|
||||
#define PATTERN_IOCTRL_REG_LSB 108<<11 // if output or not
|
||||
#define PATTERN_IOCTRL_REG_MSB 109<<11
|
||||
|
||||
#define PATTERN_IOCLKCTRL_REG_LSB 110<<11//unused
|
||||
#define PATTERN_IOCLKCTRL_REG_MSB 111<<11//unused
|
||||
#define PATTERN_IN_REG_LSB 112<<11 // write word
|
||||
#define PATTERN_IN_REG_MSB 113<<11
|
||||
#define PATTERN_WAIT0_TIME_REG_LSB 114<<11 // how long to wait
|
||||
#define PATTERN_WAIT0_TIME_REG_MSB 115<<11
|
||||
#define PATTERN_WAIT1_TIME_REG_LSB 116<<11
|
||||
#define PATTERN_WAIT1_TIME_REG_MSB 117<<11
|
||||
#define PATTERN_WAIT2_TIME_REG_LSB 118<<11
|
||||
#define PATTERN_WAIT2_TIME_REG_MSB 119<<11
|
||||
|
||||
//#define DAC_REG_OFF 120
|
||||
//#define DAC_0_1_VAL_REG 120<<11
|
||||
//#define DAC_2_3_VAL_REG 121<<11
|
||||
//#define DAC_4_5_VAL_REG 122<<11
|
||||
//#define DAC_6_7_VAL_REG 123<<11
|
||||
//#define DAC_8_9_VAL_REG 124<<11
|
||||
//#define DAC_10_11_VAL_REG 125<<11
|
||||
//#define DAC_12_13_VAL_REG 126<<11
|
||||
//#define DAC_14_15_VAL_REG 127<<11
|
||||
#define DAC_VAL_REG 121<<11 // value of the DAC
|
||||
#define DAC_NUM_REG 122<<11 // Index of the DAC, only JCTB
|
||||
#define DAC_VAL_OUT_REG 42<<11
|
||||
#define ADC_LATCH_DISABLE_REG 120<<11
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* registers defined in FPGA */
|
||||
#define GAIN_REG 0
|
||||
//#define FLOW_CONTROL_REG 0x11<<11
|
||||
//#define FLOW_STATUS_REG 0x12<<11
|
||||
//#define FRAME_REG 0x13<<11
|
||||
#define MULTI_PURPOSE_REG 0
|
||||
//#define TIME_FROM_START_REG 0x16<<11
|
||||
|
||||
|
||||
#define ROI_REG 0 // 0x35<<11
|
||||
#define OVERSAMPLING_REG 0 // 0x36<<11
|
||||
#define MOENCH_CNTR_REG 0 // 0x31<<11
|
||||
#define MOENCH_CNTR_OUT_REG 0 // 0x33<<11
|
||||
#define MOENCH_CNTR_CONF_REG 0 // 0x32<<11
|
||||
|
||||
|
||||
|
||||
//image
|
||||
#define DARK_IMAGE_REG 0 // 0x81<<11
|
||||
#define GAIN_IMAGE_REG 0 // 0x82<<11
|
||||
|
||||
//counter block memory
|
||||
#define COUNTER_MEMORY_REG 0 // 0x85<<11 //gotthard
|
||||
|
||||
|
||||
//not used
|
||||
//#define MCB_DOUT_REG_OFF 0 // 0x200000
|
||||
//#define FIFO_CNTRL_REG_OFF 0 // 0x300000
|
||||
//#define FIFO_COUNTR_REG_OFF 0 // 0x400000
|
||||
//not used so far
|
||||
//#define SPEED_REG 0 // 0x006000
|
||||
//#define SET_NBITS_REG 0 // 0x008000
|
||||
//not used
|
||||
//#define GET_SHIFT_IN_REG 0 // 0x022000
|
||||
|
||||
|
||||
|
||||
#define SHIFTMOD 2
|
||||
#define SHIFTFIFO 9
|
||||
|
||||
/** for PCB_REV_REG */
|
||||
#define DETECTOR_TYPE_MASK 0xFF000000
|
||||
#define DETECTOR_TYPE_OFFSET 24
|
||||
#define BOARD_REVISION_MASK 0xFFFFFF
|
||||
#define MOENCH03_MODULE_ID 2
|
||||
#define JUNGFRAU_MODULE_ID 1
|
||||
#define JUNGFRAU_CTB_ID 3
|
||||
|
||||
|
||||
|
||||
|
||||
/* for control register (16bit only)*/
|
||||
#define START_ACQ_BIT 0x0001
|
||||
#define STOP_ACQ_BIT 0x0002
|
||||
#define START_FIFOTEST_BIT 0x0004 // ?????
|
||||
#define STOP_FIFOTEST_BIT 0x0008 // ??????
|
||||
#define START_READOUT_BIT 0x0010
|
||||
#define STOP_READOUT_BIT 0x0020
|
||||
#define START_EXPOSURE_BIT 0x0040
|
||||
#define STOP_EXPOSURE_BIT 0x0080
|
||||
#define START_TRAIN_BIT 0x0100
|
||||
#define STOP_TRAIN_BIT 0x0200
|
||||
#define FIFO_RESET_BIT 0x8000
|
||||
#define SYNC_RESET 0x0400
|
||||
#define GB10_RESET_BIT 0x0800
|
||||
#define MEM_RESET_BIT 0x1000
|
||||
|
||||
/* for status register */
|
||||
#define RUN_BUSY_BIT 0x00000001
|
||||
#define READOUT_BUSY_BIT 0x00000002
|
||||
#define FIFOTEST_BUSY_BIT 0x00000004 //????
|
||||
#define WAITING_FOR_TRIGGER_BIT 0x00000008
|
||||
#define DELAYBEFORE_BIT 0x00000010
|
||||
#define DELAYAFTER_BIT 0x00000020
|
||||
#define EXPOSING_BIT 0x00000040
|
||||
#define COUNT_ENABLE_BIT 0x00000080
|
||||
#define READSTATE_0_BIT 0x00000100
|
||||
#define READSTATE_1_BIT 0x00000200
|
||||
#define READSTATE_2_BIT 0x00000400
|
||||
#define LAM_BIT 0x00000400 // error!
|
||||
#define SOME_FIFO_FULL_BIT 0x00000800 // error!
|
||||
|
||||
|
||||
|
||||
#define RUNSTATE_0_BIT 0x00001000
|
||||
#define RUNSTATE_1_BIT 0x00002000
|
||||
#define RUNSTATE_2_BIT 0x00004000
|
||||
#define STOPPED_BIT 0x00008000 // stopped!
|
||||
#define ALL_FIFO_EMPTY_BIT 0x00010000 // data ready
|
||||
#define RUNMACHINE_BUSY_BIT 0x00020000
|
||||
#define READMACHINE_BUSY_BIT 0x00040000
|
||||
#define PLL_RECONFIG_BUSY 0x00100000
|
||||
|
||||
|
||||
|
||||
/* for fifo status register */
|
||||
#define FIFO_ENABLED_BIT 0x80000000
|
||||
#define FIFO_DISABLED_BIT 0x01000000
|
||||
#define FIFO_ERROR_BIT 0x08000000
|
||||
#define FIFO_EMPTY_BIT 0x04000000
|
||||
#define FIFO_DATA_READY_BIT 0x02000000
|
||||
#define FIFO_COUNTER_MASK 0x000001ff
|
||||
#define FIFO_NM_MASK 0x00e00000
|
||||
#define FIFO_NM_OFF 21
|
||||
#define FIFO_NC_MASK 0x001ffe00
|
||||
#define FIFO_NC_OFF 9
|
||||
|
||||
/* for config register *///not really used yet
|
||||
#define TOT_ENABLE_BIT 0x00000002
|
||||
#define TIMED_GATE_BIT 0x00000004
|
||||
#define CONT_RO_ENABLE_BIT 0x00080000
|
||||
#define GB10_NOT_CPU_BIT 0x00001000
|
||||
#define ADC_OUTPUT_DISABLE_BIT 0x00100
|
||||
#define DIGITAL_OUTPUT_ENABLE_BIT 0x00200
|
||||
|
||||
|
||||
/* for speed register */
|
||||
#define CLK_DIVIDER_MASK 0x000000ff
|
||||
#define CLK_DIVIDER_OFFSET 0
|
||||
#define SET_LENGTH_MASK 0x00000f00
|
||||
#define SET_LENGTH_OFFSET 8
|
||||
#define WAIT_STATES_MASK 0x0000f000
|
||||
#define WAIT_STATES_OFFSET 12
|
||||
#define TOTCLK_DIVIDER_MASK 0xff000000
|
||||
#define TOTCLK_DIVIDER_OFFSET 24
|
||||
#define TOTCLK_DUTYCYCLE_MASK 0x00ff0000
|
||||
#define TOTCLK_DUTYCYCLE_OFFSET 16
|
||||
|
||||
/* for external signal register */
|
||||
#define SIGNAL_OFFSET 4
|
||||
#define SIGNAL_MASK 0xF
|
||||
#define EXT_SIG_OFF 0x0
|
||||
#define EXT_GATE_IN_ACTIVEHIGH 0x1
|
||||
#define EXT_GATE_IN_ACTIVELOW 0x2
|
||||
#define EXT_TRIG_IN_RISING 0x3
|
||||
#define EXT_TRIG_IN_FALLING 0x4
|
||||
#define EXT_RO_TRIG_IN_RISING 0x5
|
||||
#define EXT_RO_TRIG_IN_FALLING 0x6
|
||||
#define EXT_GATE_OUT_ACTIVEHIGH 0x7
|
||||
#define EXT_GATE_OUT_ACTIVELOW 0x8
|
||||
#define EXT_TRIG_OUT_RISING 0x9
|
||||
#define EXT_TRIG_OUT_FALLING 0xA
|
||||
#define EXT_RO_TRIG_OUT_RISING 0xB
|
||||
#define EXT_RO_TRIG_OUT_FALLING 0xC
|
||||
|
||||
|
||||
|
||||
/* for temperature register */
|
||||
#define T1_CLK_BIT 0x00000001
|
||||
#define T1_CS_BIT 0x00000002
|
||||
#define T2_CLK_BIT 0x00000004
|
||||
#define T2_CS_BIT 0x00000008
|
||||
|
||||
|
||||
|
||||
/* fifo control register */
|
||||
//#define FIFO_RESET_BIT 0x00000001
|
||||
//#define FIFO_DISABLE_TOGGLE_BIT 0x00000002
|
||||
|
||||
|
||||
//chip shiftin register meaning
|
||||
#define OUTMUX_OFF 20
|
||||
#define OUTMUX_MASK 0x1f
|
||||
#define PROBES_OFF 4
|
||||
#define PROBES_MASK 0x7f
|
||||
#define OUTBUF_OFF 0
|
||||
#define OUTBUF_MASK 1
|
||||
|
||||
|
||||
/* multi purpose register */
|
||||
#define PHASE_STEP_BIT 0x00000001
|
||||
#define PHASE_STEP_OFFSET 0
|
||||
// #define xxx_BIT 0x00000002
|
||||
#define RESET_COUNTER_BIT 0x00000004
|
||||
#define RESET_COUNTER_OFFSET 2
|
||||
//#define xxx_BIT 0x00000008
|
||||
//#define xxx_BIT 0x00000010
|
||||
#define SW1_BIT 0x00000020
|
||||
#define SW1_OFFSET 5
|
||||
#define WRITE_BACK_BIT 0x00000040
|
||||
#define WRITE_BACK_OFFSET 6
|
||||
#define RESET_BIT 0x00000080
|
||||
#define RESET_OFFSET 7
|
||||
#define ENET_RESETN_BIT 0x00000800
|
||||
#define ENET_RESETN_OFFSET 11
|
||||
#define INT_RSTN_BIT 0x00002000
|
||||
#define INT_RSTN_OFFSET 13
|
||||
#define DIGITAL_TEST_BIT 0x00004000
|
||||
#define DIGITAL_TEST_OFFSET 14
|
||||
//#define CHANGE_AT_POWER_ON_BIT 0x00008000
|
||||
//#define CHANGE_AT_POWER_ON_OFFSET 15
|
||||
|
||||
|
||||
/* settings/conf gain register */
|
||||
#define GAIN_MASK 0x0000000f
|
||||
#define GAIN_OFFSET 0
|
||||
#define SETTINGS_MASK 0x000000f0
|
||||
#define SETTINGS_OFFSET 4
|
||||
|
||||
|
||||
/* CHIP_OF_INTRST_REG */
|
||||
#define CHANNEL_MASK 0xffff0000
|
||||
#define CHANNEL_OFFSET 16
|
||||
#define ACTIVE_ADC_MASK 0x0000001f
|
||||
|
||||
|
||||
|
||||
/**ADC SYNC CLEAN FIFO*/
|
||||
#define ADCSYNC_CLEAN_FIFO_BITS 0x300000
|
||||
#define CLEAN_FIFO_MASK 0x0fffff
|
||||
|
||||
|
||||
|
||||
|
||||
enum {run_clk_c, adc_clk_c, sync_clk_c, dbit_clk_c};
|
||||
|
||||
|
||||
|
||||
|
||||
#define PLL_CNTR_ADDR_OFF 16 //PLL_CNTR_REG bits 21 downto 16 represent the counter address
|
||||
|
||||
#define PLL_CNTR_RECONFIG_RESET_BIT 0
|
||||
#define PLL_CNTR_READ_BIT 1
|
||||
#define PLL_CNTR_WRITE_BIT 2
|
||||
#define PLL_CNTR_PLL_RESET_BIT 3
|
||||
|
||||
|
||||
#define PLL_CNTR_PHASE_EN_BIT 8
|
||||
#define PLL_CNTR_UPDN_BIT 9
|
||||
#define PLL_CNTR_CNTSEL_OFF 10
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define PLL_MODE_REG 0x0
|
||||
#define PLL_STATUS_REG 0x1
|
||||
#define PLL_START_REG 0x2
|
||||
#define PLL_N_COUNTER_REG 0x3
|
||||
#define PLL_M_COUNTER_REG 0x4
|
||||
#define PLL_C_COUNTER_REG 0x5 //which ccounter stands in param 22:18; 7:0 lowcount 15:8 highcount; 16 bypassenable; 17 oddivision
|
||||
#define PLL_PHASE_SHIFT_REG 0x6 // which ccounter stands in param 16:20; 21 updown (1 up, 0 down)
|
||||
#define PLL_K_COUNTER_REG 0x7
|
||||
#define PLL_BANDWIDTH_REG 0x8
|
||||
#define PLL_CHARGEPUMP_REG 0x9
|
||||
#define PLL_VCO_DIV_REG 0x1c
|
||||
#define PLL_MIF_REG 0x1f
|
||||
|
||||
#define PPL_M_CNT_PARAM_DEFAULT 0x4040
|
||||
#define PPL_N_CNT_PARAM_DEFAULT 0x20D0C
|
||||
#define PPL_C0_CNT_PARAM_DEFAULT 0x20D0C
|
||||
#define PPL_C1_CNT_PARAM_DEFAULT 0xA0A0
|
||||
#define PPL_C2_CNT_PARAM_DEFAULT 0x20D0C
|
||||
#define PPL_C3_CNT_PARAM_DEFAULT 0x0808
|
||||
#define PPL_BW_PARAM_DEFAULT 0x2EE0
|
||||
#define PPL_VCO_PARAM_DEFAULT 0x1
|
||||
|
||||
#define NEW_PLL_RECONFIG
|
||||
|
||||
#ifdef NEW_PLL_RECONFIG
|
||||
#define PLL_VCO_FREQ_MHZ 400//480//800
|
||||
#else
|
||||
#define PLL_VCO_FREQ_MHZ 480//800
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
GBE parameter and control registers definitions
|
||||
*/
|
||||
|
||||
#define GBE_CTRL_WSTROBE 0
|
||||
#define GBE_CTRL_VAR_OFFSET 16
|
||||
#define GBE_CTRL_VAR_MASK 0XF
|
||||
#define GBE_CTRL_RAMADDR_OFFSET 24
|
||||
#define GBE_CTRL_RAMADDR_MASK 0X3F
|
||||
#define GBE_CTRL_INTERFACE 23
|
||||
|
||||
#define RX_UDP_IP_ADDR 0
|
||||
#define RX_UDP_PORTS_ADDR 1
|
||||
#define RX_UDP_MAC_L_ADDR 2
|
||||
#define RX_UDP_MAC_H_ADDR 3
|
||||
#define IPCHECKSUM_ADDR 4
|
||||
#define GBE_DELAY_ADDR 5
|
||||
#define GBE_RESERVED1_ADDR 6
|
||||
#define GBE_RESERVED2_ADDR 7
|
||||
#define DETECTOR_MAC_L_ADDR 8
|
||||
#define DETECTOR_MAC_H_ADDR 9
|
||||
#define DETECTOR_IP_ADDR 10
|
||||
|
||||
|
||||
|
||||
/**------------------
|
||||
-- pattern registers definitions
|
||||
--------------------------------------------- */
|
||||
#define IOSIGNALS_MASK 0xfffffffffffff
|
||||
#define ADC_ENABLE_BIT 63
|
||||
#define APATTERN_MASK 0xffff
|
||||
#define ASTART_OFFSET 0
|
||||
#define ASTOP_OFFSET 16
|
||||
#define PATTERN_CTRL_WRITE_BIT 0
|
||||
#define PATTERN_CTRL_READ_BIT 1
|
||||
#define PATTERN_CTRL_ADDR_OFFSET 16
|
||||
#define MAX_PATTERN_LENGTH 1024
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -1,93 +0,0 @@
|
||||
/*
|
||||
* mythen3Server_defs.h
|
||||
*
|
||||
* Created on: Jan 24, 2013
|
||||
* Author: l_maliakal_d, changed my Marie A.
|
||||
*/
|
||||
|
||||
#ifndef SLSDETECTORSERVER_DEFS_H_
|
||||
#define SLSDETECTORSERVER_DEFS_H_
|
||||
|
||||
#include "sls_detector_defs.h"
|
||||
#include <stdint.h>
|
||||
|
||||
/** This is only an example file!!! */
|
||||
|
||||
|
||||
|
||||
#define GOODBYE (-200)
|
||||
enum ADCINDEX {TEMP_FPGA, TEMP_ADC};
|
||||
enum DACINDEX {vIpre, vIbias, Vrf, VrfSh, vIinSh, VdcSh, Vth2, VPL, Vth1, Vth3, Vtrim, casSh, cas, vIbiasSh, vIcin, VPH, NC, vIpreOut}; // Mythen 3.01
|
||||
#define DEFAULT_DAC_VALS { 2150, /* vIpre */ \
|
||||
1200, /* vIbias */ \
|
||||
900, /* Vrf */ \
|
||||
1050, /* VrfSh */ \
|
||||
1400, /* vIinSh */ \
|
||||
655, /* VdcSh */ \
|
||||
850, /* Vth2 */ \
|
||||
1400, /* VPL */ \
|
||||
850, /* Vth1 */ \
|
||||
850, /* Vth3 */ \
|
||||
2294, /* Vtrim */ \
|
||||
983, /* casSh */ \
|
||||
1474, /* cas */ \
|
||||
1200, /* vIbiasSh */ \
|
||||
1600, /* vIcin */ \
|
||||
1520, /* VPH */ \
|
||||
0, /* NC */ \
|
||||
1000 /* vIpreOut */ \
|
||||
};
|
||||
|
||||
/*Hardware Definitions
|
||||
#define NMAXMOD (1)
|
||||
#define NMOD (1)
|
||||
#define NCHAN (256 * 256)
|
||||
#define NCHIP (4)
|
||||
#define NADC (0)
|
||||
#define NDAC (16)
|
||||
#define NGAIN (0)
|
||||
#define NOFFSET (0)
|
||||
*/
|
||||
|
||||
/** Default Parameters */
|
||||
#define DEFAULT_EXPTIME (10*1000) //ns
|
||||
|
||||
/* Hardware Definitions */
|
||||
//#define NMAXMOD (1)
|
||||
#define NMOD (1)
|
||||
//#define NCHAN (256 * 256)
|
||||
//#define NCHIP (8)
|
||||
//#define NADC (0)
|
||||
#define NDAC (8)
|
||||
#define NDAC_OLDBOARD (16)
|
||||
#define DYNAMIC_RANGE (16)
|
||||
#define NUM_BITS_PER_PIXEL (DYNAMIC_RANGE / 8)
|
||||
#define DATA_BYTES (NCHIP * NCHAN * NUM_BITS_PER_PIXEL)
|
||||
#define IP_PACKETSIZE (0x2052)
|
||||
#define CLK_RUN (40) /* MHz */
|
||||
#define CLK_SYNC (20) /* MHz */
|
||||
|
||||
|
||||
// Hardware definitions
|
||||
|
||||
#define NCHAN 36
|
||||
#define NCHIP 1
|
||||
#define NADC 9 //
|
||||
|
||||
/* #ifdef CTB */
|
||||
/* #define NDAC 24 */
|
||||
/* #define NPWR 5 */
|
||||
/* #else */
|
||||
/* #define NDAC 16 */
|
||||
/* #define NPWR 0 */
|
||||
/* #endif */
|
||||
#define DAC_CMD_OFF 20
|
||||
|
||||
#define NMAXMODX 1
|
||||
#define NMAXMODY 1
|
||||
#define NMAXMOD (NMAXMODX*NMAXMODY)
|
||||
|
||||
#define NCHANS (NCHAN*NCHIP*NMAXMOD)
|
||||
#define NDACS (NDAC*NMAXMOD)
|
||||
|
||||
#endif /* SLSDETECTORSERVER_DEFS_H_ */
|
File diff suppressed because it is too large
Load Diff
@ -1,94 +0,0 @@
|
||||
#ifndef SERVER_FUNCS_H
|
||||
#define SERVER_FUNCS_H
|
||||
|
||||
#include "sls_receiver_defs.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
// initialization functions
|
||||
int printSocketReadError();
|
||||
void basictests(int);
|
||||
void init_detector(int);
|
||||
// void init_detector(int,int);
|
||||
int decode_function(int);
|
||||
const char* getFunctionName(enum detFuncs func);
|
||||
void function_table();
|
||||
int M_nofunc(int);
|
||||
|
||||
// functions called by client
|
||||
int exec_command(int);
|
||||
int get_error(int);
|
||||
int get_detector_type(int);
|
||||
int set_number_of_modules(int);
|
||||
int get_max_number_of_modules(int);
|
||||
int set_external_signal_flag(int);
|
||||
int set_external_communication_mode(int);
|
||||
int get_id(int);
|
||||
int digital_test(int);
|
||||
int analog_test(int);
|
||||
int enable_analog_out(int);
|
||||
int calibration_pulse(int);
|
||||
int set_dac(int);
|
||||
int get_adc(int);
|
||||
int write_register(int);
|
||||
int read_register(int);
|
||||
int write_memory(int);
|
||||
int read_memory(int);
|
||||
int set_channel(int);
|
||||
int get_channel(int);
|
||||
int set_all_channels(int);
|
||||
int set_chip(int);
|
||||
int get_chip(int);
|
||||
int set_all_chips(int);
|
||||
int set_module(int);
|
||||
int get_module(int);
|
||||
int set_all_modules(int);
|
||||
int set_settings(int);
|
||||
int get_threshold_energy(int);
|
||||
int set_threshold_energy(int);
|
||||
int start_acquisition(int);
|
||||
int stop_acquisition(int);
|
||||
int start_readout(int);
|
||||
int get_run_status(int);
|
||||
int start_and_read_all(int);
|
||||
int read_frame(int);
|
||||
int read_all(int);
|
||||
int set_timer(int);
|
||||
int get_time_left(int);
|
||||
int set_dynamic_range(int);
|
||||
int set_readout_flags(int);
|
||||
int set_roi(int);
|
||||
int set_speed(int);
|
||||
int execute_trimming(int);
|
||||
int exit_server(int);
|
||||
int lock_server(int);
|
||||
int get_last_client_ip(int);
|
||||
int set_port(int);
|
||||
int update_client(int);
|
||||
int send_update(int);
|
||||
int configure_mac(int);
|
||||
int load_image(int);
|
||||
int set_master(int);
|
||||
int set_synchronization(int);
|
||||
int read_counter_block(int);
|
||||
int reset_counter_block(int);
|
||||
int calibrate_pedestal(int);
|
||||
int enable_ten_giga(int);
|
||||
int set_all_trimbits(int);
|
||||
int set_ctb_pattern(int);
|
||||
int write_adc_register(int);
|
||||
int set_counter_bit(int);
|
||||
int pulse_pixel(int);
|
||||
int pulse_pixel_and_move(int);
|
||||
int pulse_chip(int);
|
||||
int set_rate_correct(int);
|
||||
int get_rate_correct(int);
|
||||
int set_network_parameter(int);
|
||||
int program_fpga(int);
|
||||
int reset_fpga(int);
|
||||
int power_chip(int);
|
||||
int set_activate(int);
|
||||
int prepare_acquisition(int);
|
||||
int cleanup_acquisition(int);
|
||||
|
||||
|
||||
#endif
|
@ -1,178 +0,0 @@
|
||||
#ifndef PROGRAM_FPGA_H
|
||||
#define PROGRAM_FPGA_H
|
||||
|
||||
#include "ansi.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h> // usleep
|
||||
#include <string.h>
|
||||
|
||||
|
||||
/* global variables */
|
||||
#define CTRL_SRVR_INIT_TIME_US (300 * 1000)
|
||||
int gpioDefined=0;
|
||||
char mtdvalue[10];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Define GPIO pins if not defined
|
||||
*/
|
||||
void defineGPIOpins(){
|
||||
if (!gpioDefined) {
|
||||
//define the gpio pins
|
||||
system("echo 7 > /sys/class/gpio/export");
|
||||
system("echo 9 > /sys/class/gpio/export");
|
||||
//define their direction
|
||||
system("echo in > /sys/class/gpio/gpio7/direction");
|
||||
system("echo out > /sys/class/gpio/gpio9/direction");
|
||||
printf("gpio pins defined\n");
|
||||
gpioDefined = 1;
|
||||
}else printf("gpio pins already defined earlier\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify FPGA to not touch flash
|
||||
*/
|
||||
void FPGAdontTouchFlash(){
|
||||
//tell FPGA to not touch flash
|
||||
system("echo 0 > /sys/class/gpio/gpio9/value");
|
||||
//usleep(100*1000);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Notify FPGA to program from flash
|
||||
*/
|
||||
void FPGATouchFlash(){
|
||||
//tell FPGA to touch flash to program itself
|
||||
system("echo 1 > /sys/class/gpio/gpio9/value");
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset FPGA
|
||||
*/
|
||||
void resetFPGA(){
|
||||
cprintf(BLUE,"\n*** Reseting FPGA ***\n");
|
||||
FPGAdontTouchFlash();
|
||||
FPGATouchFlash();
|
||||
usleep(CTRL_SRVR_INIT_TIME_US);
|
||||
}
|
||||
|
||||
/**
|
||||
* Erasing flash
|
||||
*/
|
||||
void eraseFlash(){
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("\nErasing Flash\n");
|
||||
#endif
|
||||
char command[255];
|
||||
sprintf(command,"flash_eraseall %s",mtdvalue);
|
||||
system(command);
|
||||
printf("flash erased\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Open the drive to copy program and
|
||||
* notify FPGA not to touch the program
|
||||
* @param filefp pointer to flash
|
||||
* @return 0 for success, 1 for fail (cannot open file for writing program)
|
||||
*/
|
||||
int startWritingFPGAprogram(FILE** filefp){
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("\nStart Writing of FPGA program\n");
|
||||
#endif
|
||||
|
||||
//getting the drive
|
||||
char output[255];
|
||||
FILE* fp = popen("awk \'$4== \"\\\"bitfile(spi)\\\"\" {print $1}\' /proc/mtd", "r");
|
||||
fgets(output, sizeof(output), fp);
|
||||
pclose(fp);
|
||||
strcpy(mtdvalue,"/dev/");
|
||||
char* pch = strtok(output,":");
|
||||
if(pch == NULL){
|
||||
cprintf(RED,"Could not get mtd value\n");
|
||||
return FAIL;
|
||||
}
|
||||
strcat(mtdvalue,pch);
|
||||
printf ("\nFlash drive found: %s\n",mtdvalue);
|
||||
|
||||
FPGAdontTouchFlash();
|
||||
|
||||
//writing the program to flash
|
||||
*filefp = fopen(mtdvalue, "w");
|
||||
if(*filefp == NULL){
|
||||
cprintf(RED,"Unable to open %s in write mode\n",mtdvalue);
|
||||
return 1;
|
||||
}
|
||||
printf("flash ready for writing\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* When done writing the program, close file pointer and
|
||||
* notify FPGA to pick up the program from flash
|
||||
* @param filefp pointer to flash
|
||||
*/
|
||||
void stopWritingFPGAprogram(FILE* filefp){
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("\nStopping of writing FPGA program\n");
|
||||
#endif
|
||||
|
||||
int wait = 0;
|
||||
if(filefp!= NULL){
|
||||
fclose(filefp);
|
||||
wait = 1;
|
||||
}
|
||||
|
||||
//touch and program
|
||||
FPGATouchFlash();
|
||||
|
||||
if(wait){
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("Waiting for FPGA to program from flash\n");
|
||||
#endif
|
||||
//waiting for success or done
|
||||
char output[255];
|
||||
int res=0;
|
||||
while(res == 0){
|
||||
FILE* sysFile = popen("cat /sys/class/gpio/gpio7/value", "r");
|
||||
fgets(output, sizeof(output), sysFile);
|
||||
pclose(sysFile);
|
||||
sscanf(output,"%d",&res);
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("gpi07 returned %d\n",res);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
printf("FPGA has picked up the program from flash\n\n");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Write FPGA Program to flash
|
||||
* @param fpgasrc source program
|
||||
* @param fsize size of program
|
||||
* @param filefp pointer to flash
|
||||
* @return 0 for success, 1 for fail (cannot write)
|
||||
*/
|
||||
int writeFPGAProgram(char* fpgasrc, size_t fsize, FILE* filefp){
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("\nWriting of FPGA Program\n");
|
||||
cprintf(BLUE,"address of fpgasrc:%p\n",(void *)fpgasrc);
|
||||
cprintf(BLUE,"fsize:%d\n",fsize);
|
||||
cprintf(BLUE,"pointer:%p\n",(void*)filefp);
|
||||
#endif
|
||||
|
||||
if(fwrite((void*)fpgasrc , sizeof(char) , fsize , filefp )!= fsize){
|
||||
cprintf(RED,"Could not write FPGA source to flash\n");
|
||||
return 1;
|
||||
}
|
||||
#ifdef VERY_VERBOSE
|
||||
cprintf(BLUE, "program written to flash\n");
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif //PROGRAM_FPGA_H
|
1
slsDetectorSoftware/mythen3DetectorServer/programfpga.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/programfpga.h
Symbolic link
@ -0,0 +1 @@
|
||||
../slsDetectorServer/programfpga.h
|
1304
slsDetectorSoftware/mythen3DetectorServer/slsDetectorFunctionList.c
Normal file
1304
slsDetectorSoftware/mythen3DetectorServer/slsDetectorFunctionList.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1 @@
|
||||
../slsDetectorServer/slsDetectorFunctionList.h
|
@ -1,120 +0,0 @@
|
||||
/* A simple server in the internet domain using TCP
|
||||
The port number is passed as an argument */
|
||||
|
||||
#include "sls_detector_defs.h"
|
||||
#include "mythen3Server_defs.h"
|
||||
|
||||
#include "communication_funcs.h"
|
||||
#include "mythen3Server_funcs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
extern int sockfd;
|
||||
|
||||
|
||||
void error(char *msg){
|
||||
perror(msg);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]){
|
||||
int portno, b;
|
||||
int retval=OK;
|
||||
int sd, fd;
|
||||
int debugflag = 0;
|
||||
|
||||
// if socket crash, ignores SISPIPE, prevents global signal handler
|
||||
// subsequent read/write to socket gives error - must handle locally
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
// circumvent the basic tests
|
||||
if(argc > 1) {
|
||||
if(!strcasecmp(argv[1],"-debug")){
|
||||
debugflag = 1;
|
||||
argc=1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef STOP_SERVER
|
||||
char cmd[100];
|
||||
#endif
|
||||
if (argc==1) {
|
||||
portno = DEFAULT_PORTNO;
|
||||
cprintf(BLUE,
|
||||
"********************************************************\n"
|
||||
"********* opening control server on port %d **********\n"
|
||||
"********************************************************\n\n"
|
||||
, portno);
|
||||
b=1;
|
||||
basictests(debugflag);
|
||||
#ifdef STOP_SERVER
|
||||
sprintf(cmd,"%s %d &",argv[0],DEFAULT_PORTNO+1);
|
||||
//cprintf(BLUE,"cmd:%s\n", cmd);
|
||||
system(cmd);
|
||||
#endif
|
||||
} else {
|
||||
portno = DEFAULT_PORTNO+1;
|
||||
if ( sscanf(argv[1],"%d",&portno) == 0) {
|
||||
printf("could not open stop server: unknown port\n");
|
||||
return 1;
|
||||
}
|
||||
cprintf(BLUE,
|
||||
"********************************************************\n"
|
||||
"*********** opening stop server on port %d ***********\n"
|
||||
"********************************************************\n\n"
|
||||
, portno);
|
||||
b=0;
|
||||
}
|
||||
|
||||
init_detector(b); //defined in slsDetectorServer_funcs
|
||||
|
||||
sd=bindSocket(portno); //defined in communication_funcs
|
||||
sockfd=sd;
|
||||
if (getServerError(sd)) { //defined in communication_funcs
|
||||
printf("server error!\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* assign function table */
|
||||
function_table(); //defined in slsDetectorServer_funcs
|
||||
#ifdef VERBOSE
|
||||
printf("function table assigned \n");
|
||||
#endif
|
||||
|
||||
|
||||
printf("\nReady...\n\n");
|
||||
|
||||
/* waits for connection */
|
||||
while(retval!=GOODBYE) {
|
||||
#ifdef VERBOSE
|
||||
printf("\n");
|
||||
#endif
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("Waiting for client call\n");
|
||||
#endif
|
||||
fd=acceptConnection(sockfd); //defined in communication_funcs
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("Connection accepted\n");
|
||||
#endif
|
||||
if (fd>0) {
|
||||
retval=decode_function(fd); //defined in slsDetectorServer_funcs
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("function executed\n");
|
||||
#endif
|
||||
closeConnection(fd); //defined in communication_funcs
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("connection closed\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
exitServer(sockfd); //defined in communication_funcs
|
||||
printf("Goodbye!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
1
slsDetectorSoftware/mythen3DetectorServer/slsDetectorServer.c
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/slsDetectorServer.c
Symbolic link
@ -0,0 +1 @@
|
||||
../slsDetectorServer/slsDetectorServer.c
|
@ -0,0 +1,167 @@
|
||||
/*
|
||||
* mythen3Server_defs.h
|
||||
*
|
||||
* Created on: Jan 24, 2013
|
||||
* Author: l_maliakal_d, changed my Marie A.
|
||||
*/
|
||||
|
||||
#ifndef SLSDETECTORSERVER_DEFS_H_
|
||||
#define SLSDETECTORSERVER_DEFS_H_
|
||||
|
||||
#include "sls_detector_defs.h"
|
||||
#include <stdint.h>
|
||||
|
||||
/** This is only an example file!!! */
|
||||
|
||||
|
||||
|
||||
#define GOODBYE (-200)
|
||||
enum DACINDEX {vIpre, vIbias, Vrf, VrfSh, vIinSh, VdcSh, Vth2, VPL, Vth1, Vth3, Vtrim, casSh, cas, vIbiasSh, vIcin, VPH, NC, vIpreOut, V_D, V_CHIP, V_C, V_B, V_A, V_IO, V_LIM}; // Mythen 3.01
|
||||
enum PWRINDEX {PWR_IO, PWR_A, PWR_B, PWR_C, PWR_D, PWR_CHIP=-1, PWR_LIMIT=-1};
|
||||
enum CLKINDEX {RUN_CLK_C, ADC_CLK_C, SYNC_CLK_C, DBIT_CLK_C};
|
||||
|
||||
#define DEFAULT_DAC_VALS { 2150, /* vIpre */ \
|
||||
1200, /* vIbias */ \
|
||||
900, /* Vrf */ \
|
||||
1050, /* VrfSh */ \
|
||||
1400, /* vIinSh */ \
|
||||
655, /* VdcSh */ \
|
||||
850, /* Vth2 */ \
|
||||
1400, /* VPL */ \
|
||||
850, /* Vth1 */ \
|
||||
850, /* Vth3 */ \
|
||||
2294, /* Vtrim */ \
|
||||
983, /* casSh */ \
|
||||
1474, /* cas */ \
|
||||
1200, /* vIbiasSh */ \
|
||||
1600, /* vIcin */ \
|
||||
1520, /* VPH */ \
|
||||
0, /* NC */ \
|
||||
1000 /* vIpreOut */ \
|
||||
0 /* V_D */ \
|
||||
0 /* V_CHIP */ \
|
||||
0 /* V_C */ \
|
||||
1335 /* V_B */ \
|
||||
1335 /* V_A */ \
|
||||
1350 /* V_IO */ \
|
||||
};
|
||||
|
||||
#define DEFAULT_DAC_NAMES { "vIpre", \
|
||||
"vIbias", \
|
||||
"Vrf", \
|
||||
"VrfSh", \
|
||||
"vIinSh", \
|
||||
"VdcSh", \
|
||||
"Vth2", \
|
||||
"VPL", \
|
||||
"Vth1", \
|
||||
"Vth3", \
|
||||
"Vtrim", \
|
||||
"casSh", \
|
||||
"cas", \
|
||||
"vIbiasSh", \
|
||||
"vIcin", \
|
||||
"VPH", \
|
||||
"NC", \
|
||||
"vIpreOut" \
|
||||
"v_d" \
|
||||
"v_chip" \
|
||||
"v_c" \
|
||||
"v_b" \
|
||||
"v_a" \
|
||||
"v_io" \
|
||||
};
|
||||
|
||||
/*Hardware Definitions */
|
||||
#define NMAXMOD (1)
|
||||
#define NMOD (1)
|
||||
#define NCHAN (32)
|
||||
#define NCHIP (1)
|
||||
#define NADC (0)
|
||||
#define NDAC (24)
|
||||
#define NDAC_PER_SET (8)
|
||||
|
||||
|
||||
#define NPWR (5)
|
||||
#define MAX_DACVOLTVAL (2500) //mV
|
||||
#define MAX_DACVAL (4096) // dac val
|
||||
#define MAX_VCHIPVAL (2700) //mV /** name ???? */
|
||||
#define MIN_VCHIP_OFSTVAL (200) //mV /** name ???? */
|
||||
#define MIN_VCHIP_VAL (600) //mV /** name ???? */
|
||||
|
||||
|
||||
/** Default Parameters */
|
||||
#define DEFAULT_NUM_FRAMES (1)
|
||||
#define DEFAULT_NUM_CYCLES (1)
|
||||
#define DEFAULT_EXPTIME (200*1000) //ns
|
||||
#define DEFAULT_PERIOD (1*1000*1000) //ns
|
||||
#define DEFAULT_DELAY (0)
|
||||
#define DEFAULT_HIGH_VOLTAGE (0)
|
||||
#define DEFAULT_TIMING_MODE (AUTO_TIMING)
|
||||
|
||||
|
||||
/* Defines in the Firmware */
|
||||
#define FIX_PATT_VAL (0xACDC1980)
|
||||
|
||||
/* LTC2620 DAC DEFINES */
|
||||
#define LTC2620_DAC_CMD_OFST (20)
|
||||
#define LTC2620_DAC_CMD_MSK (0x0000000F << LTC2620_DAC_CMD_OFST)
|
||||
#define LTC2620_DAC_ADDR_OFST (16)
|
||||
#define LTC2620_DAC_ADDR_MSK (0x0000000F << LTC2620_DAC_ADDR_OFST)
|
||||
#define LTC2620_DAC_DATA_OFST (4)
|
||||
#define LTC2620_DAC_DATA_MSK (0x00000FFF << LTC2620_DAC_DATA_OFST)
|
||||
|
||||
#define LTC2620_DAC_CMD_WRITE (0x00000000 << LTC2620_DAC_CMD_OFST)
|
||||
#define LTC2620_DAC_CMD_SET (0x00000003 << LTC2620_DAC_CMD_OFST)
|
||||
#define LTC2620_DAC_CMD_POWER_DOWN (0x00000004 << LTC2620_DAC_CMD_OFST)
|
||||
#define LTC2620_DAC_NUMBITS (24)
|
||||
|
||||
/** PLL Reconfiguration Registers */
|
||||
//https://www.altera.com/documentation/mcn1424769382940.html
|
||||
#define PLL_MODE_REG (0x00)
|
||||
#define PLL_STATUS_REG (0x01)
|
||||
#define PLL_START_REG (0x02)
|
||||
#define PLL_N_COUNTER_REG (0x03)
|
||||
#define PLL_M_COUNTER_REG (0x04)
|
||||
#define PLL_C_COUNTER_REG (0x05)
|
||||
#define PLL_PHASE_SHIFT_REG (0x06)
|
||||
|
||||
#define PLL_SHIFT_NUM_SHIFTS_OFST (0)
|
||||
#define PLL_SHIFT_NUM_SHIFTS_MSK (0x0000FFFF << PLL_SHIFT_NUM_SHIFTS_OFST)
|
||||
|
||||
#define PLL_SHIFT_CNT_SELECT_OFST (16)
|
||||
#define PLL_SHIFT_CNT_SELECT_MSK (0x0000001F << PLL_SHIFT_CNT_SELECT_OFST)
|
||||
#define PLL_SHIFT_CNT_SLCT_C0_VAL ((0x0 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C1_VAL ((0x1 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C2_VAL ((0x2 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C3_VAL ((0x3 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C4_VAL ((0x4 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C5_VAL ((0x5 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C6_VAL ((0x6 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C7_VAL ((0x7 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C8_VAL ((0x8 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C9_VAL ((0x9 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C10_VAL ((0x10 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C11_VAL ((0x11 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C12_VAL ((0x12 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C13_VAL ((0x13 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C14_VAL ((0x14 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C15_VAL ((0x15 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C16_VAL ((0x16 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
#define PLL_SHIFT_CNT_SLCT_C17_VAL ((0x17 << PLL_SHIFT_CNT_SELECT_OFST) & PLL_SHIFT_CNT_SELECT_MSK)
|
||||
|
||||
#define PLL_SHIFT_UP_DOWN_OFST (21)
|
||||
#define PLL_SHIFT_UP_DOWN_MSK (0x00000001 << PLL_SHIFT_UP_DOWN_OFST)
|
||||
#define PLL_SHIFT_UP_DOWN_NEG_VAL ((0x0 << PLL_SHIFT_UP_DOWN_OFST) & PLL_SHIFT_UP_DOWN_MSK)
|
||||
#define PLL_SHIFT_UP_DOWN_POS_VAL ((0x1 << PLL_SHIFT_UP_DOWN_OFST) & PLL_SHIFT_UP_DOWN_MSK)
|
||||
|
||||
#define PLL_K_COUNTER_REG (0x07)
|
||||
#define PLL_BANDWIDTH_REG (0x08)
|
||||
#define PLL_CHARGEPUMP_REG (0x09)
|
||||
#define PLL_VCO_DIV_REG (0x1c)
|
||||
#define PLL_MIF_REG (0x1f)
|
||||
|
||||
#define PLL_VCO_FREQ_MHZ 400
|
||||
|
||||
|
||||
#endif /* SLSDETECTORSERVER_DEFS_H_ */
|
@ -0,0 +1 @@
|
||||
../slsDetectorServer/slsDetectorServer_funcs.c
|
@ -0,0 +1 @@
|
||||
../slsDetectorServer/slsDetectorServer_funcs.h
|
@ -1,46 +0,0 @@
|
||||
/* A simple server in the internet domain using TCP
|
||||
The port number is passed as an argument */
|
||||
#include "communication_funcs.h"
|
||||
|
||||
#include "slsDetectorFunctionList.h"/*#include "slsDetector_firmware.h" for the time being*/
|
||||
#include "slsDetectorServer_defs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int sockfd;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int portno;
|
||||
int retval=0;
|
||||
int sd,fd;
|
||||
|
||||
portno = DEFAULT_PORTNO;
|
||||
|
||||
|
||||
sd=bindSocket(portno); //defined in communication_funcs
|
||||
if (getServerError(sd)) //defined in communication_funcs
|
||||
return -1;
|
||||
|
||||
|
||||
|
||||
/* waits for connection */
|
||||
while(retval!=GOODBYE) {
|
||||
#ifdef VERBOSE
|
||||
printf("\n");
|
||||
#endif
|
||||
#ifdef VERY_VERBOSE
|
||||
printf("Stop server: waiting for client call\n");
|
||||
#endif
|
||||
fd=acceptConnection(sd); //defined in communication_funcs
|
||||
retval=stopStateMachine();//defined in slsDetectorFirmare_funcs
|
||||
closeConnection(fd); //defined in communication_funcs
|
||||
}
|
||||
|
||||
exitServer(sd); //defined in communication_funcs
|
||||
printf("Goodbye!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
1
slsDetectorSoftware/mythen3DetectorServer/sls_detector_defs.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/sls_detector_defs.h
Symbolic link
@ -0,0 +1 @@
|
||||
../commonFiles/sls_detector_defs.h
|
1
slsDetectorSoftware/mythen3DetectorServer/sls_detector_funcs.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/sls_detector_funcs.h
Symbolic link
@ -0,0 +1 @@
|
||||
../commonFiles/sls_detector_funcs.h
|
1
slsDetectorSoftware/mythen3DetectorServer/sls_receiver_defs.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/sls_receiver_defs.h
Symbolic link
@ -0,0 +1 @@
|
||||
../../slsReceiverSoftware/include/sls_receiver_defs.h
|
1
slsDetectorSoftware/mythen3DetectorServer/sls_receiver_funcs.h
Symbolic link
1
slsDetectorSoftware/mythen3DetectorServer/sls_receiver_funcs.h
Symbolic link
@ -0,0 +1 @@
|
||||
../../slsReceiverSoftware/include/sls_receiver_funcs.h
|
31
slsDetectorSoftware/mythen3DetectorServer/updateGitVersion.sh
Executable file
31
slsDetectorSoftware/mythen3DetectorServer/updateGitVersion.sh
Executable file
@ -0,0 +1,31 @@
|
||||
SERVER=jungfrauDetectorServer
|
||||
MAINDIR=slsDetectorsPackage
|
||||
SPECDIR=slsDetectorSoftware/$SERVER
|
||||
TMPFILE=gitInfoJungfrauTmp.h
|
||||
INCLFILE=gitInfoJungfrau.h
|
||||
|
||||
|
||||
#evaluate the variables
|
||||
EVALFILE=../../evalVersionVariables.sh
|
||||
source $EVALFILE
|
||||
|
||||
|
||||
#get modified date
|
||||
#RDATE1='git log --pretty=format:"%ci" -1'
|
||||
RDATE1="find ../slsDetectorServer . -type f -exec stat --format '%Y :%y %n' '{}' \; | sort -nr | cut -d: -f2- | egrep -v 'gitInfo|bin|.git|updateGitVersion|.o' | head -n 1"
|
||||
RDATE=`eval $RDATE1`
|
||||
NEWDATE=$(sed "s/-//g" <<< $RDATE | awk '{print $1;}')
|
||||
NEWDATE=${NEWDATE/#/0x}
|
||||
|
||||
|
||||
#get old date from INCLFILE
|
||||
OLDDATE=$(more $INCLFILE | grep '#define GITDATE' | awk '{print $3}')
|
||||
|
||||
|
||||
#update INCLFILE if changes
|
||||
if [ "$OLDDATE" != "$NEWDATE" ]; then
|
||||
echo Path: ${MAINDIR}/${SPECDIR} $'\n'URL: ${GITREPO} $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${FOLDERREV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||
cd ../../
|
||||
./genVersionHeader.sh $SPECDIR/gitInfo.txt $SPECDIR/$TMPFILE $SPECDIR/$INCLFILE
|
||||
cd $WD
|
||||
fi
|
@ -16,6 +16,15 @@ void serializeToSPI(u_int32_t addr, u_int32_t val, u_int32_t csmask, int numbits
|
||||
|
||||
u_int32_t valw;
|
||||
|
||||
SPIChipSelect (valw, addr, csmask);
|
||||
|
||||
sendDataToSPI(valw, addr, val, numbitstosend, clkmask, digoutmask, digofset);
|
||||
|
||||
SPIChipDeselect(valw, addr, csmask, clkmask);
|
||||
}
|
||||
|
||||
void SPIChipSelect (u_int32_t& valw, u_int32_t addr, u_int32_t csmask) {
|
||||
|
||||
// start point
|
||||
valw = 0xffffffff; // old board compatibility (not using specific bits)
|
||||
bus_w (addr, valw);
|
||||
@ -23,8 +32,24 @@ void serializeToSPI(u_int32_t addr, u_int32_t val, u_int32_t csmask, int numbits
|
||||
// chip sel bar down
|
||||
valw &= ~csmask; /* todo with test: done a bit different, not with previous value */
|
||||
bus_w (addr, valw);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
void SPIChipDeselect (u_int32_t& valw, u_int32_t addr, u_int32_t csmask, u_int32_t clkmask) {
|
||||
// chip sel bar up
|
||||
valw |= csmask; /* todo with test: not done for spi */
|
||||
bus_w (addr, valw);
|
||||
|
||||
//clk down
|
||||
valw &= ~clkmask;
|
||||
bus_w (addr, valw);
|
||||
|
||||
// stop point = start point of course
|
||||
valw = 0xffffffff; // old board compatibility (not using specific bits)
|
||||
bus_w (addr, valw);
|
||||
}
|
||||
|
||||
void sendDataToSPI (u_int32_t& valw, u_int32_t addr, u_int32_t val, int numbitstosend, u_int32_t clkmask, u_int32_t digoutmask, int digofset) {
|
||||
int i = 0;
|
||||
for (i = 0; i < numbitstosend; ++i) {
|
||||
|
||||
@ -41,19 +66,6 @@ void serializeToSPI(u_int32_t addr, u_int32_t val, u_int32_t csmask, int numbits
|
||||
valw |= clkmask ;
|
||||
bus_w (addr, valw);
|
||||
}
|
||||
}
|
||||
|
||||
// chip sel bar up
|
||||
valw |= csmask; /* todo with test: not done for spi */
|
||||
bus_w (addr, valw);
|
||||
|
||||
//clk down
|
||||
valw &= ~clkmask;
|
||||
bus_w (addr, valw);
|
||||
|
||||
// stop point = start point of course
|
||||
valw = 0xffffffff; // old board compatibility (not using specific bits)
|
||||
bus_w (addr, valw);
|
||||
}
|
||||
|
||||
|
||||
|
@ -18,14 +18,16 @@ Here are the definitions, but the actual implementation should be done for each
|
||||
|
||||
// basic tests
|
||||
void checkFirmwareCompatibility(int flag);
|
||||
#ifdef JUNGFRAUD
|
||||
#if defined(MYTHEN3D) || defined(JUNGFRAUD)
|
||||
int checkType();
|
||||
u_int32_t testFpga(void);
|
||||
int testBus(void);
|
||||
#endif
|
||||
|
||||
#if defined(MYTHEND) || defined(JUNGFRAUD)
|
||||
#if defined(MYTHEND) || defined(JUNGFRAUD) || defined(MYTHEN3D)
|
||||
int moduleTest( enum digitalTestMode arg, int imod);
|
||||
#endif
|
||||
#if defined(MYTHEND) || defined(JUNGFRAUD)
|
||||
int detectorTest( enum digitalTestMode arg);
|
||||
#endif
|
||||
|
||||
@ -38,7 +40,9 @@ int64_t getModuleId(enum idMode arg, int imod);
|
||||
u_int16_t getHardwareVersionNumber();
|
||||
u_int16_t getHardwareSerialNumber();
|
||||
#endif
|
||||
#ifndef MYTHEN3D
|
||||
u_int32_t getDetectorNumber();
|
||||
#endif
|
||||
u_int64_t getDetectorMAC();
|
||||
u_int32_t getDetectorIP();
|
||||
|
||||
@ -66,11 +70,16 @@ uint32_t readRegister(uint32_t offset);
|
||||
|
||||
|
||||
// firmware functions (resets)
|
||||
#ifdef JUNGFRAUD
|
||||
#if defined(MYTHEN3D) || defined(JUNGFRAUD)
|
||||
int powerChip (int on);
|
||||
void cleanFifos();
|
||||
void resetCore();
|
||||
void resetPeripheral();
|
||||
int getPhase(int i);
|
||||
int configurePhase(int val, enum CLKINDEX i);
|
||||
int configureFrequency(int val, int i);
|
||||
#endif
|
||||
#ifdef JUNGFRAUD
|
||||
int adcPhase(int st);
|
||||
int getPhase();
|
||||
#endif
|
||||
@ -123,16 +132,33 @@ int setThresholdEnergy(int ev, int imod);
|
||||
#endif
|
||||
|
||||
// parameters - dac, adc, hv
|
||||
#ifdef JUNGFRAUD
|
||||
#if defined(MYTHEN3D) || defined(JUNGFRAUD)
|
||||
void serializeToSPI(u_int32_t addr, u_int32_t val, u_int32_t csmask, int numbitstosend, u_int32_t clkmask, u_int32_t digoutmask, int digofset);
|
||||
void initDac(int dacnum);
|
||||
extern void setAdc(int addr, int val); // AD9257.h
|
||||
int voltageToDac(int value);
|
||||
int dacToVoltage(unsigned int digital);
|
||||
#endif
|
||||
#ifdef MYTHEN3D
|
||||
int setPower(enum DACINDEX ind, int val);
|
||||
int powerToDac(int value, int chip);
|
||||
int dacToPower(int value, int chip);
|
||||
#endif
|
||||
|
||||
#ifdef JUNGFRAUD
|
||||
extern void setAdc(int addr, int val); // AD9257.h
|
||||
#endif
|
||||
|
||||
void setDAC(enum DACINDEX ind, int val, int imod, int mV, int retval[]);
|
||||
#ifdef MYTHEN3D
|
||||
int getVLimit();
|
||||
void setDacRegister(int dacnum,int dacvalue);
|
||||
int getDacRegister(int dacnum);
|
||||
#endif
|
||||
#ifndef MYTHEN3D
|
||||
int getADC(enum ADCINDEX ind, int imod);
|
||||
#ifndef MYTHEND
|
||||
#endif
|
||||
|
||||
#if !defined(MYTHEN3D) && !defined(MYTHEND)
|
||||
int setHighVoltage(int val);
|
||||
#endif
|
||||
|
||||
@ -149,7 +175,7 @@ enum externalCommunicationMode setTiming( enum externalCommunicationMode arg);
|
||||
#ifdef JUNGFRAUD
|
||||
long int calcChecksum(int sourceip, int destip);
|
||||
#endif
|
||||
#ifndef MYTHEND
|
||||
#if !defined(MYTHEN3D) && !defined(MYTHEND)
|
||||
int configureMAC(uint32_t destip, uint64_t destmac, uint64_t sourcemac, uint32_t sourceip, uint32_t udpport, uint32_t udpport2, int ival);
|
||||
#endif
|
||||
#if defined(JUNGFRAUD) || defined(EIGERD)
|
||||
@ -167,7 +193,7 @@ int resetCounterBlock(int startACQ);
|
||||
int calibratePedestal(int frames);
|
||||
|
||||
// jungfrau specific - pll, flashing firmware
|
||||
#elif JUNGFRAUD
|
||||
#elif defined(JUNGFRAUD) || defined(MYTHEN3D)
|
||||
void resetPLL();
|
||||
u_int32_t setPllReconfigReg(u_int32_t reg, u_int32_t val);
|
||||
void configurePll();
|
||||
|
@ -29,6 +29,8 @@ const enum detectorType myDetectorType=PICASSO;
|
||||
const enum detectorType myDetectorType=MOENCH;
|
||||
#elif JUNGFRAUD
|
||||
const enum detectorType myDetectorType=JUNGFRAU;
|
||||
#elif MYTHEN3D
|
||||
const enum detectorType myDetectorType=MYTHEN3;
|
||||
#else
|
||||
const enum detectorType myDetectorType=GENERIC;
|
||||
#endif
|
||||
@ -1033,6 +1035,73 @@ int set_dac(int file_des) {
|
||||
case HV_POT:
|
||||
break;
|
||||
*/
|
||||
#elif MYTHEN3D
|
||||
case M_vIpre:
|
||||
idac = vIpre;
|
||||
break;
|
||||
case M_vIbias:
|
||||
idac = vIbias;
|
||||
break;
|
||||
case PREAMP:
|
||||
idac = Vrf;
|
||||
break;
|
||||
case SHAPER1:
|
||||
idac = VrfSh;
|
||||
break;
|
||||
case M_vIinSh:
|
||||
idac = vIinSh;
|
||||
break;
|
||||
case M_VdcSh:
|
||||
idac = VdcSh;
|
||||
break;
|
||||
case M_Vth2:
|
||||
idac = Vth2;
|
||||
break;
|
||||
case M_VPL:
|
||||
idac = VPL;
|
||||
break;
|
||||
case THRESHOLD:
|
||||
idac = Vth1;
|
||||
break;
|
||||
case M_Vth3:
|
||||
idac = Vth3;
|
||||
break;
|
||||
case TRIMBIT_SIZE:
|
||||
idac = Vtrim;
|
||||
break;
|
||||
case M_casSh:
|
||||
idac = casSh;
|
||||
break;
|
||||
case M_cas:
|
||||
idac = cas;
|
||||
break;
|
||||
case M_vIbiasSh:
|
||||
idac = vIbiasSh;
|
||||
break;
|
||||
case M_vIcin:
|
||||
idac = vIcin;
|
||||
break;
|
||||
case CALIBRATION_PULSE: // !!! pulse height + 1400 DACu
|
||||
idac = VPH;
|
||||
break;
|
||||
case M_vIpreOut:
|
||||
idac = vIpreOut;
|
||||
break;
|
||||
case V_POWER_A:
|
||||
idac = V_A;
|
||||
break;
|
||||
case V_POWER_B:
|
||||
ipwr = V_B;
|
||||
break;
|
||||
case V_POWER_IO:
|
||||
idac = V_IO;
|
||||
break;
|
||||
case V_POWER_CHIP:
|
||||
idac = V_CHIP;
|
||||
break;
|
||||
case V_LIMIT:
|
||||
idac = V_LIM;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
ret = FAIL;
|
||||
@ -1076,8 +1145,65 @@ int set_dac(int file_des) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#ifdef MYTHEN3D
|
||||
else if ((ind >= V_POWER_A && ind <= V_POWER_CHIP) || ind == V_LIMIT) {
|
||||
printf("Setting a power %d to %d\n",ind, val);
|
||||
|
||||
if (!mV) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Power of index %d should be set in mV instead of DACu", idac);
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
val = -1;
|
||||
}
|
||||
|
||||
int lim = getVLimit();
|
||||
if (ind != V_LIMIT && lim != -1 && val > lim) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Power of index %d is %d, should be less than %dmV\n", idac, val, lim);
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
val = -1;
|
||||
}
|
||||
|
||||
retval[1] = retval[0] = setPower(idac,val);
|
||||
if (val >= 0 && retval[1] != val) {
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Setting power %d failed: wrote %d but read %d\n", idac, val, retval[1]);
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//dac
|
||||
else{
|
||||
#ifdef MYTHEN3D
|
||||
if( mV && val > MAX_DACVOLTVAL) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Dac of index %d should be less than %dmV\n", idac, val, MAX_DACVOLTVAL);
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
val = -1;
|
||||
}
|
||||
else if( !mV && val >= MAX_DACVAL) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Dac of index %d should be less than %d (dac value)\n", idac, val, MAX_DACVAL);
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
val = -1;
|
||||
}
|
||||
|
||||
if (val >= 0) {
|
||||
// conver to mV
|
||||
int v = val;
|
||||
if (!mV)
|
||||
v = dacToVoltage(val);
|
||||
|
||||
//checkvlimit compliant
|
||||
int lim = getVLimit();
|
||||
if (lim!= -1 && v > lim) {
|
||||
ret = FAIL;
|
||||
strcpy(mess, "Dac of index %d should be less than %dmV (%d dac value)\n", idac, lim, voltageToDac(lim));
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
val = -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
setDAC(idac,val,imod,mV,retval);
|
||||
#ifdef EIGERD
|
||||
if(val != -1) {
|
||||
@ -1098,12 +1224,13 @@ int set_dac(int file_des) {
|
||||
}
|
||||
#endif
|
||||
//check
|
||||
if (ret == OK) {
|
||||
if(mV)
|
||||
temp = retval[1];
|
||||
else
|
||||
temp = retval[0];
|
||||
if ((abs(temp-val)<=5) || val==-1) {
|
||||
ret=OK;
|
||||
ret = OK;
|
||||
} else {
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Setting dac %d of module %d: wrote %d but read %d\n", idac, imod, val, temp);
|
||||
@ -1112,6 +1239,7 @@ int set_dac(int file_des) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef VERBOSE
|
||||
printf("DAC set to %d in dac units and %d mV\n", retval[0],retval[1]);
|
||||
@ -1149,6 +1277,15 @@ int get_adc(int file_des) {
|
||||
int imod=-1;
|
||||
sprintf(mess,"get ADC failed\n");
|
||||
|
||||
#ifdef MYTHEN3D
|
||||
//to receive any arguments
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Get ADC) is not implemented for this detector\n");
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
#else
|
||||
|
||||
// receive arguments
|
||||
n = receiveData(file_des,arg,sizeof(arg),INT32);
|
||||
if (n < 0) return printSocketReadError();
|
||||
@ -1217,6 +1354,7 @@ int get_adc(int file_des) {
|
||||
#endif
|
||||
#ifdef VERBOSE
|
||||
printf("ADC is %f\n", retval);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (ret==OK && differentClients)
|
||||
@ -1553,7 +1691,7 @@ int set_chip(int file_des) {
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Set Channel) is not implemented for this detector\n");
|
||||
sprintf(mess,"Function (Set Chip) is not implemented for this detector\n");
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
#else
|
||||
sls_detector_chip myChip;
|
||||
@ -1629,7 +1767,7 @@ int get_chip(int file_des) {
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Set Channel) is not implemented for this detector\n");
|
||||
sprintf(mess,"Function (Get Chip) is not implemented for this detector\n");
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
#else
|
||||
|
||||
@ -1718,6 +1856,17 @@ int set_module(int file_des) {
|
||||
#endif
|
||||
sprintf(mess,"set module failed\n");
|
||||
|
||||
|
||||
#ifdef MYTHEN3D
|
||||
//to receive any arguments
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Set Module) is not implemented for this detector\n");
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
#else
|
||||
|
||||
|
||||
#ifdef SLS_DETECTOR_FUNCTION_LIST
|
||||
int *myDac=NULL;
|
||||
int *myAdc=NULL;
|
||||
@ -1896,6 +2045,7 @@ int set_module(int file_des) {
|
||||
}
|
||||
if (ret==OK && differentClients)
|
||||
ret=FORCE_UPDATE;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// ret could be swapped during sendData
|
||||
@ -1928,6 +2078,15 @@ int get_module(int file_des) {
|
||||
sls_detector_module myModule;
|
||||
sprintf(mess,"get module failed\n");
|
||||
|
||||
#ifdef MYTHEN3D
|
||||
//to receive any arguments
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Get Module) is not implemented for this detector\n");
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
#else
|
||||
|
||||
// receive arguments
|
||||
n = receiveData(file_des,&arg,sizeof(arg),INT32);
|
||||
if (n < 0) return printSocketReadError();
|
||||
@ -2000,6 +2159,7 @@ int get_module(int file_des) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
if (ret==OK && differentClients)
|
||||
ret=FORCE_UPDATE;
|
||||
@ -2064,6 +2224,16 @@ int set_settings(int file_des) {
|
||||
enum detectorSettings isett=-1;
|
||||
sprintf(mess,"set settings failed\n");
|
||||
|
||||
#ifdef MYTHEN3D
|
||||
//to receive any arguments
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Set Settings) is not implemented for this detector\n");
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
#else
|
||||
|
||||
|
||||
// receive arguments
|
||||
n = receiveData(file_des,&arg,sizeof(arg),INT32);
|
||||
if (n < 0) return printSocketReadError();
|
||||
@ -2098,6 +2268,7 @@ int set_settings(int file_des) {
|
||||
cprintf(RED, "Warning: %s", mess);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (ret==OK && differentClients)
|
||||
@ -2536,6 +2707,11 @@ int set_timer(int file_des) {
|
||||
case DELAY_AFTER_TRIGGER:
|
||||
#elif JUNGFRAUD
|
||||
case DELAY_AFTER_TRIGGER:
|
||||
#elif MYTHEN3D
|
||||
case DELAY_AFTER_TRIGGER:
|
||||
case GATES_NUMBER:
|
||||
case PROBES_NUMBER:
|
||||
case SAMPLES_JCTB:
|
||||
#endif
|
||||
case FRAME_NUMBER:
|
||||
case ACQUISITION_TIME:
|
||||
@ -2615,22 +2791,25 @@ int get_time_left(int file_des) {
|
||||
switch(ind) {
|
||||
#ifdef MYTHEND
|
||||
case PROBES_NUMBER:
|
||||
#elif JUNGFRAUD
|
||||
case FRAMES_FROM_START:
|
||||
case FRAMES_FROM_START_PG:
|
||||
#elif MYTHEN3D
|
||||
case GATES_NUMBER:
|
||||
case PROBES_NUMBER:
|
||||
case SAMPLES_JCTB:
|
||||
#endif
|
||||
#ifndef JUNGFRAUD
|
||||
case GATES_NUMBER:
|
||||
#endif
|
||||
case FRAME_NUMBER:
|
||||
case ACQUISITION_TIME:
|
||||
case FRAME_PERIOD:
|
||||
case DELAY_AFTER_TRIGGER:
|
||||
#ifndef JUNGFRAUD
|
||||
case GATES_NUMBER:
|
||||
#endif
|
||||
case CYCLES_NUMBER:
|
||||
case PROGRESS:
|
||||
case ACTUAL_TIME:
|
||||
case MEASUREMENT_TIME:
|
||||
#ifdef JUNGFRAUD
|
||||
case FRAMES_FROM_START:
|
||||
case FRAMES_FROM_START_PG:
|
||||
#endif
|
||||
retval=getTimeLeft(ind);
|
||||
break;
|
||||
default:
|
||||
@ -2991,6 +3170,9 @@ int set_speed(int file_des) {
|
||||
case CLOCK_DIVIDER:
|
||||
#elif JUNGFRAUD
|
||||
case CLOCK_DIVIDER:
|
||||
#elif MYTHEN3D
|
||||
case DBIT_CLOCK:
|
||||
case DBIT_PHASE:
|
||||
#endif
|
||||
retval=setSpeed(arg, val);
|
||||
if ((retval!=val) && (val>=0)) {
|
||||
@ -4003,17 +4185,177 @@ int set_all_trimbits(int file_des){
|
||||
|
||||
|
||||
int set_ctb_pattern(int file_des) {
|
||||
int ret=FAIL,ret1=FAIL;
|
||||
int ret=OK,ret1=OK;
|
||||
int n=0;
|
||||
sprintf(mess,"Function (Set CTB Pattern) is not implemented for this detector\n");
|
||||
cprintf(RED, "Error: %s", mess);
|
||||
int retval=-1;
|
||||
|
||||
int mode = -1;
|
||||
int addr = -1, level = -1, nl = -1, start = -1, stop = -1;
|
||||
uint64_t word = -1,retval64 = -1, t = -1;
|
||||
sprintf(mess,"Could not set pattern\n");
|
||||
|
||||
#ifndef MYTHEN3D
|
||||
//to receive any arguments
|
||||
while (n > 0)
|
||||
n = receiveData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
|
||||
ret = FAIL;
|
||||
sprintf(mess,"Function (Set CTB Pattern) is not implemented for this detector\n");
|
||||
cprintf(RED, "Error: %s", mess);
|
||||
|
||||
// ret could be swapped during sendData
|
||||
ret1 = ret;
|
||||
// send ok / fail
|
||||
n = sendData(file_des,&ret1,sizeof(ret),INT32);
|
||||
n = sendData(file_des,mess,MAX_STR_LENGTH,OTHER);
|
||||
// send return argument
|
||||
n += sendData(file_des,mess,sizeof(mess),OTHER);
|
||||
|
||||
return ret;
|
||||
|
||||
#endif
|
||||
n = receiveDataOnly(file_des, &mode, sizeof(mode));
|
||||
printf("pattern mode is %d\n",mode);
|
||||
|
||||
switch (mode) {
|
||||
|
||||
case 0: //sets word
|
||||
n = receiveDataOnly(file_des,&addr,sizeof(addr));
|
||||
n = receiveDataOnly(file_des,&word,sizeof(word));
|
||||
ret=OK;
|
||||
|
||||
printf("pattern addr is %d %x\n",addr, word);
|
||||
switch (addr) {
|
||||
case -1:
|
||||
retval64=writePatternIOControl(word);
|
||||
break;
|
||||
case -2:
|
||||
retval64=writePatternClkControl(word);
|
||||
break;
|
||||
default:
|
||||
retval64=writePatternWord(addr,word);
|
||||
};
|
||||
|
||||
|
||||
//write word;
|
||||
//@param addr address of the word, -1 is I/O control register, -2 is clk control register
|
||||
//@param word 64bit word to be written, -1 gets
|
||||
|
||||
n = sendDataOnly(file_des,&ret,sizeof(ret));
|
||||
if (ret==FAIL)
|
||||
n += sendDataOnly(file_des,mess,sizeof(mess));
|
||||
else
|
||||
n += sendDataOnly(file_des,&retval64,sizeof(retval64));
|
||||
break;
|
||||
|
||||
case 1: //pattern loop
|
||||
// printf("loop\n");
|
||||
n = receiveDataOnly(file_des,&level,sizeof(level));
|
||||
n = receiveDataOnly(file_des,&start,sizeof(start));
|
||||
n = receiveDataOnly(file_des,&stop,sizeof(stop));
|
||||
n = receiveDataOnly(file_des,&nl,sizeof(nl));
|
||||
|
||||
|
||||
|
||||
// printf("level %d start %x stop %x nl %d\n",level, start, stop, nl);
|
||||
/** Sets the pattern or loop limits in the CTB
|
||||
@param level -1 complete pattern, 0,1,2, loop level
|
||||
@param start start address if >=0
|
||||
@param stop stop address if >=0
|
||||
@param n number of loops (if level >=0)
|
||||
@returns OK/FAIL
|
||||
*/
|
||||
ret=setPatternLoop(level, &start, &stop, &nl);
|
||||
|
||||
n = sendDataOnly(file_des,&ret,sizeof(ret));
|
||||
if (ret==FAIL)
|
||||
n += sendDataOnly(file_des,mess,sizeof(mess));
|
||||
else {
|
||||
n += sendDataOnly(file_des,&start,sizeof(start));
|
||||
n += sendDataOnly(file_des,&stop,sizeof(stop));
|
||||
n += sendDataOnly(file_des,&nl,sizeof(nl));
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
|
||||
case 2: //wait address
|
||||
printf("wait\n");
|
||||
n = receiveDataOnly(file_des,&level,sizeof(level));
|
||||
n = receiveDataOnly(file_des,&addr,sizeof(addr));
|
||||
|
||||
|
||||
|
||||
/** Sets the wait address in the CTB
|
||||
@param level 0,1,2, wait level
|
||||
@param addr wait address, -1 gets
|
||||
@returns actual value
|
||||
*/
|
||||
printf("wait addr %d %x\n",level, addr);
|
||||
retval=setPatternWaitAddress(level,addr);
|
||||
printf("ret: wait addr %d %x\n",level, retval);
|
||||
ret=OK;
|
||||
n = sendDataOnly(file_des,&ret,sizeof(ret));
|
||||
if (ret==FAIL)
|
||||
n += sendDataOnly(file_des,mess,sizeof(mess));
|
||||
else {
|
||||
n += sendDataOnly(file_des,&retval,sizeof(retval));
|
||||
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case 3: //wait time
|
||||
printf("wait time\n");
|
||||
n = receiveDataOnly(file_des,&level,sizeof(level));
|
||||
n = receiveDataOnly(file_des,&t,sizeof(t));
|
||||
|
||||
|
||||
/** Sets the wait time in the CTB
|
||||
@param level 0,1,2, wait level
|
||||
@param t wait time, -1 gets
|
||||
@returns actual value
|
||||
*/
|
||||
|
||||
ret=OK;
|
||||
|
||||
retval64=setPatternWaitTime(level,t);
|
||||
|
||||
n = sendDataOnly(file_des,&ret,sizeof(ret));
|
||||
if (ret==FAIL)
|
||||
n += sendDataOnly(file_des,mess,sizeof(mess));
|
||||
else
|
||||
n += sendDataOnly(file_des,&retval64,sizeof(retval64));
|
||||
|
||||
break;
|
||||
|
||||
|
||||
|
||||
case 4:
|
||||
n = receiveDataOnly(file_des,pat,sizeof(pat));
|
||||
for (addr=0; addr<1024; addr++)
|
||||
writePatternWord(addr,word);
|
||||
ret=OK;
|
||||
retval=0;
|
||||
n = sendDataOnly(file_des,&ret,sizeof(ret));
|
||||
if (ret==FAIL)
|
||||
n += sendDataOnly(file_des,mess,sizeof(mess));
|
||||
else
|
||||
n += sendDataOnly(file_des,&retval64,sizeof(retval64));
|
||||
|
||||
break;
|
||||
|
||||
|
||||
|
||||
default:
|
||||
ret=FAIL;
|
||||
printf(mess);
|
||||
sprintf(mess,"%s - wrong mode %d\n",mess, mode);
|
||||
n = sendDataOnly(file_des,&ret,sizeof(ret));
|
||||
n += sendDataOnly(file_des,mess,sizeof(mess));
|
||||
}
|
||||
|
||||
|
||||
// return ok / fail
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user