diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-03-14 23:41:28 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-03-14 23:41:28 -0700 |
commit | ca5444e6cd8b566bd4ad78e84162e03ec18e01b6 (patch) | |
tree | 64369de8ac0ef6214112340da70c78c474567dc7 /stmhal/boards/STM32F4DISC | |
parent | 0a64c92a9c3bd7d648c8a0d087fa7e739a5eeaa3 (diff) | |
download | micropython-ca5444e6cd8b566bd4ad78e84162e03ec18e01b6.tar.gz micropython-ca5444e6cd8b566bd4ad78e84162e03ec18e01b6.zip |
stmhal - add pin mapping, gpio, exti, usrsw
Diffstat (limited to 'stmhal/boards/STM32F4DISC')
-rw-r--r-- | stmhal/boards/STM32F4DISC/mpconfigboard.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/boards/STM32F4DISC/mpconfigboard.h b/stmhal/boards/STM32F4DISC/mpconfigboard.h index 7c4efeb918..f713f9b756 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 */ |