From c913a7c30a6c830b159e6fcfee512340a577b6a6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Dec 1999 19:00:43 -0500 Subject: reset TNT4882 a little bit earlier --- bus.c | 6 ++++++ gpib.c | 7 ------- 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; -- cgit