zephyr/drivers/can/Kconfig.stm32
Kumar Gala bb6b1918b2 drivers: can: stm32: Cleanup Kconfig enablement
Follow the pattern we have for other peripherals in that if the driver
class (CAN) is enabled than enable the driver for that class
(CAN_STM32).  Also have the STM32 CAN driver depend on being on a STM32
SoC.

Remove setting of CONFIG_CAN_STM32 in any .conf files as it will get set
of CONFIG_CAN is set/enabled.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2019-02-25 10:05:21 -06:00

24 lines
524 B
Plaintext

# Kconfig.stm32 - STM32 CAN configuration options
#
# Copyright (c) 2018 Alexander Wachter
#
# SPDX-License-Identifier: Apache-2.0
#
config CAN_STM32
bool "STM32 CAN Driver"
depends on SOC_FAMILY_STM32
select USE_STM32_HAL_CAN
help
Enable STM32 CAN Driver (tested on stm32F0 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/msgq pointers.
Must be at least the size of concurrent reads.