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 <raiden00@railab.me>
This commit is contained in:
raiden00pl 2026-06-15 18:04:30 +02:00 committed by Xiang Xiao
parent 621db41c43
commit fb9ec8d6ec

View file

@ -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