Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
Diff: targets/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c
- Revision:
- 154:37f96f9d4de2
- Parent:
- 153:fa9ff456f731
--- a/targets/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c Tue Dec 20 17:27:56 2016 +0000 +++ b/targets/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c Wed Jan 04 16:58:05 2017 +0000 @@ -277,7 +277,7 @@ void gpio_irq_set(gpio_irq_t *obj, gpio_irq_event event, uint32_t enable) { - uint32_t mode = STM_MODE_IT_EVT_RESET; + uint32_t mode = STM_MODE_INPUT; if (enable) { if (event == IRQ_RISE) { @@ -304,7 +304,7 @@ mode = STM_MODE_IT_FALLING; obj->event = EDGE_FALL; } else { // NONE or RISE - mode = STM_MODE_IT_EVT_RESET; + mode = STM_MODE_INPUT; obj->event = EDGE_NONE; } } @@ -313,7 +313,7 @@ mode = STM_MODE_IT_RISING; obj->event = EDGE_RISE; } else { // NONE or FALL - mode = STM_MODE_IT_EVT_RESET; + mode = STM_MODE_INPUT; obj->event = EDGE_NONE; } }