diff options
-rw-r--r-- | bus.c | 6 | ||||
-rw-r--r-- | gpib.c | 7 |
2 files changed, 6 insertions, 7 deletions
@@ -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); } } @@ -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; |