From e2f2be1b484227c75715ba4bc4172cdca18c175c Mon Sep 17 00:00:00 2001 From: John Winans Date: Wed, 8 Jun 1994 10:44:47 +0000 Subject: [PATCH] Changed all accesses to vxMemProbe's in the ^X reset logic --- src/drv/drvGpib.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/drv/drvGpib.c b/src/drv/drvGpib.c index c22db9d1a..4be758fbf 100644 --- a/src/drv/drvGpib.c +++ b/src/drv/drvGpib.c @@ -262,6 +262,7 @@ reportGpib(void) STATIC void rebootFunc(void) { int i; + char probeValue; if (ibDebug) printf("NI-GPIB driver resetting\n"); @@ -270,12 +271,14 @@ STATIC void rebootFunc(void) { if (pNiLink[i] != NULL) { - pNiLink[i]->ibregs->ch1.ccr = 0; /* stop all channel operation */ - pNiLink[i]->ibregs->ch0.ccr = 0; /* stop all channel operation */ + probeValue = 0; + vxMemProbe(&(pNiLink[i]->ibregs->ch1.ccr), WRITE, 1, &probeValue); + vxMemProbe(&(pNiLink[i]->ibregs->ch0.ccr), WRITE, 1, &probeValue); taskDelay(1); /* Let it settle */ - - pNiLink[i]->ibregs->cfg2 = 0; - pNiLink[i]->ibregs->cfg2 = D_LMR; + + vxMemProbe(&(pNiLink[i]->ibregs->cfg2), WRITE, 1, &probeValue); + probeValue = D_LMR; + vxMemProbe(&(pNiLink[i]->ibregs->cfg2), WRITE, 1, &probeValue); } } taskDelay(2);