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	help
10	  Enable Infineon XMC4xxx CAN Driver
11
12if CAN_XMC4XXX
13
14config CAN_XMC4XXX_MAX_TX_QUEUE
15	int "Maximum number of queued messages"
16	default 8
17	range 1 32
18	help
19	  Defines the array size of transmit callback pointers and semaphores,
20	  as well as the number of messages in the TX queue.
21
22config CAN_XMC4XXX_RX_FIFO_ITEMS
23	int "Number of CAN messages allocated to each RX FIFO"
24	default 8
25	range 1 32
26	help
27	  Defines the number of CAN messages in each RX FIFO. A separate RX FIFO
28	  is created for each RX filter.
29
30config CAN_XMC4XXX_INTERNAL_BUS_MODE
31	bool "Internal bus mode"
32	help
33	  Connects all XMC4XXX CAN devices to an internal bus. Enables
34	  message exchange between MCU CAN devices without any external connectors.
35
36config CAN_MAX_FILTER
37	int "Maximum number of concurrent active filters"
38	default 4
39	range 1 32
40	help
41	  Maximum number of filters supported by the can_add_rx_callback() API call.
42
43endif # CAN_XMC4XXX
44