mbed library sources
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_STM32F407VG/pinmap.c
- Revision:
- 327:a7562ccfb9d5
- Parent:
- 296:ec1b66a3d094
--- a/targets/hal/TARGET_STM/TARGET_STM32F407VG/pinmap.c Sat Sep 20 11:30:07 2014 +0100 +++ b/targets/hal/TARGET_STM/TARGET_STM32F407VG/pinmap.c Mon Sep 22 09:30:07 2014 +0100 @@ -33,7 +33,7 @@ #include "mbed_error.h" // GPIO mode look-up table -static const uint32_t gpio_mode[12] = { +static const uint32_t gpio_mode[13] = { 0x00000000, // 0 = GPIO_MODE_INPUT 0x00000001, // 1 = GPIO_MODE_OUTPUT_PP 0x00000011, // 2 = GPIO_MODE_OUTPUT_OD @@ -45,7 +45,8 @@ 0x10310000, // 8 = GPIO_MODE_IT_RISING_FALLING 0x10120000, // 9 = GPIO_MODE_EVT_RISING 0x10220000, // 10 = GPIO_MODE_EVT_FALLING - 0x10320000 // 11 = GPIO_MODE_EVT_RISING_FALLING + 0x10320000, // 11 = GPIO_MODE_EVT_RISING_FALLING + 0x10000000 // 12 = Reset GPIO_MODE_IT_EVT }; // Enable GPIO clock and return GPIO base address