From 72a31162e9c05cee48d8e48f3fa44588e4cb49e9 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Tue, 21 Jan 2014 18:06:28 -0800 Subject: Fix support for STM32F4DISCOVERY --- stm/lib/stm324x7i_eval.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stm/lib') diff --git a/stm/lib/stm324x7i_eval.h b/stm/lib/stm324x7i_eval.h index a931c8c9b..a7df96acb 100644 --- a/stm/lib/stm324x7i_eval.h +++ b/stm/lib/stm324x7i_eval.h @@ -49,6 +49,11 @@ #define SD_DETECT_PIN GPIO_Pin_8 /* PA..8 */ #define SD_DETECT_GPIO_PORT GPIOA /* GPIOA */ #define SD_DETECT_GPIO_CLK RCC_AHB1Periph_GPIOA +#elif defined(STM32F4DISC) +// PB15 on the DM-STSTF4BB Base Board +#define SD_DETECT_PIN GPIO_Pin_15 /* PB.15 */ +#define SD_DETECT_GPIO_PORT GPIOB /* GPIOB */ +#define SD_DETECT_GPIO_CLK RCC_AHB1Periph_GPIOB #endif #define SDIO_FIFO_ADDRESS ((uint32_t)0x40012C80) -- cgit v1.2.3