Skip to content

Commit 7defeda

Browse files
mathieuchopstmkartben
authored andcommitted
soc: st: stm32: wkup_pins: break after configuring I/O retention on pin
After we found the target GPIO port and configured I/O retention on target wake-up pin, break from the search loop. Applies only to STM32WBA series. Signed-off-by: Mathieu Choplain <[email protected]>
1 parent 2602b70 commit 7defeda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

soc/st/stm32/common/stm32_wkup_pins.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ int stm32_pwr_wkup_pin_cfg_gpio(const struct gpio_dt_spec *gpio)
346346
volatile uint32_t *ioretenr_x = (&PWR->IORETENRA) + 2 * i;
347347

348348
stm32_reg_set_bits(ioretenr_x, 1U << gpio->pin);
349+
break;
349350
}
350351
}
351352
#endif /* CONFIG_SOC_SERIES_STM32WBAX */

0 commit comments

Comments
 (0)