soc: nrf5x: Disconnect GPIO input buffer when configured as output
This saves power. Change-Id: Ie30bd3bffe89bc777d588fca56014634e03c0fe8 Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
This commit is contained in:
parent
17c0b372a2
commit
0017b60fbb
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ static int gpio_nrf5_config(struct device *dev,
|
|||
gpio->PIN_CNF[pin] = GPIO_SENSE_DISABLE |
|
||||
GPIO_DRIVE_S0S1 |
|
||||
pull |
|
||||
GPIO_INPUT_CONNECT |
|
||||
GPIO_INPUT_DISCONNECT |
|
||||
GPIO_DIR_OUTPUT;
|
||||
} else {
|
||||
/* Config as input */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue