summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:00:43 -0500
committerroot <root@avtech.domain.avtechpulse.com>1999-12-31 19:00:43 -0500
commitc913a7c30a6c830b159e6fcfee512340a577b6a6 (patch)
tree7495bc91790ddcfe6ede9ff186580a0dd09b276e
parent4ab5e0565f847f58dba4d97a40681e687f36b08a (diff)
reset TNT4882 a little bit earlier
-rw-r--r--bus.c6
-rw-r--r--gpib.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/bus.c b/bus.c
index 1c77e70..b3ac833 100644
--- a/bus.c
+++ b/bus.c
@@ -389,6 +389,12 @@ void bus_init()
// the POWER_FAIL pin is an input
gpio_changedirection(gpio_pins[POWER_FAIL], false);
+
+ // reset the TNT4882 chip
+ bus_setpin(RST_GPIB, 0);
+ g_usleep(10);
+ bus_setpin(RST_GPIB, 1);
+ g_usleep(10);
}
}
diff --git a/gpib.c b/gpib.c
index 88986b4..46b1e14 100644
--- a/gpib.c
+++ b/gpib.c
@@ -413,13 +413,6 @@ static void TNT_Gen_Error(int code)
/*----------------------------------------------------------------------------------------------------------*/
void GPIB_initialize(void)
{
- // The RST_GPIB pin should already be low - defaults to low at
- // power on.
- bus_setpin(RST_GPIB, 0);
- g_usleep(1);
- bus_setpin(RST_GPIB, 1);
- g_usleep(100);
-
INTERFACE_STATUS=0; /* Initialize Globals to zero */
INTERFACE_ERROR=0;
DATA_COUNT=0;