Skip to content

Commit

Permalink
boards: arm: twr_ke18f: Convert to new DT_INST macros
Browse files Browse the repository at this point in the history
Convert older DT_INST_ macro use the new include/devicetree.h
DT_INST macro APIs.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Mar 30, 2020
1 parent 447a85f commit 2aed204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/arm/twr_ke18f/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ static int twr_ke18f_pinmux_init(struct device *dev)
#endif

/* FXOS8700 INT1, INT2, RST */
#ifdef DT_INST_0_NXP_FXOS8700_INT1_GPIOS_PIN
#if DT_NODE_HAS_PROP(DT_INST(0, nxp_fxos8700), int1_gpios)
pinmux_pin_set(porta, 14, PORT_PCR_MUX(kPORT_MuxAsGpio));
#endif
#ifdef DT_INST_0_NXP_FXOS8700_INT2_GPIOS_PIN
#if DT_NODE_HAS_PROP(DT_INST(0, nxp_fxos8700), int2_gpios)
pinmux_pin_set(portc, 17, PORT_PCR_MUX(kPORT_MuxAsGpio));
#endif
pinmux_pin_set(portc, 15, PORT_PCR_MUX(kPORT_MuxAsGpio));
Expand Down

0 comments on commit 2aed204

Please sign in to comment.