From 8e8a53ef12fe102b1fdbb7f29fdc00f147ccb321 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Wed, 6 Apr 2016 19:23:17 -0700 Subject: [PATCH] Added support for Black Magic Probe Mini V2.0e. All BMPM2 prototypes after revision a have their LED0 and LED2 inverted. Because of that we have bumped the hardware revision to swap the LEDs in software. This is easier than messing up the routing of the LEDs. --- src/platforms/native/platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/native/platform.h b/src/platforms/native/platform.h index 4a25feeb..fd8c3ec1 100644 --- a/src/platforms/native/platform.h +++ b/src/platforms/native/platform.h @@ -93,9 +93,9 @@ #define LED_0 GPIO2 #define LED_1 GPIO10 #define LED_2 GPIO11 -#define LED_UART LED_2 +#define LED_UART (platform_hwversion() < 2 ? LED_2 : LED_0) #define LED_IDLE_RUN LED_1 -#define LED_ERROR LED_0 +#define LED_ERROR (platform_hwversion() < 2 ? LED_0 : LED_2) #define TMS_SET_MODE() \ gpio_set_mode(TMS_PORT, GPIO_MODE_OUTPUT_50_MHZ, \