Output state handling in 8255 driver

Hi,

After using comedi_dio_config (INSN_CONFIG) on a DIO subdevice managed 
by the 8255 driver, the 8255 chip sets all its output lines to 0 but the 
copy of the output state saved by the 8255 driver in the 'state' member 
remains unchanged.

Would it be better if:

(i) the 8255 driver zeroed its output state when configuring the i/o 
directions, or
(ii) the 8255 driver rewrote its current output state to the chip when 
the i/o directions have changed?

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2005-02-14Z12:36:02