aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/stlink/platform.h
diff options
context:
space:
mode:
authorUwe Bonnes2013-02-15 17:39:27 +0100
committerUwe Bonnes2013-02-15 17:39:27 +0100
commitdee82a0d4fe2b649611525e5415f19186a051dfa (patch)
tree3005e46161679bcfe427f97bef0e7613d3d0220e /src/platforms/stlink/platform.h
parentf8ea9542752005ca3bbbcb62fffc3fe38b01d011 (diff)
Document changes between ST-Link V1 and V2 and implement needed changes
Diffstat (limited to 'src/platforms/stlink/platform.h')
-rw-r--r--src/platforms/stlink/platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/stlink/platform.h b/src/platforms/stlink/platform.h
index 9b765fb..d22a4e2 100644
--- a/src/platforms/stlink/platform.h
+++ b/src/platforms/stlink/platform.h
@@ -81,7 +81,6 @@ extern usbd_device *usbdev;
/* Use PC14 for a "dummy" uart led. So we can observere at least with scope*/
#define LED_PORT_UART GPIOC
#define LED_UART GPIO14
-#define LED_IDLE_RUN GPIO9
#define TMS_SET_MODE() \
gpio_set_mode(TMS_PORT, GPIO_MODE_OUTPUT_50_MHZ, \
@@ -134,8 +133,9 @@ extern const char *morse_msg;
gpio_clear((port), (pin)); \
} while(0)
+extern uint16_t led_idle_run;
#define SET_RUN_STATE(state) {running_status = (state);}
-#define SET_IDLE_STATE(state) {gpio_set_val(LED_PORT, LED_IDLE_RUN, state);}
+#define SET_IDLE_STATE(state) {gpio_set_val(LED_PORT, led_idle_run, state);}
#define PLATFORM_SET_FATAL_ERROR_RECOVERY() {setjmp(fatal_error_jmpbuf);}
#define PLATFORM_FATAL_ERROR(error) { \