summaryrefslogtreecommitdiff
path: root/stm/usrsw.c
diff options
context:
space:
mode:
authorDave Hylands <dhylands@gmail.com>2014-02-03 21:11:48 -0800
committerDave Hylands <dhylands@gmail.com>2014-02-03 23:26:05 -0800
commit1570a96cad0b886f21a07eb13c3377a0f79abc1e (patch)
tree420ffc243157eb5b3d06b7e00ca0f7215fbd071a /stm/usrsw.c
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/usrsw.c')
-rw-r--r--stm/usrsw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/usrsw.c b/stm/usrsw.c
index c3374b847..528c57e80 100644
--- a/stm/usrsw.c
+++ b/stm/usrsw.c
@@ -52,7 +52,7 @@ int switch_get(void) {
// pulled low, so switch is pressed
return 1;
}
-#elif defined (STM32F4DISC)
+#elif defined (STM32F4DISC) || defined(NETDUINO_PLUS_2)
/* switch pulled down */
if (USRSW_PORT->IDR & USRSW_PIN) {
// pulled high, so switch is pressed