1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/msp430/gpio: do not clear output pin on init

This commit is contained in:
Hauke Petersen 2017-06-12 17:24:30 +02:00
parent 5711b5d53d
commit cf54fbb167

View File

@ -88,14 +88,13 @@ int gpio_init(gpio_t pin, gpio_mode_t mode)
return -1;
}
/* reset pin and output value */
/* set pin direction */
if (mode == GPIO_OUT) {
port->DIR |= _pin(pin);
}
else {
port->DIR &= ~(_pin(pin));
}
port->OD &= ~(_pin(pin));
return 0;
}