Skip to content
Permalink
Browse files

boards: twr_ke18f: enable CAN controller

Enable CAN bus controller on the NXP TWR-KE18F development board.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information...
henrikbrixandersen authored and MaureenHelm committed Jun 6, 2019
1 parent 52cfe30 commit 348ef0f2a4438db96ea56d12d0c7c5dc2916d3f3
@@ -37,6 +37,13 @@ config SPI_1

endif # SPI_MCUX_LPSPI

if CAN

config CAN_0
default y

endif # CAN

if PINMUX_MCUX

config PINMUX_MCUX_PORTA
@@ -78,6 +78,8 @@ features:
+-----------+------------+-------------------------------------+
| ADC | on-chip | adc |
+-----------+------------+-------------------------------------+
| CAN | on-chip | can |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:
``boards/arm/twr_ke18f/twr_ke18f_defconfig``.
@@ -102,6 +102,12 @@ static int twr_ke18f_pinmux_init(struct device *dev)
pinmux_pin_set(portd, 8, PORT_PCR_MUX(kPORT_MuxAlt2));
#endif

#if CONFIG_CAN_0
/* FlexCAN0 RX, TX */
pinmux_pin_set(porte, 4, PORT_PCR_MUX(kPORT_MuxAlt5));
pinmux_pin_set(porte, 5, PORT_PCR_MUX(kPORT_MuxAlt5));
#endif

/* FXOS8700 INT1, INT2, RST */
#ifdef DT_INST_0_NXP_FXOS8700_INT1_GPIOS_PIN
pinmux_pin_set(porta, 14, PORT_PCR_MUX(kPORT_MuxAsGpio));
@@ -146,6 +146,11 @@
sample-time = <12>;
};

&can0 {
status = "ok";
bus-speed = <125000>;
};

&flash0 {
/*
* For more information, see:
@@ -15,3 +15,4 @@ supported:
- hwinfo
- spi
- adc
- can

0 comments on commit 348ef0f

Please sign in to comment.
You can’t perform that action at this time.