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:
parent
5711b5d53d
commit
cf54fbb167
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user