zy1000: fix tcl command to read power dropout status
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>__archive__
parent
82ea640830
commit
2fba796e27
|
@ -434,10 +434,9 @@ zylinjtag_Jim_Command_powerstatus(Jim_Interp *interp,
|
||||||
return JIM_ERR;
|
return JIM_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t status;
|
bool dropout = readPowerDropout();
|
||||||
ZY1000_PEEK(ZY1000_JTAG_BASE + 0x10, status);
|
|
||||||
|
|
||||||
Jim_SetResult(interp, Jim_NewIntObj(interp, (status&0x80) != 0));
|
Jim_SetResult(interp, Jim_NewIntObj(interp, dropout));
|
||||||
|
|
||||||
return JIM_OK;
|
return JIM_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue