From: OpenOCD-Gerrit <ope...@us...> - 2021-10-25 16:10:50
|
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 8a522d96c79aed654fc7273c7c5c3f680c91c333 (commit) via 0184ddba186fa618775865792e1eda9e86d9bb91 (commit) from 8f1971295b251dc13b687db493c2daa7f922e940 (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 8a522d96c79aed654fc7273c7c5c3f680c91c333 Author: Antonio Borneo <bor...@gm...> Date: Sat Oct 2 14:22:06 2021 +0200 flash/nor/psoc6: fix doxygen comment Commit 64c2e03b23d9 ("flash/nor: improved API of flash_driver.info & fixed buffer overruns") changes the prototype of the function psoc6_get_info() but didn't update the list of parameters in the doxygen comment. Fix the doxygen comment. Change-Id: I1dce018b60d080973c5e351490d4d7baba422d74 Signed-off-by: Antonio Borneo <bor...@gm...> Fixes: 64c2e03b23d9 ("flash/nor: improved API of flash_driver.info & fixed buffer overruns") Reviewed-on: https://review.openocd.org/c/openocd/+/6620 Reviewed-by: Tomas Vanek <va...@fb...> Tested-by: jenkins diff --git a/src/flash/nor/psoc6.c b/src/flash/nor/psoc6.c index 8a4121950..d3a4b3702 100644 --- a/src/flash/nor/psoc6.c +++ b/src/flash/nor/psoc6.c @@ -492,8 +492,7 @@ static const char *protection_to_str(uint8_t protection) /** *********************************************************************************************** * @brief psoc6_get_info Displays human-readable information about acquired device * @param bank current flash bank - * @param buf pointer to buffer for human-readable text - * @param buf_size size of the buffer + * @param cmd pointer to command invocation instance * @return ERROR_OK in case of success, ERROR_XXX code otherwise *************************************************************************************************/ static int psoc6_get_info(struct flash_bank *bank, struct command_invocation *cmd) commit 0184ddba186fa618775865792e1eda9e86d9bb91 Author: Antonio Borneo <bor...@gm...> Date: Wed Sep 22 23:14:22 2021 +0200 command: document enum command_mode Add the description to doxygen documentation. Change-Id: Iec04b4a37088e1b3b52ca84102820f450528b5b9 Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/6593 Tested-by: jenkins diff --git a/src/helper/command.h b/src/helper/command.h index fb9e50c85..796cd9d3b 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -38,6 +38,15 @@ #define PRINTF_ATTRIBUTE_FORMAT printf #endif +/** + * OpenOCD command mode is COMMAND_CONFIG at start, then switches to COMMAND_EXEC + * during the execution of command 'init'. + * The field 'mode' in struct command_registration specifies in which command mode + * the command can be executed: + * - during COMMAND_CONFIG only, + * - during COMMAND_EXEC only, + * - in both modes (COMMAND_ANY). + */ enum command_mode { COMMAND_EXEC, COMMAND_CONFIG, ----------------------------------------------------------------------- Summary of changes: src/flash/nor/psoc6.c | 3 +-- src/helper/command.h | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) hooks/post-receive -- Main OpenOCD repository |