2019-11-01 20:45:29 +08:00
|
|
|
# MCP2515 CAN configuration options
|
2018-06-12 14:23:20 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2018 Karsten Koenig
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config CAN_MCP2515
|
|
|
|
bool "MCP2515 CAN Driver"
|
2022-07-21 17:24:20 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_MICROCHIP_MCP2515_ENABLED
|
2022-08-12 12:32:46 +08:00
|
|
|
select SPI
|
2018-06-12 14:23:20 +08:00
|
|
|
help
|
|
|
|
Enable MCP2515 CAN Driver
|
|
|
|
|
|
|
|
if CAN_MCP2515
|
|
|
|
|
|
|
|
config CAN_MCP2515_INT_THREAD_STACK_SIZE
|
|
|
|
int "Stack size for interrupt handler"
|
|
|
|
default 512
|
|
|
|
help
|
|
|
|
Size of the stack used for internal thread which is ran for
|
|
|
|
interrupt handling and incoming packets.
|
|
|
|
|
|
|
|
config CAN_MCP2515_INT_THREAD_PRIO
|
|
|
|
int "Priority for interrupt handler"
|
|
|
|
default 2
|
|
|
|
help
|
|
|
|
Priority level of the internal thread which is ran for
|
|
|
|
interrupt handling and incoming packets.
|
|
|
|
|
2021-01-09 01:48:17 +08:00
|
|
|
config CAN_MAX_FILTER
|
2018-06-12 14:23:20 +08:00
|
|
|
int "Maximum number of concurrent active filters"
|
|
|
|
default 5
|
|
|
|
range 1 32
|
|
|
|
help
|
|
|
|
Defines the array size of the callback/msgq pointers.
|
|
|
|
Must be at least the size of concurrent reads.
|
|
|
|
|
|
|
|
endif # CAN_MCP2515
|