summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2025-12-10 15:44:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 18:33:13 +0300
commitb842f8c6397ab59786ad5d5bb8c6899d2fc55ae9 (patch)
treef44c2eba4af795a7ffce2490000c43922b6c057e /include/linux/timerqueue.h
parentd63cf1eea10c904c1b31b22ff3e118033ec7edfb (diff)
downloadlinux-b842f8c6397ab59786ad5d5bb8c6899d2fc55ae9.tar.xz
comedi: comedi_test: add a DIO subdevice
The fake "comedi_test" device currently has two subdevices: an analog input subdevice, and an analog output subdevice. To make it a bit more useful for testing, add a third subdevice for digital I/O. The new DIO subdevice has 32 channels with each channel individually programmable as an input or an output. To add a bit of interaction, channels 0 to 15 are wired to channels 16 to 31 (0 to 16, 1 to 17, etc.), and the state of each wire can be read back on both of the channels connected to it. The outputs are modelled as NPN open collector outputs with a pull-up resistor on the wire, so the state of each wire (and the value read back from each channel connected to it) will be logic level 1 unless either channel is configured as an output at logic level 0. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Link: https://patch.msgid.link/20251210124455.69131-1-abbotti@mev.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions