Add serial and PWM subdevice types to `demo/python/info.py`.
authorW. Trevor King <wking@drexel.edu>
Tue, 13 Mar 2012 12:47:48 +0000 (08:47 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 13 Mar 2012 12:55:08 +0000 (08:55 -0400)
This catches it up for the folowing commits to the comedi repository:

  commit 311e9c540217d60bdf56a1dba9eafe474fd3b218
  Author: Bernd Porr <Bernd.Porr@f2s.com>
  Date:   Sun Jan 13 23:07:02 2008 +0000

    Added a proper PWM subdevice for comedi.

  commit 8092ed57ff38e1fcaf75a7e0bf3b8c4f5372f3d7
  Author: Frank Mori Hess <fmhess@speakeasy.net>
  Date:   Sat Jan 31 22:13:09 2004 +0000

    serial dio (SCXI) support from Caleb Tennis

demo/python/info.py

index 15393e057df8777a22fbc538a287bc20aa119675..6d303d320c521fb112270107c75b23ea4297c1bf 100755 (executable)
@@ -26,6 +26,8 @@ subdevice_types = {c.COMEDI_SUBD_UNUSED:"unused",
                   c.COMEDI_SUBD_DO:"digital output",
                   c.COMEDI_SUBD_DIO:"digital I/O",
                   c.COMEDI_SUBD_COUNTER:"counter",
+                  c.COMEDI_SUBD_SERIAL:"serial",
+                  c.COMEDI_SUBD_PWM:"pulse width modulation",
                   c.COMEDI_SUBD_TIMER:"timer",
                   c.COMEDI_SUBD_MEMORY:"memory",
                   c.COMEDI_SUBD_CALIB:"calibration",