arch/sim: Move the dummy foc driver to drivers/motor/foc

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-01-06 16:19:25 +08:00
committed by Xiang Xiao
parent d7ec3e30ae
commit b054bd9d37
13 changed files with 188 additions and 152 deletions
+6
View File
@@ -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
+4
View File
@@ -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