Skip to content

Commit

Permalink
boards: arm: Configure frdm_k64f Arduino D4 pin as gpio
Browse files Browse the repository at this point in the history
Configures the pinmux for the Arduino D4 pin to allow using it as a
gpio. This is needed by the adafruit_2_8_tft_touch_v2 shield for SDMMC.

Signed-off-by: Maureen Helm <[email protected]>
  • Loading branch information
MaureenHelm authored and nashif committed Apr 2, 2021
1 parent 19f9619 commit 0f7cdcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boards/arm/frdm_k64f/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ static int frdm_k64f_pinmux_init(const struct device *dev)
#endif

#if CONFIG_SHIELD_ADAFRUIT_2_8_TFT_TOUCH_V2
pinmux_pin_set(portb, 23, PORT_PCR_MUX(kPORT_MuxAsGpio));
pinmux_pin_set(portc, 4, PORT_PCR_MUX(kPORT_MuxAsGpio));
#endif

Expand Down

0 comments on commit 0f7cdcf

Please sign in to comment.