diff --git a/cpu/cc2538/periph/gpio.c b/cpu/cc2538/periph/gpio.c index c9823954d47884560e2fbda52509a35e051641bb..be2e2e2b8f7e8c6842c8cb380883fd74a94e5f45 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;