summaryrefslogtreecommitdiff
path: root/iotest/src/diasio.cpp
diff options
context:
space:
mode:
authorguest <guest@c30cbac5-9f56-4f76-8ed5-5c34e48a65ae>2007-10-23 15:02:21 +0000
committerguest <guest@c30cbac5-9f56-4f76-8ed5-5c34e48a65ae>2007-10-23 15:02:21 +0000
commit82cd9d0b1c3140af30518fcc28af539fac5906ae (patch)
treedc48a4ea4f35c9023ab91a5ed726faac40d1f954 /iotest/src/diasio.cpp
parent507481336146ca188a9a9d9d1548d5dc81539a60 (diff)
git-svn-id: svn+ssh://mecka.net/home/svn/dds@16 c30cbac5-9f56-4f76-8ed5-5c34e48a65ae
Diffstat (limited to 'iotest/src/diasio.cpp')
-rw-r--r--iotest/src/diasio.cpp11
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 );
}