int start_stop_select=0;
unsigned int stop_count;
int interrupt_a_enable=0;
-
+
MDPRINTK("ni_ai_cmd\n");
win_out(1,ADC_FIFO_Clear);
/* start configuration */
win_out(AI_Configuration_Start,Joint_Reset_Register);
+ /* disable analog triggering for now, since it
+ * interferes with the use of pfi0 */
+ devpriv->an_trig_etc_reg &= ~Analog_Trigger_Enable;
+ win_out(devpriv->an_trig_etc_reg, Analog_Trigger_Etc_Register);
+
switch(cmd->start_src){
case TRIG_INT:
case TRIG_NOW:
#define G1_Arm _bit0
/*Analog_Trigger_Etc_Register*/
-/*This is mainly a counter/timer register */
-#define GPFO_1_Output_Enable _bit15
-#define GPFO_0_Output_Enable _bit14
-#define GPFO_0_Output_Select(a) ((a)<<11)
+#define Analog_Trigger_Mode(x) ((x) & 0x7)
+#define Analog_Trigger_Enable _bit3
+#define Analog_Trigger_Drive _bit4
#define GPFO_1_Output_Select _bit7
+#define GPFO_0_Output_Select(a) ((a)<<11)
+#define GPFO_0_Output_Enable _bit14
+#define GPFO_1_Output_Enable _bit15
/* Additional windowed registers unique to E series */