diff options
| author | Dave Hylands | 2014-03-14 23:41:28 -0700 |
|---|---|---|
| committer | Dave Hylands | 2014-03-14 23:41:28 -0700 |
| commit | ca5444e6cd8b566bd4ad78e84162e03ec18e01b6 (patch) | |
| tree | 64369de8ac0ef6214112340da70c78c474567dc7 /stmhal/boards | |
| parent | 0a64c92a9c3bd7d648c8a0d087fa7e739a5eeaa3 (diff) | |
stmhal - add pin mapping, gpio, exti, usrsw
Diffstat (limited to 'stmhal/boards')
| -rw-r--r-- | stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h | 4 | ||||
| -rw-r--r-- | stmhal/boards/PYBOARD3/mpconfigboard.h | 4 | ||||
| -rw-r--r-- | stmhal/boards/PYBOARD4/mpconfigboard.h | 4 | ||||
| -rw-r--r-- | stmhal/boards/STM32F4DISC/mpconfigboard.h | 4 |
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 */ |
