Add ms32006 motor driver support

pull/599/head
Igor Zalatov (from Citadel PC) 2022-12-24 01:52:01 +03:00
parent 4aa1a8d84d
commit e732330055
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
buildroot-*/
output/
buildroot-*

View File

@ -1,6 +1,6 @@
################################################################################
#
# motors | updated 2021.11.06
# motors | updated 2022.12.24
#
################################################################################
@ -11,12 +11,14 @@ MOTORS_LICENSE_FILES = LICENSE
define MOTORS_BUILD_CMDS
(cd $(@D)/camhi-motor; $(TARGET_CC) -Os -s main.c -o camhi-motor)
(cd $(@D)/i2c-motor; $(TARGET_CC) -Os -s main.c -o i2c-motor)
(cd $(@D)/xm-kmotor; $(TARGET_CC) -Os -s main.c -o xm-kmotor)
(cd $(@D)/xm-uart; $(TARGET_CC) -Os -s main.c -o xm-uart)
endef
define MOTORS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/camhi-motor/camhi-motor $(TARGET_DIR)/usr/bin/camhi-motor
$(INSTALL) -m 0755 -D $(@D)/i2c-motor/i2c-motor $(TARGET_DIR)/usr/bin/i2c-motor
$(INSTALL) -m 0755 -D $(@D)/xm-kmotor/xm-kmotor $(TARGET_DIR)/usr/bin/xm-kmotor
$(INSTALL) -m 0755 -D $(@D)/xm-uart/xm-uart $(TARGET_DIR)/usr/bin/xm-uart
endef