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 58if CAN_STM32_FDCAN 59 60config CAN_MAX_STD_ID_FILTER 61 int "Maximum number of standard (11-bit) ID filters" 62 default 28 63 range 0 28 64 help 65 Defines the maximum number of filters with standard ID (11-bit) 66 that can be added by the application. 67 68config CAN_MAX_EXT_ID_FILTER 69 int "Maximum number of extended (29-bit) ID filters" 70 default 8 71 range 0 8 72 help 73 Defines the maximum number of filters with extended ID (29-bit) 74 that can be added by the application. 75 76endif # CAN_STM32_FDCAN 77 78config CAN_STM32H7_FDCAN 79 bool "STM32H7 FDCAN driver" 80 default y 81 depends on DT_HAS_ST_STM32H7_FDCAN_ENABLED 82 select CAN_MCAN 83 select PINCTRL 84