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:
parent
b08188efd2
commit
5711b5d53d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user