Modified mbed library sources only for STM32F030K6, LQFP32 (0.8mm pitch) package, 32K Flash, 4K SRAM. Compiler target: Nucleo 32F030R8
Fork of mbed-src by
Diff: common/gpio.c
- Revision:
- 221:8276e3a4886f
- Parent:
- 160:6870f452afa4
diff -r aa774fb95d17 -r 8276e3a4886f common/gpio.c --- a/common/gpio.c Tue Jun 03 10:30:56 2014 +0100 +++ b/common/gpio.c Tue Jun 03 11:30:07 2014 +0100 @@ -17,13 +17,13 @@ static inline void _gpio_init_in(gpio_t* gpio, PinName pin, PinMode mode) { - gpio_init(gpio, pin); - if (pin != NC) { + gpio_init(gpio, pin); + if (pin != NC) { gpio_dir(gpio, PIN_INPUT); gpio_mode(gpio, mode); } } - + static inline void _gpio_init_out(gpio_t* gpio, PinName pin, PinMode mode, int value) { gpio_init(gpio, pin);