1 /* 2 * Copyright 2018 NXP 3 * All rights reserved. 4 * 5 * SPDX-License-Identifier: BSD-3-Clause 6 */ 7 8 #ifndef __SERIAL_PORT_SWO_H__ 9 #define __SERIAL_PORT_SWO_H__ 10 11 /*! 12 * @addtogroup serial_port_swo 13 * @ingroup serialmanager 14 * @{ 15 */ 16 17 /******************************************************************************* 18 * Definitions 19 ******************************************************************************/ 20 /*! @brief serial port swo handle size*/ 21 #define SERIAL_PORT_SWO_HANDLE_SIZE (12U) 22 23 /*! @brief serial port swo protocol*/ 24 typedef enum _serial_port_swo_protocol 25 { 26 kSerialManager_SwoProtocolManchester = 1U, /*!< SWO Manchester protocol */ 27 kSerialManager_SwoProtocolNrz = 2U, /*!< SWO UART/NRZ protocol */ 28 } serial_port_swo_protocol_t; 29 30 /*! @brief serial port swo config struct*/ 31 typedef struct _serial_port_swo_config 32 { 33 uint32_t clockRate; /*!< clock rate */ 34 uint32_t baudRate; /*!< baud rate */ 35 uint32_t port; /*!< Port used to transfer data */ 36 serial_port_swo_protocol_t protocol; /*!< SWO protocol */ 37 } serial_port_swo_config_t; 38 /*! @} */ 39 #endif /* __SERIAL_PORT_SWO_H__ */ 40