Skip to content
Permalink
Browse files

drivers: can: add support for the NXP Kinetis FlexCAN controller

Add MCUX driver shim for the NXP Kinetis FlexCAN CAN bus controller.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information...
henrikbrixandersen authored and MaureenHelm committed Jun 6, 2019
1 parent dded1d0 commit 652fdfe3a14711f5215bce29fe8e4485efb2599a
@@ -1,8 +1,9 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_CAN can_common.c)
zephyr_sources_ifdef(CONFIG_CAN_LOOPBACK can_loopback.c)
zephyr_sources_ifdef(CONFIG_CAN_MCP2515 can_mcp2515.c)
zephyr_sources_ifdef(CONFIG_CAN_STM32 can_stm32.c)
zephyr_sources_ifdef(CONFIG_CAN can_common.c)
zephyr_sources_ifdef(CONFIG_CAN_LOOPBACK can_loopback.c)
zephyr_sources_ifdef(CONFIG_CAN_MCP2515 can_mcp2515.c)
zephyr_sources_ifdef(CONFIG_CAN_STM32 can_stm32.c)
zephyr_sources_ifdef(CONFIG_CAN_MCUX_FLEXCAN can_mcux_flexcan.c)

zephyr_sources_ifdef(CONFIG_USERSPACE can_handlers.c)
zephyr_sources_ifdef(CONFIG_USERSPACE can_handlers.c)
@@ -47,6 +47,7 @@ config CAN_1
Enable CAN controller 1

source "drivers/can/Kconfig.stm32"
source "drivers/can/Kconfig.mcux"
source "drivers/can/Kconfig.mcp2515"
source "drivers/can/Kconfig.loopback"

@@ -0,0 +1,21 @@
# Kconfig.mcux - MCUX CAN configuration options

#
# Copyright (c) 2019 Vestas Wind Systems A/S
#
# SPDX-License-Identifier: Apache-2.0
#

config CAN_MCUX_FLEXCAN
bool "MCUX FlexCAN driver"
depends on HAS_MCUX_FLEXCAN && CLOCK_CONTROL
help
Enable support for mcux flexcan driver.

config CAN_MAX_FILTER
int "Maximum number of concurrent active RX filters"
depends on CAN_MCUX_FLEXCAN
default 5
range 1 15 if SOC_SERIES_KINETIS_KE1XF
help
Defines maximum number of concurrent active RX filters

0 comments on commit 652fdfe

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