diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-30 21:36:06 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2009-07-30 21:36:06 +0000 |
commit | 447b50a6dedb5240dd6ce890b6f5d5323a34d980 (patch) | |
tree | e39d76703aef0e5f6ee244ae421f3f7fe6857940 /pyparallel/parallel/parallelwin32.py | |
parent | 3509fba7dc90b3fc6f18687993547af6d4cc398d (diff) | |
download | pyserial-git-447b50a6dedb5240dd6ce890b6f5d5323a34d980.tar.gz |
- create tag for 2.5-rc1release0_2
- fix name of old 0.2 tag
Diffstat (limited to 'pyparallel/parallel/parallelwin32.py')
-rw-r--r-- | pyparallel/parallel/parallelwin32.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/pyparallel/parallel/parallelwin32.py b/pyparallel/parallel/parallelwin32.py index c8f0d23..5c287cb 100644 --- a/pyparallel/parallel/parallelwin32.py +++ b/pyparallel/parallel/parallelwin32.py @@ -58,8 +58,7 @@ os.environ['PATH'] = os.environ['PATH'] + ';' + os.path.abspath(os.path.dirname( #python extension in earlier versions of this modules _pyparallel = ctypes.windll.simpleio #need to initialize giveio on WinNT based systems -if _pyparallel.init(): - raise IOError('Could not access the giveio driver which is required on NT based systems.') +_pyparallel.init() class Parallel: @@ -77,14 +76,6 @@ class Parallel: def setData(self, value): _pyparallel.outp(self.dataRegAdr, value) - def setDataDir( self, level): - """set for port as input, clear for output""" - if level: - self.ctrlReg |= 0x20 - else: - self.ctrlReg &= ~0x20 - _pyparallel.outp(self.ctrlRegAdr, self.ctrlReg) - # control register output functions def setDataStrobe(self, level): """data strobe bit""" @@ -109,7 +100,7 @@ class Parallel: else: self.ctrlReg = self.ctrlReg & ~0x04 _pyparallel.outp(self.ctrlRegAdr, self.ctrlReg) - + def setSelect(self, level): """select bit""" if level: |