From 7b8c86ec16b5656f557630355e2130f0735cc6ad Mon Sep 17 00:00:00 2001 From: Ian Martin <ian@locicontrols.com> Date: Wed, 23 Mar 2016 13:58:10 -0400 Subject: [PATCH] cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e3 --- cpu/cc2538/periph/gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/cc2538/periph/gpio.c b/cpu/cc2538/periph/gpio.c index c9823954d4..be2e2e2b8f 100644 --- a/cpu/cc2538/periph/gpio.c +++ b/cpu/cc2538/periph/gpio.c @@ -369,10 +369,11 @@ int gpio_init(gpio_t dev, gpio_mode_t mode) gpio_dir_input(pin); /* configure the pin's pull resistor state */ IOC_PXX_OVER[pin] = (IOC_OVERRIDE_PUE); + break; case GPIO_OUT: gpio_dir_output(pin); /* configure the pin's pull resistor state */ - IOC_PXX_OVER[pin] = (IOC_OVERRIDE_OE | IOC_OVERRIDE_DIS); + IOC_PXX_OVER[pin] = (IOC_OVERRIDE_OE); break; default: return -1; -- GitLab