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
|
|
|
|
|
|
|
|
config CAN_STM32
|
|
|
|
bool "STM32 CAN Driver"
|
2022-07-21 17:24:20 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ST_STM32_CAN_ENABLED
|
2021-06-25 06:11:29 +08:00
|
|
|
select CAN_HAS_RX_TIMESTAMP
|
2018-05-03 16:59:12 +08:00
|
|
|
help
|
2019-07-02 21:02:03 +08:00
|
|
|
Enable STM32 CAN Driver.
|
2022-06-17 19:35:39 +08:00
|
|
|
Tested on STM32F0, STM32F4, STM32L4 and STM32F7 series.
|
2018-05-03 16:59:12 +08:00
|
|
|
|
2022-07-23 14:01:10 +08:00
|
|
|
config CAN_MAX_STD_ID_FILTER
|
|
|
|
int "Maximum number of std ID filters"
|
|
|
|
default 14
|
|
|
|
range 0 28
|
2018-05-03 16:59:12 +08:00
|
|
|
help
|
2022-07-23 14:01:10 +08:00
|
|
|
Defines the maximum number of filters with standard ID (11-bit)
|
|
|
|
that can be added by the application.
|
|
|
|
|
|
|
|
One standard ID filter with mask occupies 1/2 of the 14 available
|
|
|
|
filter banks.
|
|
|
|
|
|
|
|
The following equation determines the maximum total number of
|
|
|
|
filters:
|
|
|
|
|
|
|
|
CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28
|
|
|
|
|
|
|
|
config CAN_MAX_EXT_ID_FILTER
|
|
|
|
int "Maximum number of ext ID filters"
|
|
|
|
default 7
|
|
|
|
range 0 14
|
|
|
|
help
|
|
|
|
Defines the maximum number of filters with extended ID (29-bit)
|
|
|
|
that can be added by the application.
|
|
|
|
|
|
|
|
One extended ID filter with mask occupies 1 of the 14 available
|
|
|
|
filter banks.
|
|
|
|
|
|
|
|
The following equation determines the maximum total number of
|
|
|
|
filters:
|
|
|
|
|
|
|
|
CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28
|