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.
Dependents: Freedman_v2 Nucleo_i2c_OLED_BME280_copy
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);
