mirror of
https://github.com/apache/nuttx.git
synced 2026-08-16 09:53:23 +00:00
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:
parent
621db41c43
commit
fb9ec8d6ec
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue