1# CAN loopback device configuration options
2
3# Copyright (c) 2019 Alexander Wachter
4# SPDX-License-Identifier: Apache-2.0
5
6config CAN_LOOPBACK
7	bool "Emulated CAN loopback driver"
8	default y
9	depends on DT_HAS_ZEPHYR_CAN_LOOPBACK_ENABLED
10	help
11	  This is an emulated driver that can only loopback messages.
12
13if CAN_LOOPBACK
14
15config CAN_MAX_FILTER
16	int "Maximum number of concurrent active filters"
17	default 16
18	range 1 1024
19	help
20	  Defines the array size of the filters.
21	  Must be at least the size of concurrent reads.
22
23config CAN_LOOPBACK_TX_THREAD_STACK_SIZE
24	int "TX thread stack size"
25	default 512
26	help
27	  Stack size of the TX thread.
28	  The TX thread calls the callbacks of the receiver
29	  if the filter matches.
30
31config CAN_LOOPBACK_TX_THREAD_PRIORITY
32	int "TX thread priority"
33	default 2
34	help
35	  Priority of the TX thread.
36	  The TX thread calls the callbacks of the receiver
37	  if the filter matches.
38
39config CAN_LOOPBACK_TX_MSGQ_SIZE
40	int "TX message queue size"
41	default 16
42	help
43	  Number of TX frames that can be buffered.
44	  The send functions puts frame int this queue and TX thread takes the
45	  messages from this msgq and calls the respective receiver if the
46	  filter matches.
47
48endif # CAN_LOOPBACK
49