1# STM32 CAN configuration options 2 3# Copyright (c) 2020 Alexander Wachter 4# SPDX-License-Identifier: Apache-2.0 5 6DT_COMPAT_STM32_FDCAN := st,stm32-fdcan 7 8config CAN_STM32FD 9 bool "STM32 FDCAN driver" 10 default $(dt_compat_enabled,$(DT_COMPAT_STM32_FDCAN)) 11 select CAN_MCAN 12 select USE_STM32_LL_RCC 13 14if CAN_STM32FD 15 16config CAN_MAX_STD_ID_FILTER 17 int "Maximum number of std ID filters" 18 default 28 19 range 0 28 20 help 21 Defines the maximum number of filters with standard ID (11-bit) 22 that can be attached. 23 24config CAN_MAX_EXT_ID_FILTER 25 int "Maximum number of ext ID filters" 26 default 8 27 range 0 8 28 help 29 Defines the maximum number of filters with extended ID (29-bit) 30 that can be attached. 31 32config CAN_STM32_CLOCK_DIVISOR 33 int "CAN clock divisor" 34 range 1 30 35 default 1 36 help 37 The APB clock is divided by this value (stored in CKDIV register) 38 before it is fed to the CAN core. 39 Note that the the divisor affects all CAN controllers. 40 Allowed values: 1 or 2 * n, where n <= 15. 41 42endif #CAN_STM32FD 43