mbed w/ spi bug fig
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_DISCO_F407VG/gpio_api.c
- Revision:
- 242:7074e42da0b2
- Parent:
- 227:7bd0639b8911
--- a/targets/hal/TARGET_STM/TARGET_DISCO_F407VG/gpio_api.c Thu Jun 26 10:30:09 2014 +0100 +++ b/targets/hal/TARGET_STM/TARGET_DISCO_F407VG/gpio_api.c Fri Jun 27 07:30:09 2014 +0100 @@ -31,7 +31,6 @@ #include "gpio_api.h" #include "pinmap.h" #include "error.h" -#include "stm32f4xx_hal.h" extern uint32_t Set_GPIO_Clock(uint32_t port_idx); @@ -67,8 +66,7 @@ MBED_ASSERT(obj->pin != (PinName)NC); if (direction == PIN_OUTPUT) { pin_function(obj->pin, STM_PIN_DATA(STM_MODE_OUTPUT_PP, GPIO_NOPULL, 0)); - } - else { // PIN_INPUT + } else { // PIN_INPUT pin_function(obj->pin, STM_PIN_DATA(STM_MODE_INPUT, GPIO_NOPULL, 0)); } }