From fb9ec8d6ecb0d3a28620561adb470dc229ff882a Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Mon, 15 Jun 2026 18:04:30 +0200 Subject: [PATCH] arch/arm/src/stm32: make STM32_FOC depend on MOTOR_FOC Enabling STM32_FOC without MOTOR_FOC failed to build with "unknown type name 'foc_current_t'". Add the dependency on MOTOR_FOC. Signed-off-by: raiden00pl --- arch/arm/src/common/stm32/Kconfig.foc | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/src/common/stm32/Kconfig.foc b/arch/arm/src/common/stm32/Kconfig.foc index 79e61e292e4..bcbeba9e9e7 100644 --- a/arch/arm/src/common/stm32/Kconfig.foc +++ b/arch/arm/src/common/stm32/Kconfig.foc @@ -140,6 +140,7 @@ endchoice # "FOC0 device ADC selection" menuconfig STM32_FOC bool "STM32 lower-half FOC support" depends on STM32_HAVE_COMMON_FOC || ARCH_CHIP_STM32F7 + depends on MOTOR_FOC select ARCH_IRQPRIO select STM32_ADC select STM32_PWM_MULTICHAN