Skip to content
Permalink
Browse files

boards: frdm-k64f: Enable CAN support

This commit enables CAN support for the FRDM-K64F board.

Signed-off-by: Alexander Wachter <alexander.wachter@student.tugraz.at>
  • Loading branch information...
alexanderwachter authored and MaureenHelm committed Jun 25, 2019
1 parent 14e31ba commit 5946028671ecaff73e7af460915807820f22ad43
@@ -108,4 +108,11 @@ config ETH_MCUX_0

endif # NETWORKING

if CAN

config CAN_0
default y

endif # CAN

endif # BOARD_FRDM_K64F
@@ -94,6 +94,8 @@ The frdm_k64f board configuration supports the following hardware features:
| SENSOR | off-chip | fxos8700 polling; |
| | | fxos8700 trigger |
+-----------+------------+-------------------------------------+
| CAN | on-chip | can |
+-----------+------------+-------------------------------------+

The default configuration can be found in the defconfig file:

@@ -36,6 +36,7 @@
sw0 = &user_button_3;
sw1 = &user_button_2;
eth = &eth;
can-0 = &can0;
};

chosen {
@@ -204,3 +205,9 @@ arduino_serial: &uart3 {};
status = "okay";
};
};


&can0 {
status = "okay";
bus-speed = <125000>;
};
@@ -16,5 +16,6 @@ supported:
- usb_device
- watchdog
- hwinfo
- can
testing:
default: true
@@ -148,6 +148,12 @@ static int frdm_k64f_pinmux_init(struct device *dev)
pinmux_pin_set(portc, 19, PORT_PCR_MUX(kPORT_MuxAlt4));
#endif

#if CONFIG_CAN_0
/* FlexCAN0 RX, TX */
pinmux_pin_set(portb, 18, PORT_PCR_MUX(kPORT_MuxAlt2));
pinmux_pin_set(portb, 19, PORT_PCR_MUX(kPORT_MuxAlt2));
#endif

return 0;
}

0 comments on commit 5946028

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