diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-16 12:44:00 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-16 12:44:00 +0000 |
commit | ffe9257a1766ece36a75a4b33d9fa6959182e970 (patch) | |
tree | 0a01eeac39a566935c936d4dbb9a98f381769578 /src/flash | |
parent | f806c8deabfcfa58340c3f1a136d1324faf51e17 (diff) | |
download | openocd_libswd-ffe9257a1766ece36a75a4b33d9fa6959182e970.tar.gz openocd_libswd-ffe9257a1766ece36a75a4b33d9fa6959182e970.tar.bz2 openocd_libswd-ffe9257a1766ece36a75a4b33d9fa6959182e970.tar.xz openocd_libswd-ffe9257a1766ece36a75a4b33d9fa6959182e970.zip |
flash_banks now follow OpenOCD scripting API rules
git-svn-id: svn://svn.berlios.de/openocd/trunk@814 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/flash.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c index 8224e50f..b51db58c 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -164,10 +164,15 @@ static int Jim_Command_flash_banks(Jim_Interp *interp, int argc, Jim_Obj *const Jim_Obj *elem=Jim_NewListObj(interp, NULL, 0); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "name", -1)); Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, p->driver->name, -1)); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "base", -1)); Jim_ListAppendElement(interp, elem, Jim_NewIntObj(interp, p->base)); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "size", -1)); Jim_ListAppendElement(interp, elem, Jim_NewIntObj(interp, p->size)); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "bus_width", -1)); Jim_ListAppendElement(interp, elem, Jim_NewIntObj(interp, p->bus_width)); + Jim_ListAppendElement(interp, elem, Jim_NewStringObj(interp, "chip_width", -1)); Jim_ListAppendElement(interp, elem, Jim_NewIntObj(interp, p->chip_width)); Jim_ListAppendElement(interp, list, elem); |