1# Infineon XMC4xxx CAN configuration options
2# Copyright (c) 2023 Andriy Gelman
3# SPDX-License-Identifier: Apache-2.0
4
5config CAN_XMC4XXX
6	bool "Infineon XMC4xxx CAN Driver"
7	default y
8	depends on DT_HAS_INFINEON_XMC4XXX_CAN_NODE_ENABLED
9	select PINCTRL
10	help
11	  Enable Infineon XMC4xxx CAN Driver
12
13if CAN_XMC4XXX
14
15config CAN_XMC4XXX_MAX_TX_QUEUE
16	int "Maximum number of queued messages"
17	default 8
18	range 1 32
19	help
20	  Defines the array size of transmit callback pointers and semaphores,
21	  as well as the number of messages in the TX queue.
22
23config CAN_XMC4XXX_RX_FIFO_ITEMS
24	int "Number of CAN messages allocated to each RX FIFO"
25	default 8
26	range 1 32
27	help
28	  Defines the number of CAN messages in each RX FIFO. A separate RX FIFO
29	  is created for each RX filter.
30
31config CAN_XMC4XXX_INTERNAL_BUS_MODE
32	bool "Internal bus mode"
33	select PINCTRL
34	help
35	  Connects all XMC4XXX CAN devices to an internal bus. Enables
36	  message exchange between MCU CAN devices without any external connectors.
37
38config CAN_MAX_FILTER
39	int "Maximum number of concurrent active filters"
40	default 4
41	range 1 32
42	help
43	  Maximum number of filters supported by the can_add_rx_callback() API call.
44
45endif # CAN_XMC4XXX
46