diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2020-11-13 23:36:24 +0100 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-03-10 21:34:04 +0000 |
commit | dc7b32ea4a00a425a71b3309f3fceb07b8467592 (patch) | |
tree | af0e26bbceb210b596ecaecee09120daf856ad1b /src/target/arm_tpiu_swo.h | |
parent | c945d6e6160598894319860a92b602a192c2c268 (diff) | |
download | riscv-openocd-dc7b32ea4a00a425a71b3309f3fceb07b8467592.zip riscv-openocd-dc7b32ea4a00a425a71b3309f3fceb07b8467592.tar.gz riscv-openocd-dc7b32ea4a00a425a71b3309f3fceb07b8467592.tar.bz2 |
armv7m_trace: get rid of the old tpiu code
Remove all the old tpiu code and replace it with a wrapper that
uses the new commands, prints-out the new commands and informs
about the deprecation.
All the code that handles the deprecated tpiu commands is enclosed
between the comments
/* START_DEPRECATED_TPIU */
and
/* END_DEPRECATED_TPIU */
so will be easy to remove it in the future.
Change-Id: I70b0486770128203b923346382d9a90b8ec08439
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6030
Tested-by: jenkins
Reviewed-by: Adrian M Negreanu <adrian.negreanu@nxp.com>
Diffstat (limited to 'src/target/arm_tpiu_swo.h')
-rw-r--r-- | src/target/arm_tpiu_swo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/target/arm_tpiu_swo.h b/src/target/arm_tpiu_swo.h index e0aed71..5904ce2 100644 --- a/src/target/arm_tpiu_swo.h +++ b/src/target/arm_tpiu_swo.h @@ -3,6 +3,18 @@ #ifndef OPENOCD_TARGET_ARM_TPIU_SWO_H #define OPENOCD_TARGET_ARM_TPIU_SWO_H +/* Values should match TPIU_SPPR_PROTOCOL_xxx */ +enum tpiu_pin_protocol { + TPIU_PIN_PROTOCOL_SYNC = 0, /**< synchronous trace output */ + TPIU_PIN_PROTOCOL_ASYNC_MANCHESTER = 1, /**< asynchronous output with Manchester coding */ + TPIU_PIN_PROTOCOL_ASYNC_UART = 2, /**< asynchronous output with NRZ coding */ +}; + +/* START_DEPRECATED_TPIU */ +/* DEPRECATED: emulation of old command 'tpiu config' */ +extern const struct command_registration arm_tpiu_deprecated_command_handlers[]; +/* END_DEPRECATED_TPIU */ + int arm_tpiu_swo_register_commands(struct command_context *cmd_ctx); int arm_tpiu_swo_cleanup_all(void); |