Commit 1e7e1dbb authored by Paulo Santos's avatar Paulo Santos Committed by Chris Friedt
Browse files

drivers: gpio_gecko: update driver to use signal-only output.



Enable the pin configuration as single-ended pull-up output, allowing for
a currentless, signal-only output.

Signed-off-by: default avatarPaulo Santos <pauloroberto.santos@edge.ufal.br>
parent f2dcb6c1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -107,7 +107,9 @@ static int gpio_gecko_configure(const struct device *dev,
	if (flags & GPIO_OUTPUT) {
		/* Following modes enable both output and input */
		if (flags & GPIO_SINGLE_ENDED) {
			if (flags & GPIO_LINE_OPEN_DRAIN) {
			if ((flags & GPIO_LINE_OPEN_DRAIN) && (flags & GPIO_PULL_UP)) {
				mode = gpioModeWiredAndPullUp;
			} else if (flags & GPIO_LINE_OPEN_DRAIN) {
				mode = gpioModeWiredAnd;
			} else {
				mode = gpioModeWiredOr;