mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
arch/sim: Move the dummy foc driver to drivers/motor/foc
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -28,4 +28,10 @@ config MOTOR_FOC_TRACE
|
||||
---help---
|
||||
Enables FOC driver trace interface.
|
||||
|
||||
config MOTOR_FOC_DUMMY
|
||||
bool "Simulated FOC device"
|
||||
default n
|
||||
---help---
|
||||
Build a simulated lower-half FOC device
|
||||
|
||||
endif #MOTOR_FOC
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
|
||||
CSRCS += foc_dev.c
|
||||
|
||||
ifeq ($(CONFIG_MOTOR_FOC_DUMMY),y)
|
||||
CSRCS += foc_dummy.c
|
||||
endif
|
||||
|
||||
# Include FOC driver build support
|
||||
|
||||
DEPPATH += --dep-path motor$(DELIM)foc
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user