We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c2386 commit 0cc42dbCopy full SHA for 0cc42db
libraries/mbed/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c
@@ -58,6 +58,12 @@ void gpio_mode(gpio_t *obj, PinMode mode)
58
{
59
obj->mode = mode; // Update object
60
pin_mode(obj->pin, mode); // Update register
61
+
62
+ //Handle pullup for input
63
+ if(mode == InputPullUp) {
64
+ //Set DOUT
65
+ GPIO->P[obj->port & 0xF].DOUTSET = 1 << (obj->pin & 0xF);
66
+ }
67
}
68
69
// Used by DigitalInOut to set correct mode when direction is set
0 commit comments