Skip to content

Commit 1e077ff

Browse files
MaureenHelmgalak
authored andcommitted
boards: rv32m1_vega: Configure led pinmuxes as gpios
Explicitly configures the rgb led pinmuxes as gpios. Currently the gpio driver quietly changes the pinmux to gpio mode when configuring a gpio pin, but this behavior is about to change. Signed-off-by: Maureen Helm <[email protected]>
1 parent bbcea6f commit 1e077ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

boards/riscv/rv32m1_vega/pinmux.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ static int rv32m1_vega_pinmux_init(struct device *dev)
6969
pinmux_pin_set(porte, 22, PORT_PCR_MUX(kPORT_MuxAsGpio));
7070
pinmux_pin_set(porte, 27, PORT_PCR_MUX(kPORT_MuxAsGpio));
7171

72+
/* RGB LEDs */
73+
pinmux_pin_set(porta, 22, PORT_PCR_MUX(kPORT_MuxAsGpio));
74+
pinmux_pin_set(porta, 23, PORT_PCR_MUX(kPORT_MuxAsGpio));
75+
pinmux_pin_set(porta, 24, PORT_PCR_MUX(kPORT_MuxAsGpio));
76+
7277
#if CONFIG_SPI_1
7378
/* LPSPI1 SCK, SIN, SOUT, CS */
7479
pinmux_pin_set(portb, 20, PORT_PCR_MUX(kPORT_MuxAlt2));

0 commit comments

Comments
 (0)