diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-01-21 18:06:28 -0800 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-01-21 18:08:39 -0800 |
commit | 72a31162e9c05cee48d8e48f3fa44588e4cb49e9 (patch) | |
tree | 6bd7764c1e6fbb185d75749400ed3e3d221fe056 /stm/lib/stm324x7i_eval.h | |
parent | 7a996b1f655fe97e2ac65458c7b064cbb1ff3954 (diff) | |
download | micropython-72a31162e9c05cee48d8e48f3fa44588e4cb49e9.tar.gz micropython-72a31162e9c05cee48d8e48f3fa44588e4cb49e9.zip |
Fix support for STM32F4DISCOVERY
Diffstat (limited to 'stm/lib/stm324x7i_eval.h')
-rw-r--r-- | stm/lib/stm324x7i_eval.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stm/lib/stm324x7i_eval.h b/stm/lib/stm324x7i_eval.h index a931c8c9b4..a7df96acb0 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)
|