From: Øyvind H. <go...@us...> - 2010-02-05 14:37:30
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 41d0901115903cb02b42249690b33cf616e133b5 (commit) from ff5deeeeaa4f394931e3c5ccfb4cfd33beda0743 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 41d0901115903cb02b42249690b33cf616e133b5 Author: Ãyvind Harboe <oyv...@zy...> Date: Fri Feb 5 14:38:26 2010 +0100 zy1000: complete zy1000_uart to jim command switch Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/src/ecosboard.c b/src/ecosboard.c index 2e73585..f752354 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -847,7 +847,7 @@ static int zylinjtag_Jim_Command_uart(Jim_Interp *interp, int argc, static int current_baud = 38400; if (argc == 1) { - command_print(cmd_ctx, "%d", current_baud); + Jim_SetResult(interp, Jim_NewIntObj(interp, current_baud)); return JIM_OK; } else if (argc != 2) @@ -883,8 +883,8 @@ static int zylinjtag_Jim_Command_uart(Jim_Interp *interp, int argc, baud = CYGNUM_SERIAL_BAUD_230400; break; default: - command_print(cmd_ctx, "unsupported baudrate"); - return ERROR_INVALID_ARGUMENTS; + Jim_SetResult(interp, Jim_NewStringObj(interp, "unsupported baudrate", -1)); + return JIM_ERR; } cyg_serial_info_t buf; @@ -897,7 +897,7 @@ static int zylinjtag_Jim_Command_uart(Jim_Interp *interp, int argc, err = cyg_io_lookup(ZY1000_SER_DEV, &serial_handle); if (err != ENOERR) { - LOG_ERROR("Could not open serial port\n"); + Jim_SetResult(interp, Jim_NewStringObj(interp, "Could not open serial port", -1)); return JIM_ERR; } @@ -907,7 +907,7 @@ static int zylinjtag_Jim_Command_uart(Jim_Interp *interp, int argc, &len); if (err != ENOERR) { - LOG_ERROR("Failed to get serial port settings %d", err); + Jim_SetResult(interp, Jim_NewStringObj(interp, "Failed to get serial port settings", -1)); return JIM_ERR; } buf.baud = baud; @@ -916,7 +916,7 @@ static int zylinjtag_Jim_Command_uart(Jim_Interp *interp, int argc, &len); if (err != ENOERR) { - LOG_ERROR("Failed to set serial port settings %d", err); + Jim_SetResult(interp, Jim_NewStringObj(interp, "Failed to set serial port settings", -1)); return JIM_ERR; } ----------------------------------------------------------------------- Summary of changes: src/ecosboard.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) hooks/post-receive -- Main OpenOCD repository |