Skip to content

Commit dac348d

Browse files
Adrian Negreanumbrossard
authored andcommitted
lpc4322 (SWO): make SWO_UART configurable
This way, one can set SWO_UART from the target's yaml. Signed-off-by: Adrian Negreanu <[email protected]>
1 parent 90172d5 commit dac348d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/hic_hal/nxp/lpc4322/DAP_config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ typedef unsigned int BOOL;
101101

102102
/// Indicate that UART Serial Wire Output (SWO) trace is available.
103103
/// This information is returned by the command \ref DAP_Info as part of <b>Capabilities</b>.
104+
#if !defined(SWO_UART)
104105
#define SWO_UART 0 ///< SWO UART: 1 = available, 0 = not available
106+
#endif
105107

106108
/// USART Driver instance number for the UART SWO.
107109
#define SWO_UART_DRIVER 0 ///< USART Driver instance number (Driver_USART#).

0 commit comments

Comments
 (0)