1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

cpu/sam0/gpio: do not clear pin on init

This commit is contained in:
Hauke Petersen 2017-06-12 17:17:44 +02:00
parent b08188efd2
commit 5711b5d53d

View File

@ -97,9 +97,8 @@ int gpio_init(gpio_t pin, gpio_mode_t mode)
port->DIRSET.reg = pin_mask;
}
/* configure the pin cfg and clear output register */
/* configure the pin cfg */
port->PINCFG[pin_pos].reg = (mode & MODE_PINCFG_MASK);
port->OUTCLR.reg = pin_mask;
/* and set pull-up/pull-down if applicable */
if (mode == 0x7) {