mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-17 21:33:16 +00:00
CAN1 and CAN2 share the memory for the filter banks. This commit adds an offset for filters installed for CAN2, allowing to use both CAN instances simultaneously. The hardware allows to freely split the avalable 28 filters between CAN1 and CAN2. In order to simplify the driver implementation, it only supports an equal split of 14 filters per instance. This is the same amount of filters as available in MCUs with only a single CAN. Signed-off-by: Martin Jäger <martin@libre.solar>
24 lines
600 B
Plaintext
24 lines
600 B
Plaintext
# STM32 CAN configuration options
|
|
|
|
# Copyright (c) 2018 Alexander Wachter
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
DT_COMPAT_ST_STM32_CAN := st,stm32-can
|
|
|
|
config CAN_STM32
|
|
bool "STM32 CAN Driver"
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_CAN))
|
|
select CAN_HAS_RX_TIMESTAMP
|
|
help
|
|
Enable STM32 CAN Driver.
|
|
Tested on STM32F0, STM32F4, STM32L4 and STM32F7 series.
|
|
|
|
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 pointers.
|
|
Must be at least the size of concurrent reads.
|