Skip to content
Commit 01b833e2 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Carles Cufí
Browse files

boards: swan_r5: fix regulator enabling code



The board.c file is using non-existing GPIO API attributes:
GPIO_SPEED_LOW and GPIO_MODE_ANALOG. The code compiles because we end up
including soc.h (via init.h -> kernel.h). soc.h pollutes the namespace
with STM32 HAL definitions, but they do not apply in the context of
Zephyr APIs.

Looking at the schematics, PE4 is really a pin controlling a regulator,
so this PR replaces such custom init code with a regulator turned on at
boot time.

Signed-off-by: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent 25f14d70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment