aboutsummaryrefslogtreecommitdiff
path: root/stmhal/boards
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/boards')
-rw-r--r--stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h4
-rw-r--r--stmhal/boards/PYBOARD3/mpconfigboard.h4
-rw-r--r--stmhal/boards/PYBOARD4/mpconfigboard.h4
-rw-r--r--stmhal/boards/STM32F4DISC/mpconfigboard.h4
4 files changed, 8 insertions, 8 deletions
diff --git a/stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h b/stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h
index b355486e2..412dede13 100644
--- a/stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h
+++ b/stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h
@@ -20,8 +20,8 @@
// USRSW is pulled low. Pressing the button makes the input go high.
#define USRSW_PIN (pin_B11)
-#define USRSW_PUPD (GPIO_PuPd_NOPULL)
-#define USRSW_EXTI_EDGE (EXTI_Trigger_Rising)
+#define USRSW_PULL (GPIO_NOPULL)
+#define USRSW_EXTI_MODE (GPIO_MODE_IT_RISING)
#define USRSW_PRESSED (1)
/* LED */
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 */
diff --git a/stmhal/boards/PYBOARD4/mpconfigboard.h b/stmhal/boards/PYBOARD4/mpconfigboard.h
index c255ba8ce..c3d5e119c 100644
--- a/stmhal/boards/PYBOARD4/mpconfigboard.h
+++ b/stmhal/boards/PYBOARD4/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_B3)
-#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 */
diff --git a/stmhal/boards/STM32F4DISC/mpconfigboard.h b/stmhal/boards/STM32F4DISC/mpconfigboard.h
index 7c4efeb91..f713f9b75 100644
--- a/stmhal/boards/STM32F4DISC/mpconfigboard.h
+++ b/stmhal/boards/STM32F4DISC/mpconfigboard.h
@@ -16,8 +16,8 @@
// USRSW is pulled low. Pressing the button makes the input go high.
#define USRSW_PIN (pin_A0)
-#define USRSW_PUPD (GPIO_PuPd_NOPULL)
-#define USRSW_EXTI_EDGE (EXTI_Trigger_Rising)
+#define USRSW_PULL (GPIO_NOPULL)
+#define USRSW_EXTI_MODE (GPIO_MODE_IT_RISING)
#define USRSW_PRESSED (1)
/* LED */