aboutsummaryrefslogtreecommitdiff
path: root/stm/stmperiph
diff options
context:
space:
mode:
authorDave Hylands2014-02-03 21:11:48 -0800
committerDave Hylands2014-02-03 23:26:05 -0800
commit1570a96cad0b886f21a07eb13c3377a0f79abc1e (patch)
tree420ffc243157eb5b3d06b7e00ca0f7215fbd071a /stm/stmperiph
parent00c0b8a989ae54f4466d15b78a2e8729baf441ef (diff)
Initial support for Netduino
This also fixes up the IRQ for the PYBOARD4 USERSW although I was unable to test that functionality.
Diffstat (limited to 'stm/stmperiph')
-rw-r--r--stm/stmperiph/stm324x7i_eval.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stm/stmperiph/stm324x7i_eval.h b/stm/stmperiph/stm324x7i_eval.h
index 9adeecb16..1549093b3 100644
--- a/stm/stmperiph/stm324x7i_eval.h
+++ b/stm/stmperiph/stm324x7i_eval.h
@@ -54,6 +54,10 @@
#define SD_DETECT_PIN GPIO_Pin_15 /* PB.15 */
#define SD_DETECT_GPIO_PORT GPIOB /* GPIOB */
#define SD_DETECT_GPIO_CLK RCC_AHB1Periph_GPIOB
+#elif defined(NETDUINO_PLUS_2)
+#define SD_DETECT_PIN GPIO_Pin_5 /* PB.5 */
+#define SD_DETECT_GPIO_PORT GPIOB /* GPIOB */
+#define SD_DETECT_GPIO_CLK RCC_AHB1Periph_GPIOB
#endif
#define SDIO_FIFO_ADDRESS ((uint32_t)0x40012C80)