From 7cafc44bd9bda15bfcdbeafa7d1db4e08f2eb81d Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sat, 22 Sep 2018 22:33:38 +0200 Subject: [PATCH] swlink: Allow to enable debug on second VCOM. --- src/platforms/swlink/platform.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/platforms/swlink/platform.h b/src/platforms/swlink/platform.h index 731299a5..52df074c 100644 --- a/src/platforms/swlink/platform.h +++ b/src/platforms/swlink/platform.h @@ -30,6 +30,11 @@ #include "timing_stm32.h" #include "version.h" +#ifdef ENABLE_DEBUG +# define PLATFORM_HAS_DEBUG +# define USBUART_DEBUG +#endif + #define BOARD_IDENT "Black Magic Probe (SWLINK), (Firmware " FIRMWARE_VERSION ")" #define BOARD_IDENT_DFU "Black Magic (Upgrade), SWLINK, (Firmware " FIRMWARE_VERSION ")" #define BOARD_IDENT_UPD "Black Magic (DFU Upgrade), SWLINK, (Firmware " FIRMWARE_VERSION ")" @@ -114,8 +119,6 @@ #define TRACE_TRIG_IN TIM_SMCR_TS_IT1FP2 #ifdef ENABLE_DEBUG -# define PLATFORM_HAS_DEBUG -# define USBUART_DEBUG extern bool debug_bmp; int usbuart_debug_write(const char *buf, size_t len); # define DEBUG printf