From 0a91fc3b30c3f878c85af25bc602aaf868b291e5 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Mon, 21 Jan 2013 13:43:37 -0800 Subject: Updated stlink platform to the new locm3 usb api. --- src/platforms/stlink/platform.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/platforms/stlink/platform.h') diff --git a/src/platforms/stlink/platform.h b/src/platforms/stlink/platform.h index fb55441..09bf484 100644 --- a/src/platforms/stlink/platform.h +++ b/src/platforms/stlink/platform.h @@ -25,6 +25,7 @@ #define __PLATFORM_H #include +#include #include #include @@ -32,6 +33,8 @@ #include "gdb_packet.h" #define INLINE_GPIO + +extern usbd_device *usbdev; #define CDCACM_PACKET_SIZE 64 #define CDCACM_GDB_ENDPOINT 1 -- cgit v1.2.3 From 9819f9d5b3abf89ab932e19e965a3125471cdc34 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Mon, 28 Jan 2013 12:15:50 -0800 Subject: Corrected the led pin for F3 and F4 discovery boards. Needs proper fixing so that it works on all platforms in the future. --- src/platforms/stlink/platform.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/platforms/stlink/platform.h') diff --git a/src/platforms/stlink/platform.h b/src/platforms/stlink/platform.h index 09bf484..eb5f186 100644 --- a/src/platforms/stlink/platform.h +++ b/src/platforms/stlink/platform.h @@ -75,7 +75,10 @@ extern usbd_device *usbdev; #define SWCLK_PIN TCK_PIN #define LED_PORT GPIOA -#define LED_IDLE_RUN GPIO8 +/* The value line discovery board stlink has it's led on PA8 + * All other stlinks have the led connected to PA9 instead and MCO to PA8 + */ +#define LED_IDLE_RUN GPIO9 #define DEBUG(...) -- cgit v1.2.3