projects
/
fw
/
openocd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82ea640
)
zy1000: fix tcl command to read power dropout status
author
Øyvind Harboe
<oyvind.harboe@zylin.com>
Wed, 5 May 2010 06:19:40 +0000
(08:19 +0200)
committer
Øyvind Harboe
<oyvind.harboe@zylin.com>
Wed, 5 May 2010 13:24:24 +0000
(15:24 +0200)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/jtag/zy1000/zy1000.c
patch
|
blob
|
history
diff --git
a/src/jtag/zy1000/zy1000.c
b/src/jtag/zy1000/zy1000.c
index 2fac1767ad7ff449b7c5f32158427e1c75e3aefe..b3f94e5cd7e784e01ef6bce59718895d3f414d38 100644
(file)
--- a/
src/jtag/zy1000/zy1000.c
+++ b/
src/jtag/zy1000/zy1000.c
@@
-434,10
+434,9
@@
zylinjtag_Jim_Command_powerstatus(Jim_Interp *interp,
return JIM_ERR;
}
- uint32_t status;
- ZY1000_PEEK(ZY1000_JTAG_BASE + 0x10, status);
+ bool dropout = readPowerDropout();
- Jim_SetResult(interp, Jim_NewIntObj(interp,
(status&0x80) != 0
));
+ Jim_SetResult(interp, Jim_NewIntObj(interp,
dropout
));
return JIM_OK;
}