1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #ifndef OPENOCD_TARGET_ARM_TPIU_SWO_H
4 #define OPENOCD_TARGET_ARM_TPIU_SWO_H
6 /* Values should match TPIU_SPPR_PROTOCOL_xxx */
7 enum tpiu_pin_protocol
{
8 TPIU_PIN_PROTOCOL_SYNC
= 0, /**< synchronous trace output */
9 TPIU_PIN_PROTOCOL_ASYNC_MANCHESTER
= 1, /**< asynchronous output with Manchester coding */
10 TPIU_PIN_PROTOCOL_ASYNC_UART
= 2, /**< asynchronous output with NRZ coding */
13 /* START_DEPRECATED_TPIU */
14 /* DEPRECATED: emulation of old command 'tpiu config' */
15 extern const struct command_registration arm_tpiu_deprecated_command_handlers
[];
16 /* END_DEPRECATED_TPIU */
18 int arm_tpiu_swo_register_commands(struct command_context
*cmd_ctx
);
19 int arm_tpiu_swo_cleanup_all(void);
21 #endif /* OPENOCD_TARGET_ARM_TPIU_SWO_H */