Skip to content
Snippets Groups Projects
Commit 79a8ec48 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #5157 from locicontrols/gpio_init

cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e33
parents c7a29918 7b8c86ec
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment