This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new adc3fd23a17 arch/arm/src/stm32: make STM32_FOC depend on MOTOR_FOC
adc3fd23a17 is described below

commit adc3fd23a175cf910891f910c91a12aef7999b0a
Author: raiden00pl <[email protected]>
AuthorDate: Mon Jun 15 18:04:30 2026 +0200

    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 <[email protected]>
---
 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

Reply via email to