Skip to content

Commit

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

Signed-off-by: Maureen Helm <[email protected]>
  • Loading branch information
MaureenHelm authored and nashif committed Mar 26, 2021
1 parent 2718c59 commit 33a960b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/arm/frdm_k64f/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ static int frdm_k64f_pinmux_init(const struct device *dev)
PORT_PCR_PE_MASK | PORT_PCR_PS_MASK);
#endif

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

#if CONFIG_SHIELD_ADAFRUIT_WINC1500
/* IRQ, ENable, RST */
pinmux_pin_set(portc, 3, PORT_PCR_MUX(kPORT_MuxAsGpio));
Expand Down

0 comments on commit 33a960b

Please sign in to comment.