swlink: Allow to enable debug on second VCOM.

This commit is contained in:
Uwe Bonnes 2018-09-22 22:33:38 +02:00 committed by Gareth McMullin
parent 0d246fb31a
commit 7cafc44bd9
1 changed files with 5 additions and 2 deletions

View File

@ -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