mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: common/gpio.c
- Revision:
- 221:8276e3a4886f
- Parent:
- 160:6870f452afa4
--- 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);