diff options
author | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:00:43 -0500 |
---|---|---|
committer | root <root@avtech.domain.avtechpulse.com> | 1999-12-31 19:00:43 -0500 |
commit | c913a7c30a6c830b159e6fcfee512340a577b6a6 (patch) | |
tree | 7495bc91790ddcfe6ede9ff186580a0dd09b276e | |
parent | 4ab5e0565f847f58dba4d97a40681e687f36b08a (diff) |
reset TNT4882 a little bit earlier
-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; |