aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards/PYBOARD3
diff options
context:
space:
mode:
authorDave Hylands2014-03-14 23:41:28 -0700
committerDave Hylands2014-03-14 23:41:28 -0700
commitca5444e6cd8b566bd4ad78e84162e03ec18e01b6 (patch)
tree64369de8ac0ef6214112340da70c78c474567dc7 /stmhal/boards/PYBOARD3
parent0a64c92a9c3bd7d648c8a0d087fa7e739a5eeaa3 (diff)
stmhal - add pin mapping, gpio, exti, usrsw
Diffstat (limited to 'stmhal/boards/PYBOARD3')
-rw-r--r--stmhal/boards/PYBOARD3/mpconfigboard.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/boards/PYBOARD3/mpconfigboard.h b/stmhal/boards/PYBOARD3/mpconfigboard.h
index 6b15b2015..e0920f685 100644
--- a/stmhal/boards/PYBOARD3/mpconfigboard.h
+++ b/stmhal/boards/PYBOARD3/mpconfigboard.h
@@ -16,8 +16,8 @@
// USRSW has no pullup or pulldown, and pressing the switch makes the input go low
#define USRSW_PIN (pin_A13)
-#define USRSW_PUPD (GPIO_PuPd_UP)
-#define USRSW_EXTI_EDGE (EXTI_Trigger_Falling)
+#define USRSW_PULL (GPIO_PULLUP)
+#define USRSW_EXTI_MODE (GPIO_MODE_IT_FALLING)
#define USRSW_PRESSED (0)
/* LED */