2019-11-01 20:45:29 +08:00
|
|
|
# STM32 CAN configuration options
|
2018-05-03 16:59:12 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2018 Alexander Wachter
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-04-16 04:37:45 +08:00
|
|
|
DT_COMPAT_ST_STM32_CAN := st,stm32-can
|
|
|
|
|
2018-05-03 16:59:12 +08:00
|
|
|
config CAN_STM32
|
|
|
|
bool "STM32 CAN Driver"
|
2020-04-16 04:37:45 +08:00
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_CAN))
|
2018-05-03 16:59:12 +08:00
|
|
|
help
|
2019-07-02 21:02:03 +08:00
|
|
|
Enable STM32 CAN Driver.
|
|
|
|
Tested on stm32F0, stm32L4 and stm32F7 series.
|
2018-05-03 16:59:12 +08:00
|
|
|
|
|
|
|
config CAN_MAX_FILTER
|
|
|
|
int "Maximum number of concurrent active filters"
|
|
|
|
depends on CAN_STM32
|
|
|
|
default 5
|
|
|
|
range 1 56
|
|
|
|
help
|
|
|
|
Defines the array size of the callback/msgq pointers.
|
|
|
|
Must be at least the size of concurrent reads.
|