diff options
Diffstat (limited to 'iotest/src/diasio.cpp')
| -rw-r--r-- | iotest/src/diasio.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/iotest/src/diasio.cpp b/iotest/src/diasio.cpp index 6d791ba..1219607 100644 --- a/iotest/src/diasio.cpp +++ b/iotest/src/diasio.cpp @@ -32,6 +32,9 @@ static void* watchDogTriggern(void* arg) req.tv_sec = 0; req.tv_nsec = 300000; + + iopl( 3 ); + while(!DIASIO::stop_wd){ outw( out, DIASIO::m_Bereich2 + 0x0c ); nanosleep(&req, NULL); @@ -56,13 +59,15 @@ DIASIO::~DIASIO(){ } void DIASIO::set(TyuInt16 value){ - fprintf(stderr, "writing: %d -> %x + %x\n", value, m_Bereich2, S_AdresseOut); - fflush(stderr); +// fprintf(stderr, "writing: %d -> %x + %x\n", value, m_Bereich2, S_AdresseOut); +// fflush(stderr); + iopl( 3 ); outw( value, m_Bereich2 + S_AdresseOut ); - fprintf(stderr, "DONE\n"); fflush(stderr); +// fprintf(stderr, "DONE\n"); fflush(stderr); } TyuInt16 DIASIO::get(){ + iopl( 3 ); return inw( m_Bereich2 + S_AdresseOut ); } |
