summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@xena.domain.avtechpulse.com>2012-09-26 15:20:20 -0400
committerroot <root@xena.domain.avtechpulse.com>2012-09-26 15:20:20 -0400
commit2c2ae8c092ed39033746352bf7f35545c86fca94 (patch)
tree94e5374416cb0cd2fe3850d5d625c4672385d921
parent3bca18ebc2af02f11ca832e04958dbbf0572d186 (diff)
add real read/writes to gpib chip
-rw-r--r--gpib.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gpib.c b/gpib.c
index 7ef84f9..2533787 100644
--- a/gpib.c
+++ b/gpib.c
@@ -2,6 +2,7 @@
#include "globals.h"
#include "flash.h"
#include "error_utils.h"
+#include "bus.h"
/* TNT Configuration --------------------------------------------------------*/
@@ -582,15 +583,13 @@ static unsigned long int TNT_DATA_COUNT()
static void TNT_Out(int reg, unsigned int byte)
{
- ;
- // FIXME WrPortE(TNT_Port + reg, NULL, byte);
+ bus_writebyte (TNT_Port, (uint8_t) byte);
}
static unsigned char TNT_In(int reg)
{
- return 0;
- // FIXME return RdPortE(TNT_Port + reg);
+ return (unsigned char) bus_readbyte (TNT_Port);
}