static int cs5529_do_conversion(comedi_device * dev, unsigned short *data);
static int cs5529_ai_insn_read(comedi_device * dev, comedi_subdevice * s,
comedi_insn * insn, lsampl_t * data);
+#ifdef NI_CS5529_DEBUG
static unsigned int cs5529_config_read(comedi_device * dev,
unsigned int reg_select_bits);
+#endif
static void cs5529_config_write(comedi_device * dev, unsigned int value,
unsigned int reg_select_bits);
comedi_error(dev, "time or signal in cs5529_config_write()");
}
+#ifdef NI_CS5529_DEBUG
/* read from cs5529 register */
static unsigned int cs5529_config_read(comedi_device * dev,
unsigned int reg_select_bits)
value |= ni_ao_win_inw(dev, CAL_ADC_Config_Data_Low_Word_67xx) & 0xffff;
return value;
}
+#endif
static int cs5529_do_conversion(comedi_device * dev, unsigned short *data)
{
if (cs5529_wait_for_idle(dev))
comedi_error(dev, "timeout or signal in init_cs5529()\n");
#endif
-#if 0
+#ifdef NI_CS5529_DEBUG
rt_printk("config: 0x%x\n", cs5529_config_read(dev,
CSCMD_CONFIG_REGISTER));
rt_printk("gain: 0x%x\n", cs5529_config_read(dev,