projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5807f19
)
Prevent glitches when transitioning from static control of dio lines
author
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 24 Oct 2007 18:14:55 +0000
(18:14 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 24 Oct 2007 18:14:55 +0000
(18:14 +0000)
to waveform output.
comedi/drivers/ni_mio_common.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/ni_mio_common.c
b/comedi/drivers/ni_mio_common.c
index 999211ec08e71288d54a33af637232df69d15819..b5002f42792d1640004b791e517d8a385fb4fd3d 100644
(file)
--- a/
comedi/drivers/ni_mio_common.c
+++ b/
comedi/drivers/ni_mio_common.c
@@
-3171,6
+3171,8
@@
static int ni_ao_reset(comedi_device *dev,comedi_subdevice *s)
return 0;
}
+// digital io
+
static int ni_dio_insn_config(comedi_device *dev,comedi_subdevice *s,
comedi_insn *insn,lsampl_t *data)
{
@@
-3392,6
+3394,8
@@
static int ni_cdio_cmd(comedi_device *dev, comedi_subdevice *s)
ni_writel(cdo_mode_bits, M_Offset_CDO_Mode);
if(s->io_bits)
{
+ ni_writel(s->state, M_Offset_CDO_FIFO_Data);
+ ni_writel(CDO_SW_Update_Bit, M_Offset_CDIO_Command);
ni_writel(s->io_bits, M_Offset_CDO_Mask_Enable);
}else
{