Files
zephyr/drivers/can/Kconfig.xmc4xxx
Henrik Brix Andersen 65eee6d3d9 drivers: can: increase default setting for software-limited RX filters
Increase the default number of software-limited CAN RX filters across the
drivers. Some of these were chosen quite conservative, requiring custom
configuration for even simple in-tree samples.

Users can reduce the number of available RX filters to reduce RAM footprint
as needed.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-12-09 14:54:02 -05:00

46 lines
1.2 KiB
Plaintext

# Infineon XMC4xxx CAN configuration options
# Copyright (c) 2023 Andriy Gelman
# SPDX-License-Identifier: Apache-2.0
config CAN_XMC4XXX
bool "Infineon XMC4xxx CAN Driver"
default y
depends on DT_HAS_INFINEON_XMC4XXX_CAN_NODE_ENABLED
select PINCTRL
help
Enable Infineon XMC4xxx CAN Driver
if CAN_XMC4XXX
config CAN_XMC4XXX_MAX_TX_QUEUE
int "Maximum number of queued messages"
default 8
range 1 32
help
Defines the array size of transmit callback pointers and semaphores,
as well as the number of messages in the TX queue.
config CAN_XMC4XXX_RX_FIFO_ITEMS
int "Number of CAN messages allocated to each RX FIFO"
default 8
range 1 32
help
Defines the number of CAN messages in each RX FIFO. A separate RX FIFO
is created for each RX filter.
config CAN_XMC4XXX_INTERNAL_BUS_MODE
bool "Internal bus mode"
select PINCTRL
help
Connects all XMC4XXX CAN devices to an internal bus. Enables
message exchange between MCU CAN devices without any external connectors.
config CAN_XMC4XXX_MAX_FILTERS
int "Maximum number of concurrent active filters"
default 16
range 1 32
help
Maximum number of filters supported by the can_add_rx_callback() API call.
endif # CAN_XMC4XXX