1# STM32 CAN configuration options 2 3# Copyright (c) 2022 Blue Clover 4# Copyright (c) 2018-2020 Alexander Wachter 5# SPDX-License-Identifier: Apache-2.0 6 7config CAN_STM32_BXCAN 8 bool "STM32 bxCAN driver" 9 default y 10 depends on DT_HAS_ST_STM32_BXCAN_ENABLED 11 select PINCTRL 12 help 13 Enable STM32 bxCAN Driver. 14 15if CAN_STM32_BXCAN 16 17config CAN_MAX_STD_ID_FILTER 18 int "Maximum number of standard (11-bit) ID filters" 19 default 14 20 range 0 28 21 help 22 Defines the maximum number of filters with standard ID (11-bit) 23 that can be added by the application. 24 25 One standard ID filter with mask occupies 1/2 of the 14 available 26 filter banks. 27 28 The following equation determines the maximum total number of 29 filters: 30 31 CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28 32 33config CAN_MAX_EXT_ID_FILTER 34 int "Maximum number of extended (29-bit) ID filters" 35 default 7 36 range 0 14 37 help 38 Defines the maximum number of filters with extended ID (29-bit) 39 that can be added by the application. 40 41 One extended ID filter with mask occupies 1 of the 14 available 42 filter banks. 43 44 The following equation determines the maximum total number of 45 filters: 46 47 CAN_MAX_STD_ID_FILTER + CAN_MAX_EXT_ID_FILTER * 2 <= 28 48 49endif # CAN_STM32_BXCAN 50 51config CAN_STM32_FDCAN 52 bool "STM32 FDCAN driver" 53 default y 54 depends on DT_HAS_ST_STM32_FDCAN_ENABLED 55 select CAN_MCAN 56 select PINCTRL 57 select USE_STM32_LL_RCC 58 59if CAN_STM32_FDCAN 60 61config CAN_MAX_STD_ID_FILTER 62 int "Maximum number of standard (11-bit) ID filters" 63 default 28 64 range 0 28 65 help 66 Defines the maximum number of filters with standard ID (11-bit) 67 that can be added by the application. 68 69config CAN_MAX_EXT_ID_FILTER 70 int "Maximum number of extended (29-bit) ID filters" 71 default 8 72 range 0 8 73 help 74 Defines the maximum number of filters with extended ID (29-bit) 75 that can be added by the application. 76 77endif # CAN_STM32_FDCAN 78 79config CAN_STM32H7_FDCAN 80 bool "STM32H7 FDCAN driver" 81 default y 82 depends on DT_HAS_ST_STM32H7_FDCAN_ENABLED 83 select CAN_MCAN 84 select PINCTRL 85 select USE_STM32_LL_RCC 86