diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_codes.h b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_codes.h index ee3ac3572a00b7b7b025f0565317f056d767e13a..fcf06b5c2297f3ec13a4713bfdbdf1f123e10fc9 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_codes.h +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_codes.h @@ -12,16 +12,6 @@ #define FMC250M_4CH_OPCODE_TYPE uint32_t #define FMC250M_4CH_OPCODE_SIZE (sizeof (FMC250M_4CH_OPCODE_TYPE)) -#define FMC250M_4CH_OPCODE_LEDS 0 -#define FMC250M_4CH_NAME_LEDS "fmc250m_4ch_leds" -#define FMC250M_4CH_OPCODE_SI571_OE 1 -#define FMC250M_4CH_NAME_SI571_OE "fmc250m_4ch_si571_oe" -#define FMC250M_4CH_OPCODE_PLL_FUNCTION 2 -#define FMC250M_4CH_NAME_PLL_FUNCTION "fmc250m_4ch_pll_function" -#define FMC250M_4CH_OPCODE_PLL_STATUS 3 -#define FMC250M_4CH_NAME_PLL_STATUS "fmc250m_4ch_pll_status" -#define FMC250M_4CH_OPCODE_CLK_SEL 4 -#define FMC250M_4CH_NAME_CLK_SEL "fmc250m_4ch_clk_sel" #if 0 #define FMC250M_4CH_OPCODE_ADC_RAND 5 #define FMC250M_4CH_NAME_ADC_RAND "fmc250m_4ch_adc_rand" @@ -74,38 +64,6 @@ #define FMC250M_4CH_OPCODE_ADC_DLY3 28 #define FMC250M_4CH_NAME_ADC_DLY3 "fmc250m_4ch_adc_dly3" #endif -#define FMC250M_4CH_OPCODE_TEST_DATA_EN 29 -#define FMC250M_4CH_NAME_TEST_DATA_EN "fmc250m_4ch_adc_test_data_en" -#define FMC250M_4CH_OPCODE_TRIG_DIR 30 -#define FMC250M_4CH_NAME_TRIG_DIR "fmc250m_4ch_trig_dir" -#define FMC250M_4CH_OPCODE_TRIG_TERM 31 -#define FMC250M_4CH_NAME_TRIG_TERM "fmc250m_4ch_trig_term" -#define FMC250M_4CH_OPCODE_TRIG_VAL 32 -#define FMC250M_4CH_NAME_TRIG_VAL "fmc250m_4ch_trig_val" -#define FMC250M_4CH_OPCODE_AD9510_CFG_DEFAULTS 33 -#define FMC250M_4CH_NAME_AD9510_CFG_DEFAULTS "fmc250m_4ch_ad9510_cfg_defaults" -#define FMC250M_4CH_OPCODE_AD9510_PLL_A_DIV 34 -#define FMC250M_4CH_NAME_AD9510_PLL_A_DIV "fmc250m_4ch_ad9510_pll_a_div" -#define FMC250M_4CH_OPCODE_AD9510_PLL_B_DIV 35 -#define FMC250M_4CH_NAME_AD9510_PLL_B_DIV "fmc250m_4ch_ad9510_pll_b_div" -#define FMC250M_4CH_OPCODE_AD9510_PLL_PRESCALER 36 -#define FMC250M_4CH_NAME_AD9510_PLL_PRESCALER "fmc250m_4ch_ad9510_pll_prescaler" -#define FMC250M_4CH_OPCODE_AD9510_R_DIV 37 -#define FMC250M_4CH_NAME_AD9510_R_DIV "fmc250m_4ch_ad9510_r_div" -#define FMC250M_4CH_OPCODE_AD9510_PLL_PDOWN 38 -#define FMC250M_4CH_NAME_AD9510_PLL_PDOWN "fmc250m_4ch_ad9510_pll_pdown" -#define FMC250M_4CH_OPCODE_AD9510_MUX_STATUS 39 -#define FMC250M_4CH_NAME_AD9510_MUX_STATUS "fmc250m_4ch_ad9510_mux_status" -#define FMC250M_4CH_OPCODE_AD9510_CP_CURRENT 40 -#define FMC250M_4CH_NAME_AD9510_CP_CURRENT "fmc250m_4ch_ad9510_cp_current" -#define FMC250M_4CH_OPCODE_AD9510_OUTPUTS 41 -#define FMC250M_4CH_NAME_AD9510_OUTPUTS "fmc250m_4ch_ad9510_outputs" -#define FMC250M_4CH_OPCODE_AD9510_PLL_CLK_SEL 42 -#define FMC250M_4CH_NAME_AD9510_PLL_CLK_SEL "fmc250m_4ch_ad9510_pll_clk_sel" -#define FMC250M_4CH_OPCODE_SI571_SET_FREQ 43 -#define FMC250M_4CH_NAME_SI571_SET_FREQ "fmc250m_4ch_si571_set_freq" -#define FMC250M_4CH_OPCODE_SI571_GET_DEFAULTS 44 -#define FMC250M_4CH_NAME_SI571_GET_DEFAULTS "fmc250m_4ch_si571_get_defaults" #define FMC250M_4CH_OPCODE_RST_ADCS 45 #define FMC250M_4CH_NAME_RST_ADCS "fmc250m_4ch_rst_adcs" #define FMC250M_4CH_OPCODE_RST_DIV_ADCS 46 diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.c b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.c index f907927b94fadb84d0c6553ca4292903398a6eed..aa266d7b31be475eee9a37c8626a7c1ec221f646 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.c +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.c @@ -138,48 +138,31 @@ smio_fmc250m_4ch_t * smio_fmc250m_4ch_new (smio_t *parent) #endif _smio_fmc250m_4ch_set_type (self, 0x0); + DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_core] Registering FMC_ADC_COMMON SMIO\n"); + smio_register_sm (parent, 0x2403f569, FMC_250M_FMC_ADC_COMMON_REGS_OFFS, inst_id); + /* Now, initialize the FMC250M_4CH with the appropriate structures*/ if (self->type == TYPE_FMC250M_4CH_ACTIVE) { - DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_core] AD9510 initializing, " - "addr: 0x%08X, Inst ID: %u\n", fmc250m_4ch_ad9510_addr[inst_id], - inst_id); - self->smch_ad9510 = smch_ad9510_new (parent, FMC_250M_AD9510_SPI_OFFS, - fmc250m_4ch_ad9510_addr[inst_id], 0); - ASSERT_ALLOC(self->smch_ad9510, err_smch_ad9510_alloc); - - DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_core] SI571 initializing, " - "addr: 0x%08X, Inst ID: %u\n", fmc250m_4ch_si571_addr[inst_id], - inst_id); - self->smch_si571 = smch_si57x_new (parent, FMC_250M_SI571_I2C_OFFS, - fmc250m_4ch_si571_addr[inst_id], 0); - ASSERT_ALLOC(self->smch_si571, err_smch_si571_alloc); + DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_core] Active Board detected. " + "Registering FMC_ADC_ACTIVE SMIO\n"); + smio_register_sm (parent, 0x88c67d9c, FMC_250M_FMC_ACTIVE_CLK_OFFS, inst_id); } else { /* PASSIVE or Unsupported*/ - if (self->type != TYPE_FMC250M_4CH_PASSIVE) { DBE_DEBUG (DBG_SM_IO | DBG_LVL_WARN, "[sm_io:fmc250m_4ch_core] Unsupported FMC250M_4CH card (maybe EEPROM not configured?).\n" "\t Defaulting to PASSIVE board\n"); } - - self->smch_ad9510 = NULL; - self->smch_si571 = NULL; } return self; -err_smch_si571_alloc: - if (self->smch_ad9510 != NULL) { - smch_ad9510_destroy (&self->smch_ad9510); - } -err_smch_ad9510_alloc: - smch_24aa64_destroy (&self->smch_24aa64); #if 0 err_smch_24aa64_alloc: -#endif if (self->smch_pca9547 != NULL) { smch_pca9547_destroy (&self->smch_pca9547); } +#endif #if 0 err_smch_pca9547_alloc: #endif diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.h b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.h index 4c383408d14a6615df89d6d27df0a2a56bb1b3f8..3a54d0c25a22563472f4db83f63b78a8e2b3301a 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.h +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_core.h @@ -8,8 +8,6 @@ #ifndef _SM_IO_FMC250M_4CH_CORE_H_ #define _SM_IO_FMC250M_4CH_CORE_H_ -#define SMIO_AD9510_HANDLER(smio_handler) ((smch_ad9510_t *) smio_handler->smch_ad9510) -#define SMIO_SI57X_HANDLER(smio_handler) ((smch_si57x_t *) smio_handler->smch_si571) #define SMIO_ISLA216P_HANDLER(smio_handler, inst) ((smch_isla216p_t *) smio_handler->smch_isla216p_adc[inst]) /* The follosing codes were generated via the following command: @@ -36,8 +34,6 @@ typedef struct { smch_amc7823_t *smch_amc7823; /* AMC7823 chip handler */ #endif smch_isla216p_t *smch_isla216p_adc[NUM_FMC250M_4CH_ISLA216P]; /* ISLA216P chip handlers */ - smch_ad9510_t *smch_ad9510; /* AD9510 chip handler */ - smch_si57x_t *smch_si571; /* SI571 chip handler */ smch_24aa64_t *smch_24aa64; /* 24AA64 chip handler */ smch_pca9547_t *smch_pca9547; /* FPGA I2C Switch */ } smio_fmc250m_4ch_t; diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.c b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.c index b68dfa8e288d245f0b770b89d8e7079fd25f2668..981a556a2518a0c9caed1c5e3afc5c57646204e0 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.c +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.c @@ -55,35 +55,6 @@ smio_err_e fmc250m_4ch_config_defaults (char *broker_endp, char *service, log_file_name, SMIO_FMC250M_4CH_LIBBPMCLIENT_LOG_MODE); ASSERT_ALLOC(config_client, err_alloc_client); - client_err = bpm_set_fmc_pll_function (config_client, service, FMC250M_4CH_DFLT_PLL_FUNC); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not set FMC PLL function", - err_param_set, SMIO_ERR_CONFIG_DFLT); - - client_err = bpm_set_fmc_clk_sel (config_client, service, FMC250M_4CH_DFLT_CLK_SEL); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not set FMC CLK SEL function", - err_param_set, SMIO_ERR_CONFIG_DFLT); - - client_err = bpm_set_trig_dir (config_client, service, FMC250M_4CH_DFLT_TRIG_DIR); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not set FMC TRIG DIR function", - err_param_set, SMIO_ERR_CONFIG_DFLT); - - client_err = bpm_ad9510_cfg_defaults (config_client, service, 0); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS || - client_err == BPM_CLIENT_ERR_AGAIN, "Could not configure AD9510", - err_param_set, SMIO_ERR_CONFIG_DFLT); - - client_err = bpm_set_si571_defaults (config_client, service, FMC250M_4CH_DFLT_SI57X_FOUT_FACTORY); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not get Si571 defaults", - err_param_set, SMIO_ERR_CONFIG_DFLT); - - client_err = bpm_set_si571_set_freq (config_client, service, FMC250M_4CH_DFLT_SI57X_FOUT); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not set Si571 frequency", - err_param_set, SMIO_ERR_CONFIG_DFLT); - - client_err = bpm_set_si571_oe (config_client, service, FMC250M_4CH_DFLT_SI571_OE); - ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not enable SI571 Output", - err_param_set, SMIO_ERR_CONFIG_DFLT); - client_err = bpm_set_rst_adcs (config_client, service, FMC250M_4CH_DFLT_RST_ADCS); ASSERT_TEST(client_err == BPM_CLIENT_SUCCESS, "Could not reset ADCs", err_param_set, SMIO_ERR_CONFIG_DFLT); diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.h b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.h index c66f16ff2eb1ec939c45780dcb75f8932c0761a7..e9b2ade5bf820c2bce02a9a10676b16e85e15dc5 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.h +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_defaults.h @@ -9,18 +9,8 @@ #define _FMC250M_4CH_DEFAULTS_H_ #include "sm_io_err.h" -#include "chips/si57x_regs.h" #include "sm_ch_pca9547.h" -#define FMC250M_4CH_DFLT_PLL_FUNC 0x1 -#define FMC250M_4CH_DFLT_CLK_SEL 0x0 /* Clock from FMC front panel */ -#define FMC250M_4CH_DFLT_TRIG_DIR 0x0 /* Output direction */ -#define FMC250M_4CH_DFLT_PCA9547_CFG SMCH_PCA9547_NO_CHANNEL /* No channel selected */ -#define FMC250M_4CH_DFLT_SI571_OE 0x1 - -#define FMC250M_4CH_DFLT_SI57X_FOUT_FACTORY SI57X_FOUT_FACTORY_DFLT -#define FMC250M_4CH_DFLT_SI57X_FOUT 113040445 /* 113.040445 MHz default */ - #define FMC250M_4CH_DFLT_RST_ADCS 0x1 #define FMC250M_4CH_DFLT_RST_DIV_ADCS 0x1 diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exp.c b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exp.c index dbb0984cd3b2f5493149a97c38e5d0ce45a34cb8..2f22e1bea23f17714d4878746a90a471db124c41 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exp.c +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exp.c @@ -53,8 +53,6 @@ } \ }) -static smch_err_e smch_ad9510_cfg_defaults_compat (smch_ad9510_t *self, - uint32_t *param); static smch_err_e smch_isla216p_test_mode_compat (smch_isla216p_t *self, uint32_t *mode); @@ -62,60 +60,6 @@ static smch_err_e smch_isla216p_test_mode_compat (smch_isla216p_t *self, /************ Specific FMC_250M_4CH Operations **************/ /************************************************************/ -#define BPM_FMC250M_4CH_LEDS_MIN 0 /* LED 0 = 0, LED 1 = 0, LED 3 = 0*/ -#define BPM_FMC250M_4CH_LEDS_MAX 7 /* LED 0 = 1, LED 1 = 1, LED 2 = 1*/ -#define WB_FMC_250M_4CH_CSR_MONITOR_GLOBAL_MASK WBGEN2_GEN_MASK(1, 3) -#define WB_FMC_250M_4CH_CSR_MONITOR_GLOBAL_W(val) WBGEN2_GEN_WRITE(val, 1, 3) -#define WB_FMC_250M_4CH_CSR_MONITOR_GLOBAL_R(reg) WBGEN2_GEN_READ(reg, 1, 3) - -RW_PARAM_FUNC(fmc250m_4ch, leds) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - MONITOR, GLOBAL, MULT_BIT_PARAM, - BPM_FMC250M_4CH_LEDS_MIN, BPM_FMC250M_4CH_LEDS_MAX, NO_CHK_FUNC, - NO_FMT_FUNC, SET_FIELD); -} - -#define BPM_FMC250M_4CH_SI571_OE_MIN 0 /* SI571 Output disable */ -#define BPM_FMC250M_4CH_SI571_OE_MAX 1 /* SI571 Output enable */ - -RW_PARAM_FUNC(fmc250m_4ch, si571_oe) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - CLK_DISTRIB, SI571_OE, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_SI571_OE_MIN, BPM_FMC250M_4CH_SI571_OE_MAX, NO_CHK_FUNC, - NO_FMT_FUNC, SET_FIELD); -} - -#define BPM_FMC250M_4CH_PLL_FUNC_MIN 0 /* PLL FUNCTION pin 0 */ -#define BPM_FMC250M_4CH_PLL_FUNC_MAX 1 /* PLL FUNCTION pin 1 */ - -RW_PARAM_FUNC(fmc250m_4ch, pll_func) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - CLK_DISTRIB, PLL_FUNCTION, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_PLL_FUNC_MIN, BPM_FMC250M_4CH_PLL_FUNC_MAX, NO_CHK_FUNC, - NO_FMT_FUNC, SET_FIELD); -} - - -#define BPM_FMC250M_4CH_PLL_STATUS_MIN 0 /* PLL STATUS pin 0 */ -#define BPM_FMC250M_4CH_PLL_STATUS_MAX 1 /* PLL STATUS pin 1 */ - -RW_PARAM_FUNC(fmc250m_4ch, pll_status) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - CLK_DISTRIB, PLL_STATUS, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_PLL_STATUS_MIN, BPM_FMC250M_4CH_PLL_STATUS_MAX, NO_CHK_FUNC, - NO_FMT_FUNC, SET_FIELD); -} - -#define BPM_FMC250M_4CH_CLK_SEL_MIN 0 /* PLL CLK_SEL pin 0 */ -#define BPM_FMC250M_4CH_CLK_SEL_MAX 1 /* PLL CLK_SEL pin 1 */ - -RW_PARAM_FUNC(fmc250m_4ch, clk_sel) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - CLK_DISTRIB, CLK_SEL, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_CLK_SEL_MIN, BPM_FMC250M_4CH_CLK_SEL_MAX, NO_CHK_FUNC, - NO_FMT_FUNC, SET_FIELD); -} - /********************* ADC RAW Data registers (for simple debug) **************/ /* FIXME: Override DATA<channel_number>_VAL macros with the DATA_GLOBAL ones. @@ -369,244 +313,6 @@ FMC250M_4CH_ADC_DLY_FUNC_HEADER(3) } #endif -/***************************** FPGA Control ***************************/ - -#define BPM_FMC250M_4CH_TEST_DATA_EN_MIN 0 /* TEST data enable off */ -#define BPM_FMC250M_4CH_TEST_DATA_EN_MAX 1 /* TEST data enable on */ - -RW_PARAM_FUNC(fmc250m_4ch, test_data_en) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - MONITOR, TEST_DATA_EN, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_TEST_DATA_EN_MIN, BPM_FMC250M_4CH_TEST_DATA_EN_MAX, - NO_CHK_FUNC, NO_FMT_FUNC, SET_FIELD); -} - -#define BPM_FMC250M_4CH_TRIG_DIR_MIN 0 /* Trigger direction input */ -#define BPM_FMC250M_4CH_TRIG_DIR_MAX 1 /* Trigger direction output */ - -RW_PARAM_FUNC(fmc250m_4ch, trig_dir) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - TRIGGER, DIR, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_TRIG_DIR_MIN, BPM_FMC250M_4CH_TRIG_DIR_MAX, - NO_CHK_FUNC, NO_FMT_FUNC, SET_FIELD); -} - -#define BPM_FMC250M_4CH_TRIG_TERM_MIN 0 /* Trigger termination disabled */ -#define BPM_FMC250M_4CH_TRIG_TERM_MAX 1 /* Trigger termination enabled */ - -RW_PARAM_FUNC(fmc250m_4ch, trig_term) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - TRIGGER, TERM, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_TRIG_TERM_MIN, BPM_FMC250M_4CH_TRIG_TERM_MAX, - NO_CHK_FUNC, NO_FMT_FUNC, SET_FIELD); -} - -#define BPM_FMC250M_4CH_TRIG_VAL_MIN 0 /* Trigger value 0 */ -#define BPM_FMC250M_4CH_TRIG_VAL_MAX 1 /* Trigger value 1 */ - -RW_PARAM_FUNC(fmc250m_4ch, trig_val) { - SET_GET_PARAM(fmc250m_4ch, FMC_250M_CTRL_REGS_OFFS, WB_FMC_250M_4CH_CSR, - TRIGGER, TRIG_VAL, SINGLE_BIT_PARAM, - BPM_FMC250M_4CH_TRIG_VAL_MIN, BPM_FMC250M_4CH_TRIG_VAL_MAX, - NO_CHK_FUNC, NO_FMT_FUNC, SET_FIELD); -} - -/******************************** Chips Export functions *************************/ - -/* Macros to avoid repetition of the function body AD9510 */ -typedef smch_err_e (*smch_ad9510_func_fp) (smch_ad9510_t *self, uint32_t *param); - -#define FMC250M_4CH_AD9510_FUNC_NAME(func_name) \ - _fmc250m_4ch_ad9510_ ## func_name - -#define FMC250M_4CH_AD9510_FUNC_NAME_HEADER(func_name) \ - static int FMC250M_4CH_AD9510_FUNC_NAME(func_name) (void *owner, void *args, void *ret) - -#define FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, read_func, write_func, \ - error_msg) \ - do { \ - assert (owner); \ - assert (args); \ - \ - int err = -FMC250M_4CH_OK; \ - SMIO_OWNER_TYPE *self = SMIO_EXP_OWNER(owner); \ - smio_fmc250m_4ch_t *fmc250m = smio_get_handler (self); \ - ASSERT_TEST(fmc250m != NULL, "Could not get SMIO FMC250M handler", \ - err_get_fmc250m_handler, -FMC250M_4CH_ERR); \ - smch_ad9510_t *smch_ad9510 = SMIO_AD9510_HANDLER(fmc250m); \ - uint32_t rw = *(uint32_t *) EXP_MSG_ZMQ_FIRST_ARG(args); \ - uint32_t param = *(uint32_t *) EXP_MSG_ZMQ_NEXT_ARG(args); \ - \ - DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_exp] Calling " \ - "AD9510 function\n"); \ - \ - FMC250M_4CH_CHECK_ACTIVE(self); \ - \ - smch_err_e serr = SMCH_SUCCESS; \ - /* Call specific function */ \ - if (rw) { \ - WHEN(ISEMPTY(read_func))( \ - (void) ret; \ - DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_exp] " \ - "AD9510 read function not implemented\n"); \ - err = -FMC250M_4CH_UNINPL; \ - return err; \ - ) \ - WHENNOT(ISEMPTY(read_func))( \ - uint32_t value = 0; \ - serr = ((smch_ad9510_func_fp) read_func) (smch_ad9510, \ - &value); \ - if (serr != SMCH_SUCCESS) { \ - err = -FMC250M_4CH_ERR; \ - } \ - else { \ - *((uint32_t *) ret) = value; \ - err = sizeof (value); \ - DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_exp] " \ - "AD9510 function read value = 0x%08X\n", value); \ - } \ - ) \ - } \ - else { \ - WHEN(ISEMPTY(write_func))( \ - DBE_DEBUG (DBG_SM_IO | DBG_LVL_TRACE, "[sm_io:fmc250m_4ch_exp] " \ - "AD9510 write function not implemented\n"); \ - err = -FMC250M_4CH_UNINPL; \ - return err; \ - ) \ - WHENNOT(ISEMPTY(write_func))( \ - serr = ((smch_ad9510_func_fp) write_func) (smch_ad9510, \ - ¶m); \ - if (serr != SMCH_SUCCESS) { \ - err = -FMC250M_4CH_ERR; \ - } \ - else { \ - err = -FMC250M_4CH_OK; \ - } \ - ) \ - } \ - \ -err_get_fmc250m_handler: \ - return err; \ - } while(0) - -static smch_err_e smch_ad9510_cfg_defaults_compat (smch_ad9510_t *self, uint32_t *param) -{ - (void) param; - return smch_ad9510_cfg_defaults (self); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(cfg_defaults) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, /* No read function */, - smch_ad9510_cfg_defaults_compat, "Could not set/get AD9510 defaults"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(pll_a_div) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_pll_a_div, - smch_ad9510_set_pll_a_div, "Could not set/get AD9510 PLL A divider"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(pll_b_div) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_pll_b_div, - smch_ad9510_set_pll_b_div, "Could not set/get AD9510 PLL B divider"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(pll_prescaler) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_pll_prescaler, - smch_ad9510_set_pll_prescaler, "Could not set/get AD9510 PLL Prescaler"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(r_div) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_r_div, - smch_ad9510_set_r_div, "Could not set/get AD9510 R Divider"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(pll_pdown) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_pll_pdown, - smch_ad9510_set_pll_pdown, "Could not set/get AD9510 PLL power down"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(mux_status) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_mux_status, - smch_ad9510_set_mux_status, "Could not set/get AD9510 MUX status"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(cp_current) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_cp_current, - smch_ad9510_set_cp_current, "Could not set/get AD9510 CP current"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(outputs) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_outputs, - smch_ad9510_set_outputs, "Could not set/get AD9510 Outputs"); -} - -FMC250M_4CH_AD9510_FUNC_NAME_HEADER(pll_clk_sel) -{ - FMC250M_4CH_AD9510_FUNC_BODY(owner, args, ret, smch_ad9510_get_pll_clk_sel, - smch_ad9510_set_pll_clk_sel, - "Could not set/get AD9510 PLL CLK selection"); -} - -/* Macros to avoid repetition of the function body Si57X */ -typedef smch_err_e (*smch_si57x_func_fp) (smch_si57x_t *self, double param); - -#define FMC250M_4CH_SI571_FUNC_NAME(func_name) \ - _fmc250m_4ch_si571_ ## func_name - -#define FMC250M_4CH_SI571_FUNC_NAME_HEADER(func_name) \ - static int FMC250M_4CH_SI571_FUNC_NAME(func_name) (void *owner, void *args, void *ret) - -#define FMC250M_4CH_SI571_FUNC_BODY(owner, args, ret, func, error_msg) \ - do { \ - (void) ret; \ - assert (owner); \ - assert (args); \ - \ - int err = -FMC250M_4CH_OK; \ - SMIO_OWNER_TYPE *self = SMIO_EXP_OWNER(owner); \ - smio_fmc250m_4ch_t *fmc250m = smio_get_handler (self); \ - ASSERT_TEST(fmc250m != NULL, "Could not get SMIO FMC250M handler", \ - err_get_fmc250m_handler, -FMC250M_4CH_ERR); \ - smch_si57x_t *smch_si57x = SMIO_SI57X_HANDLER(fmc250m); \ - uint32_t rw = *(uint32_t *) EXP_MSG_ZMQ_FIRST_ARG(args); \ - (void) rw; /* Ignored for now */ \ - double param = *(double *) EXP_MSG_ZMQ_NEXT_ARG(args); \ - \ - FMC250M_4CH_CHECK_ACTIVE(self); \ - \ - /* Call specific function */ \ - smch_err_e serr = ((smch_si57x_func_fp) func) (smch_si57x, param); \ - ASSERT_TEST(serr == SMCH_SUCCESS, error_msg, \ - err_smpr_write, -FMC250M_4CH_ERR); \ - \ -err_smpr_write: \ -err_get_fmc250m_handler: \ - return err; \ - \ - } while(0) - -FMC250M_4CH_SI571_FUNC_NAME_HEADER(set_freq) -{ - FMC250M_4CH_SI571_FUNC_BODY(owner, args, ret, smch_si57x_set_freq, - "Could not set SI571 frequency"); -} - -FMC250M_4CH_SI571_FUNC_NAME_HEADER(get_defaults) -{ - FMC250M_4CH_SI571_FUNC_BODY(owner, args, ret, smch_si57x_get_defaults, - "Could not restart SI571 to its defaults"); -} - /***************************** ADC ISLA216P Control ***************************/ #define BPM_FMC250M_4CH_RST_ADCS_MIN 0 /* Do nothing on RST_ADCS pin */ @@ -738,11 +444,6 @@ FMC250M_4CH_ISLA216P_FUNC_NAME_HEADER(test_mode3) /* Exported function pointers */ const disp_table_func_fp fmc250m_4ch_exp_fp [] = { - RW_PARAM_FUNC_NAME(fmc250m_4ch, leds), - RW_PARAM_FUNC_NAME(fmc250m_4ch, si571_oe), - RW_PARAM_FUNC_NAME(fmc250m_4ch, pll_func), - RW_PARAM_FUNC_NAME(fmc250m_4ch, pll_status), - RW_PARAM_FUNC_NAME(fmc250m_4ch, clk_sel), #if 0 RW_PARAM_FUNC_NAME(fmc250m_4ch, adc_rand), RW_PARAM_FUNC_NAME(fmc250m_4ch, adc_dith), @@ -771,22 +472,6 @@ const disp_table_func_fp fmc250m_4ch_exp_fp [] = { FMC250M_4CH_ADC_DLY_FUNC_NAME(2), FMC250M_4CH_ADC_DLY_FUNC_NAME(3), #endif - RW_PARAM_FUNC_NAME(fmc250m_4ch, test_data_en), - RW_PARAM_FUNC_NAME(fmc250m_4ch, trig_dir), - RW_PARAM_FUNC_NAME(fmc250m_4ch, trig_term), - RW_PARAM_FUNC_NAME(fmc250m_4ch, trig_val), - FMC250M_4CH_AD9510_FUNC_NAME(cfg_defaults), - FMC250M_4CH_AD9510_FUNC_NAME(pll_a_div), - FMC250M_4CH_AD9510_FUNC_NAME(pll_b_div), - FMC250M_4CH_AD9510_FUNC_NAME(pll_prescaler), - FMC250M_4CH_AD9510_FUNC_NAME(r_div), - FMC250M_4CH_AD9510_FUNC_NAME(pll_pdown), - FMC250M_4CH_AD9510_FUNC_NAME(mux_status), - FMC250M_4CH_AD9510_FUNC_NAME(cp_current), - FMC250M_4CH_AD9510_FUNC_NAME(outputs), - FMC250M_4CH_AD9510_FUNC_NAME(pll_clk_sel), - FMC250M_4CH_SI571_FUNC_NAME(set_freq), - FMC250M_4CH_SI571_FUNC_NAME(get_defaults), RW_PARAM_FUNC_NAME(fmc250m_4ch, rst_adcs), RW_PARAM_FUNC_NAME(fmc250m_4ch, rst_div_adcs), FMC250M_4CH_ISLA216P_FUNC_NAME(test_mode0), diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.c b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.c index 39361ac1481c9d287e23ba4bb618471873801056..51a69a646b25ef00ad9398a92d77969f22df1f38 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.c +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.c @@ -10,67 +10,6 @@ /* Description SMIO FMC250M_4CH functions */ -disp_op_t fmc250m_4ch_leds_exp = { - .name = FMC250M_4CH_NAME_LEDS, - .opcode = FMC250M_4CH_OPCODE_LEDS, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_si571_oe_exp = { - .name = FMC250M_4CH_NAME_SI571_OE, - .opcode = FMC250M_4CH_OPCODE_SI571_OE, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - - -disp_op_t fmc250m_4ch_pll_func_exp = { - .name = FMC250M_4CH_NAME_PLL_FUNCTION, - .opcode = FMC250M_4CH_OPCODE_PLL_FUNCTION, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_pll_status_exp = { - .name = FMC250M_4CH_NAME_PLL_STATUS, - .opcode = FMC250M_4CH_OPCODE_PLL_STATUS, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_clk_sel_exp = { - .name = FMC250M_4CH_NAME_CLK_SEL, - .opcode = FMC250M_4CH_OPCODE_CLK_SEL, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - disp_op_t fmc250m_4ch_rst_adcs_exp = { .name = FMC250M_4CH_NAME_RST_ADCS, .opcode = FMC250M_4CH_OPCODE_RST_ADCS, @@ -388,198 +327,6 @@ disp_op_t fmc250m_4ch_adc_dly3_exp = { }; #endif -disp_op_t fmc250m_4ch_test_data_en_exp = { - .name = FMC250M_4CH_NAME_TEST_DATA_EN, - .opcode = FMC250M_4CH_OPCODE_TEST_DATA_EN, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_trig_dir_exp = { - .name = FMC250M_4CH_NAME_TRIG_DIR, - .opcode = FMC250M_4CH_OPCODE_TRIG_DIR, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_trig_term_exp = { - .name = FMC250M_4CH_NAME_TRIG_TERM, - .opcode = FMC250M_4CH_OPCODE_TRIG_TERM, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_trig_val_exp = { - .name = FMC250M_4CH_NAME_TRIG_VAL, - .opcode = FMC250M_4CH_OPCODE_TRIG_VAL, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_cfg_defaults_exp = { - .name = FMC250M_4CH_NAME_AD9510_CFG_DEFAULTS, - .opcode = FMC250M_4CH_OPCODE_AD9510_CFG_DEFAULTS, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_pll_a_div_exp = { - .name = FMC250M_4CH_NAME_AD9510_PLL_A_DIV, - .opcode = FMC250M_4CH_OPCODE_AD9510_PLL_A_DIV, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_pll_b_div_exp = { - .name = FMC250M_4CH_NAME_AD9510_PLL_B_DIV, - .opcode = FMC250M_4CH_OPCODE_AD9510_PLL_B_DIV, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_pll_prescaler_exp = { - .name = FMC250M_4CH_NAME_AD9510_PLL_PRESCALER, - .opcode = FMC250M_4CH_OPCODE_AD9510_PLL_PRESCALER, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_r_div_exp = { - .name = FMC250M_4CH_NAME_AD9510_R_DIV, - .opcode = FMC250M_4CH_OPCODE_AD9510_R_DIV, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_pll_pdown_exp = { - .name = FMC250M_4CH_NAME_AD9510_PLL_PDOWN, - .opcode = FMC250M_4CH_OPCODE_AD9510_PLL_PDOWN, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_mux_status_exp = { - .name = FMC250M_4CH_NAME_AD9510_MUX_STATUS, - .opcode = FMC250M_4CH_OPCODE_AD9510_MUX_STATUS, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_cp_current_exp = { - .name = FMC250M_4CH_NAME_AD9510_CP_CURRENT, - .opcode = FMC250M_4CH_OPCODE_AD9510_CP_CURRENT, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_outputs_exp = { - .name = FMC250M_4CH_NAME_AD9510_OUTPUTS, - .opcode = FMC250M_4CH_OPCODE_AD9510_OUTPUTS, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_ad9510_pll_clk_sel_exp = { - .name = FMC250M_4CH_NAME_AD9510_PLL_CLK_SEL, - .opcode = FMC250M_4CH_OPCODE_AD9510_PLL_CLK_SEL, - .retval = DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_si571_set_freq_exp = { - .name = FMC250M_4CH_NAME_SI571_SET_FREQ, - .opcode = FMC250M_4CH_OPCODE_SI571_SET_FREQ, - .retval = DISP_ARG_END, - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_DOUBLE, double), - DISP_ARG_END - } -}; - -disp_op_t fmc250m_4ch_si571_get_defaults_exp = { - .name = FMC250M_4CH_NAME_SI571_GET_DEFAULTS, - .opcode = FMC250M_4CH_OPCODE_SI571_GET_DEFAULTS, - .retval = DISP_ARG_END, - .retval_owner = DISP_OWNER_OTHER, - .args = { - DISP_ARG_ENCODE(DISP_ATYPE_UINT32, uint32_t), - DISP_ARG_ENCODE(DISP_ATYPE_DOUBLE, double), - DISP_ARG_END - } -}; - disp_op_t fmc250m_4ch_test_mode0_exp = { .name = FMC250M_4CH_NAME_TESTMODE0, .opcode = FMC250M_4CH_OPCODE_TESTMODE0, @@ -630,11 +377,6 @@ disp_op_t fmc250m_4ch_test_mode3_exp = { /* Exported function description */ const disp_op_t *fmc250m_4ch_exp_ops [] = { - &fmc250m_4ch_leds_exp, - &fmc250m_4ch_si571_oe_exp, - &fmc250m_4ch_pll_func_exp, - &fmc250m_4ch_pll_status_exp, - &fmc250m_4ch_clk_sel_exp, #if 0 &fmc250m_4ch_adc_rand_exp, &fmc250m_4ch_adc_dith_exp, @@ -663,22 +405,6 @@ const disp_op_t *fmc250m_4ch_exp_ops [] = { &fmc250m_4ch_adc_dly2_exp, &fmc250m_4ch_adc_dly3_exp, #endif - &fmc250m_4ch_test_data_en_exp, - &fmc250m_4ch_trig_dir_exp, - &fmc250m_4ch_trig_term_exp, - &fmc250m_4ch_trig_val_exp, - &fmc250m_4ch_ad9510_cfg_defaults_exp, - &fmc250m_4ch_ad9510_pll_a_div_exp, - &fmc250m_4ch_ad9510_pll_b_div_exp, - &fmc250m_4ch_ad9510_pll_prescaler_exp, - &fmc250m_4ch_ad9510_r_div_exp, - &fmc250m_4ch_ad9510_pll_pdown_exp, - &fmc250m_4ch_ad9510_mux_status_exp, - &fmc250m_4ch_ad9510_cp_current_exp, - &fmc250m_4ch_ad9510_outputs_exp, - &fmc250m_4ch_ad9510_pll_clk_sel_exp, - &fmc250m_4ch_si571_set_freq_exp, - &fmc250m_4ch_si571_get_defaults_exp, &fmc250m_4ch_rst_adcs_exp, &fmc250m_4ch_rst_div_adcs_exp, &fmc250m_4ch_test_mode0_exp, diff --git a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.h b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.h index 52cb0100f5be0858bf931c77d0f23e39f5584f5c..fa69151d1a6611d45aea921ddbdfbfa412a7772a 100644 --- a/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.h +++ b/src/sm_io/modules/fmc250m_4ch/sm_io_fmc250m_4ch_exports.h @@ -10,11 +10,6 @@ #include "disptable.h" -extern disp_op_t fmc250m_4ch_leds_exp; -extern disp_op_t fmc250m_4ch_si571_oe_exp; -extern disp_op_t fmc250m_4ch_pll_func_exp; -extern disp_op_t fmc250m_4ch_pll_status_exp; -extern disp_op_t fmc250m_4ch_clk_sel_exp; #if 0 extern disp_op_t fmc250m_4ch_adc_rand_exp; extern disp_op_t fmc250m_4ch_adc_dith_exp; @@ -43,22 +38,6 @@ extern disp_op_t fmc250m_4ch_adc_dly1_exp; extern disp_op_t fmc250m_4ch_adc_dly2_exp; extern disp_op_t fmc250m_4ch_adc_dly3_exp; #endif -extern disp_op_t fmc250m_4ch_test_data_en_exp; -extern disp_op_t fmc250m_4ch_trig_dir_exp; -extern disp_op_t fmc250m_4ch_trig_term_exp; -extern disp_op_t fmc250m_4ch_trig_val_exp; -extern disp_op_t fmc250m_4ch_ad9510_cfg_defaults_exp; -extern disp_op_t fmc250m_4ch_ad9510_pll_a_div_exp; -extern disp_op_t fmc250m_4ch_ad9510_pll_b_div_exp; -extern disp_op_t fmc250m_4ch_ad9510_pll_prescaler_exp; -extern disp_op_t fmc250m_4ch_ad9510_r_div_exp; -extern disp_op_t fmc250m_4ch_ad9510_pll_pdown_exp; -extern disp_op_t fmc250m_4ch_ad9510_mux_status_exp; -extern disp_op_t fmc250m_4ch_ad9510_cp_current_exp; -extern disp_op_t fmc250m_4ch_ad9510_outputs_exp; -extern disp_op_t fmc250m_4ch_ad9510_pll_clk_sel_exp; -extern disp_op_t fmc250m_4ch_si571_set_freq_exp; -extern disp_op_t fmc250m_4ch_si571_get_defaults_exp; extern disp_op_t fmc250m_4ch_rst_adcs_exp; extern disp_op_t fmc250m_4ch_rst_div_adcs_exp; extern disp_op_t fmc250m_4ch_test_mode0_exp;