From 1570a96cad0b886f21a07eb13c3377a0f79abc1e Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Mon, 3 Feb 2014 21:11:48 -0800 Subject: Initial support for Netduino This also fixes up the IRQ for the PYBOARD4 USERSW although I was unable to test that functionality. --- stm/stmperiph/stm324x7i_eval.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'stm/stmperiph') 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) -- cgit v1.2.3