mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-07 03:22:03 +08:00
6
.gitignore
vendored
6
.gitignore
vendored
@@ -72,10 +72,12 @@ eagle.epf
|
||||
*.eps
|
||||
obj_*
|
||||
inc/commandslist.h
|
||||
inc/hal_tbl.h
|
||||
inc/comps/*
|
||||
inc/shared_comps/*
|
||||
src/hal_tbl.c
|
||||
src/conf_templates.c
|
||||
stm32f303/inc/commandslist.h
|
||||
stm32f303/inc/hal_tbl.h
|
||||
stm32f303/inc/comps/*
|
||||
stm32f303/inc/shared_comps/*
|
||||
stm32f303/src/hal_tbl.c
|
||||
toolchain-user.mak
|
||||
|
||||
276
Makefile
276
Makefile
@@ -14,6 +14,9 @@ TARGET = $(OBJDIR)/stmbl
|
||||
|
||||
# Define all C source files (dependencies are generated automatically)
|
||||
INCDIRS += inc
|
||||
INCDIRS += inc/comps
|
||||
INCDIRS += inc/comps/hw
|
||||
INCDIRS += inc/shared_comps
|
||||
INCDIRS += shared
|
||||
|
||||
SOURCES += src/main.c
|
||||
@@ -28,96 +31,97 @@ SOURCES += src/hal_tbl.c
|
||||
HWVERSION = v4
|
||||
|
||||
ifeq ($(HWVERSION),v3)
|
||||
COMPS += src/comps/hw/io3.c
|
||||
COMPS += src/comps/hvf1.c
|
||||
COMPS += shared/comps/pmsm.c
|
||||
COMPS += shared/comps/curpid.c
|
||||
COMPS += shared/comps/dq.c
|
||||
COMPS += shared/comps/idq.c
|
||||
SOURCES += shared/common_f1.c
|
||||
SRC_COMPS += src/comps/hw/io3.c
|
||||
SRC_COMPS += src/comps/hvf1.c
|
||||
SHARED_COMPS += shared/comps/pmsm.c
|
||||
SHARED_COMPS += shared/comps/curpid.c
|
||||
SHARED_COMPS += shared/comps/dq.c
|
||||
SHARED_COMPS += shared/comps/idq.c
|
||||
SHARED_COMPS += shared/common_f1.c
|
||||
CFLAGS += -DV3
|
||||
else
|
||||
COMPS += src/comps/hw/io4.c
|
||||
COMPS += src/comps/hv.c
|
||||
SRC_COMPS += src/comps/hw/io4.c
|
||||
SRC_COMPS += src/comps/hv.c
|
||||
#TODO: need backport to v3
|
||||
COMPS += src/comps/enc_cmd.c
|
||||
COMPS += src/comps/o_fb.c
|
||||
COMPS += src/comps/sserial.c
|
||||
COMPS += src/comps/yaskawa.c
|
||||
COMPS += src/comps/encs.c
|
||||
COMPS += src/comps/encf.c
|
||||
COMPS += src/comps/endat.c
|
||||
SRC_COMPS += src/comps/enc_cmd.c
|
||||
SRC_COMPS += src/comps/o_fb.c
|
||||
SRC_COMPS += src/comps/sserial.c
|
||||
SRC_COMPS += src/comps/yaskawa.c
|
||||
SRC_COMPS += src/comps/encs.c
|
||||
SRC_COMPS += src/comps/encf.c
|
||||
SRC_COMPS += src/comps/endat.c
|
||||
CFLAGS += -DV4
|
||||
endif
|
||||
|
||||
COMPS += src/comps/usart.c
|
||||
COMPS += src/comps/encm.c
|
||||
COMPS += src/comps/dmm.c
|
||||
COMPS += src/comps/smartabs.c
|
||||
COMPS += src/comps/adc.c
|
||||
COMPS += src/comps/enc_fb.c
|
||||
COMPS += src/comps/conf.c
|
||||
COMPS += src/comps/res.c
|
||||
COMPS += src/comps/hx711.c
|
||||
SRC_COMPS += src/comps/usart.c
|
||||
SRC_COMPS += src/comps/encm.c
|
||||
SRC_COMPS += src/comps/dmm.c
|
||||
SRC_COMPS += src/comps/smartabs.c
|
||||
SRC_COMPS += src/comps/adc.c
|
||||
SRC_COMPS += src/comps/enc_fb.c
|
||||
SRC_COMPS += src/comps/conf.c
|
||||
SRC_COMPS += src/comps/res.c
|
||||
SRC_COMPS += src/comps/hx711.c
|
||||
|
||||
COMPS += shared/comps/sim.c
|
||||
COMPS += shared/comps/term.c
|
||||
COMPS += shared/comps/svm.c
|
||||
SHARED_COMPS += shared/comps/sim.c
|
||||
SHARED_COMPS += shared/comps/term.c
|
||||
SHARED_COMPS += shared/comps/svm.c
|
||||
|
||||
COMPS += shared/comps/vel.c
|
||||
COMPS += shared/comps/rev.c
|
||||
COMPS += shared/comps/hal_test.c
|
||||
# COMPS += shared/comps/dc.c
|
||||
COMPS += shared/comps/ypid.c
|
||||
COMPS += shared/comps/fault.c
|
||||
COMPS += shared/comps/pid.c
|
||||
COMPS += shared/comps/spid.c
|
||||
COMPS += shared/comps/pe.c
|
||||
COMPS += shared/comps/pmsm_limits.c
|
||||
COMPS += shared/comps/pmsm_ttc.c
|
||||
COMPS += shared/comps/dc_limits.c
|
||||
COMPS += shared/comps/dc_ttc.c
|
||||
COMPS += shared/comps/acim_ttc.c
|
||||
COMPS += shared/comps/uvw.c
|
||||
COMPS += shared/comps/fanuc.c
|
||||
COMPS += shared/comps/fb_switch.c
|
||||
COMPS += shared/comps/reslimit.c
|
||||
COMPS += shared/comps/iit.c
|
||||
COMPS += shared/comps/vel_int.c
|
||||
COMPS += shared/comps/linrev.c
|
||||
COMPS += shared/comps/psi.c
|
||||
COMPS += shared/comps/stp.c
|
||||
#COMPS += shared/comps/uf.c
|
||||
COMPS += shared/comps/uf2.c
|
||||
COMPS += shared/comps/ramp.c
|
||||
COMPS += shared/comps/scale.c
|
||||
COMPS += shared/comps/idx_home.c
|
||||
COMPS += shared/comps/move.c
|
||||
# COMPS += shared/comps/ac.c
|
||||
COMPS += shared/comps/not.c
|
||||
COMPS += shared/comps/and.c
|
||||
COMPS += shared/comps/or.c
|
||||
COMPS += shared/comps/jog.c
|
||||
COMPS += shared/comps/velbuf.c
|
||||
COMPS += shared/comps/avg.c
|
||||
COMPS += shared/comps/mux.c
|
||||
COMPS += shared/comps/veltopos.c
|
||||
# COMPS += shared/comps/wobl.c
|
||||
COMPS += shared/comps/debounce.c
|
||||
COMPS += shared/comps/pos_filter.c
|
||||
COMPS += shared/comps/rl.c
|
||||
COMPS += shared/comps/mad.c
|
||||
COMPS += shared/comps/sensorless.c
|
||||
COMPS += shared/comps/field.c
|
||||
COMPS += shared/comps/gain.c
|
||||
COMPS += shared/comps/rlpsij.c
|
||||
COMPS += shared/comps/veltime.c
|
||||
COMPS += shared/comps/mpid.c
|
||||
COMPS += shared/comps/fmove.c
|
||||
COMPS += shared/comps/home.c
|
||||
COMPS += shared/comps/en.c
|
||||
COMPS += shared/comps/th.c
|
||||
SHARED_COMPS += shared/comps/vel.c
|
||||
SHARED_COMPS += shared/comps/rev.c
|
||||
SHARED_COMPS += shared/comps/hal_test.c
|
||||
# SHARED_COMPS += shared/comps/dc.c
|
||||
SHARED_COMPS += shared/comps/ypid.c
|
||||
SHARED_COMPS += shared/comps/fault.c
|
||||
SHARED_COMPS += shared/comps/pid.c
|
||||
SHARED_COMPS += shared/comps/spid.c
|
||||
SHARED_COMPS += shared/comps/pe.c
|
||||
SHARED_COMPS += shared/comps/pmsm_limits.c
|
||||
SHARED_COMPS += shared/comps/pmsm_ttc.c
|
||||
SHARED_COMPS += shared/comps/dc_limits.c
|
||||
SHARED_COMPS += shared/comps/dc_ttc.c
|
||||
SHARED_COMPS += shared/comps/acim_ttc.c
|
||||
SHARED_COMPS += shared/comps/uvw.c
|
||||
SHARED_COMPS += shared/comps/fanuc.c
|
||||
SHARED_COMPS += shared/comps/fb_switch.c
|
||||
SHARED_COMPS += shared/comps/reslimit.c
|
||||
SHARED_COMPS += shared/comps/iit.c
|
||||
SHARED_COMPS += shared/comps/vel_int.c
|
||||
SHARED_COMPS += shared/comps/linrev.c
|
||||
SHARED_COMPS += shared/comps/psi.c
|
||||
SHARED_COMPS += shared/comps/stp.c
|
||||
#SHARED_COMPS += shared/comps/uf.c
|
||||
SHARED_COMPS += shared/comps/uf2.c
|
||||
SHARED_COMPS += shared/comps/ramp.c
|
||||
SHARED_COMPS += shared/comps/scale.c
|
||||
SHARED_COMPS += shared/comps/idx_home.c
|
||||
SHARED_COMPS += shared/comps/move.c
|
||||
# SHARED_COMPS += shared/comps/ac.c
|
||||
SHARED_COMPS += shared/comps/not.c
|
||||
SHARED_COMPS += shared/comps/and.c
|
||||
SHARED_COMPS += shared/comps/or.c
|
||||
SHARED_COMPS += shared/comps/jog.c
|
||||
SHARED_COMPS += shared/comps/velbuf.c
|
||||
SHARED_COMPS += shared/comps/avg.c
|
||||
SHARED_COMPS += shared/comps/mux.c
|
||||
SHARED_COMPS += shared/comps/veltopos.c
|
||||
# SHARED_COMPS += shared/comps/wobl.c
|
||||
SHARED_COMPS += shared/comps/debounce.c
|
||||
SHARED_COMPS += shared/comps/pos_filter.c
|
||||
SHARED_COMPS += shared/comps/rl.c
|
||||
SHARED_COMPS += shared/comps/mad.c
|
||||
SHARED_COMPS += shared/comps/sensorless.c
|
||||
SHARED_COMPS += shared/comps/field.c
|
||||
SHARED_COMPS += shared/comps/gain.c
|
||||
SHARED_COMPS += shared/comps/rlpsij.c
|
||||
SHARED_COMPS += shared/comps/veltime.c
|
||||
SHARED_COMPS += shared/comps/mpid.c
|
||||
SHARED_COMPS += shared/comps/fmove.c
|
||||
SHARED_COMPS += shared/comps/home.c
|
||||
SHARED_COMPS += shared/comps/en.c
|
||||
SHARED_COMPS += shared/comps/th.c
|
||||
|
||||
COMPS = $(SRC_COMPS) $(SHARED_COMPS)
|
||||
SOURCES += $(COMPS)
|
||||
|
||||
# SOURCES += src/eeprom.c
|
||||
@@ -136,6 +140,8 @@ SOURCES += src/conf_templates.c
|
||||
|
||||
SOURCES += shared/ringbuf.c
|
||||
|
||||
CONFIG_TEMPLATES = $(wildcard conf/template/*.txt)
|
||||
|
||||
USB_VCP_DIR = lib/STM32_USB_Device_VCP-1.2.0
|
||||
|
||||
CPPFLAGS += -DUSBD_PRODUCT_STRING='"STMBL Virtual ComPort"'
|
||||
@@ -191,6 +197,8 @@ CPPFLAGS += -DHSE_VALUE=8000000
|
||||
LDSCRIPT = stm32_flash.ld
|
||||
|
||||
#============================================================================
|
||||
SRC_COMP_OBJECTS = $(addprefix $(OBJDIR)/,$(addsuffix .o,$(basename $(SRC_COMPS))))
|
||||
SHARED_COMP_OBJECTS = $(addprefix $(OBJDIR)/,$(addsuffix .o,$(basename $(SHARED_COMPS))))
|
||||
OBJECTS += $(addprefix $(OBJDIR)/,$(addsuffix .o,$(basename $(SOURCES))))
|
||||
OBJECTS += hv_firmware.o
|
||||
CPPFLAGS += $(addprefix -I,$(INCDIRS))
|
||||
@@ -286,33 +294,56 @@ bin: tbl $(TARGET).bin
|
||||
lss: $(TARGET).lss
|
||||
sym: $(TARGET).sym
|
||||
|
||||
inc/commandslist.h: tbl
|
||||
inc/hal_tbl.h: tbl
|
||||
src/hal_tbl.c: tbl
|
||||
src/conf_templates.c: tbl
|
||||
$(OBJDIR)/shared/commands.o: inc/commandslist.h
|
||||
|
||||
#generate hal and command tables
|
||||
tbl:
|
||||
@echo Generating tables
|
||||
@$(PYTHON) tools/create_hal_tbl.py . $(COMPS)
|
||||
@$(PYTHON) tools/create_config.py conf/template/* > src/conf_templates.c
|
||||
@$(PYTHON) tools/create_cmd.py $(SOURCES) > inc/commandslist.h
|
||||
inc/commandslist.h: tools/create_cmd.py $(SOURCES)
|
||||
@echo Generating commands list
|
||||
@$(MKDIR) -p $(dir $@)
|
||||
@$(PYTHON) tools/create_cmd.py $@ $(SOURCES)
|
||||
|
||||
#build f4 bootloader
|
||||
boot:
|
||||
src/hal_tbl.c: tools/create_hal_tbl.py $(COMPS)
|
||||
@echo Generating HAL table
|
||||
@$(MKDIR) -p $(dir $@)
|
||||
@$(PYTHON) tools/create_hal_tbl.py $@ $(COMPS)
|
||||
|
||||
$(SRC_COMP_OBJECTS): $(OBJDIR)/src/comps/%.o: inc/comps/%_comp.h
|
||||
|
||||
$(SHARED_COMP_OBJECTS): $(OBJDIR)/shared/comps/%.o: inc/shared_comps/%_comp.h
|
||||
|
||||
inc/comps/%_comp.h: src/comps/%.c
|
||||
@echo Generating H: $<
|
||||
@$(MKDIR) -p $(dir $@)
|
||||
@$(PYTHON) tools/create_comp_h.py $@ $<
|
||||
|
||||
inc/shared_comps/%_comp.h: shared/comps/%.c
|
||||
@echo Generating H: $<
|
||||
@$(MKDIR) -p $(dir $@)
|
||||
@$(PYTHON) tools/create_comp_h.py $@ $<
|
||||
|
||||
src/conf_templates.c: tools/create_config.py $(CONFIG_TEMPLATES)
|
||||
@echo Generating config
|
||||
@$(MKDIR) -p $(dir $@)
|
||||
@$(PYTHON) tools/create_config.py src/conf_templates.c $(CONFIG_TEMPLATES)
|
||||
|
||||
tbl: inc/commandslist.h src/hal_tbl.c src/conf_templates.c
|
||||
|
||||
obj_boot/blboot.bin: force_look
|
||||
$(MAKE) -f bootloader/Makefile
|
||||
|
||||
#build f4 bootloader
|
||||
boot: obj_boot/blboot.bin
|
||||
|
||||
#flash f4 bootloader using stlink
|
||||
boot_flash: boot
|
||||
boot_flash:
|
||||
$(MAKE) -f bootloader/Makefile flash
|
||||
|
||||
#flash f4 bootloader using df-util
|
||||
boot_btburn: boot
|
||||
boot_btburn:
|
||||
$(MAKE) -f bootloader/Makefile btburn
|
||||
|
||||
|
||||
#build f3 bootloader
|
||||
f3_boot:
|
||||
f3_boot: force_look
|
||||
$(MAKE) -f f3_boot/Makefile
|
||||
|
||||
#flash f3 bootloader using stlink
|
||||
@@ -325,7 +356,7 @@ f3_boot_btburn:
|
||||
|
||||
|
||||
#build f3 firmware
|
||||
f3:
|
||||
f3: force_look
|
||||
$(MAKE) -f stm32f303/Makefile
|
||||
|
||||
#flash f3 firmware using stlink
|
||||
@@ -338,39 +369,50 @@ f3_btburn:
|
||||
|
||||
|
||||
#generate f3 firmware object from f3 bin
|
||||
hv_firmware.o:
|
||||
hv_firmware.o: force_look
|
||||
$(MAKE) -f stm32f303/Makefile all
|
||||
|
||||
#build f103 firmware for V3 hardware
|
||||
f1:
|
||||
f1: force_look
|
||||
$(MAKE) -f stm32f103/Makefile
|
||||
|
||||
#flash f103 firmware for V3 hardware using stlink
|
||||
f1_flash: boot
|
||||
$(MAKE) -f stm32f103/Makefile flash
|
||||
|
||||
f3_all_btburn:
|
||||
f3_all_btburn: f3.bin
|
||||
@$(DFU-UTIL) -d 0483:df11 -a 0 -s 0x08000000:leave -D f3.bin
|
||||
all_btburn:
|
||||
all_btburn: tools/bootloader.py f4.bin
|
||||
@$(PYTHON) tools/bootloader.py
|
||||
@sleep 1
|
||||
@$(DFU-UTIL) -d 0483:df11 -a 0 -s 0x08000000:leave -D f4.bin
|
||||
all_flash:
|
||||
all_flash: f4.bin
|
||||
@$(ST-FLASH) --reset write f4.bin 0x08000000
|
||||
f3_all_flash:
|
||||
f3_all_flash: f3.bin
|
||||
@$(ST-FLASH) --reset write f3.bin 0x08000000
|
||||
|
||||
deploy: f3_boot f3 boot build binall
|
||||
|
||||
binall:
|
||||
f4.bin: obj_boot/blboot.bin conf/festo.txt $(TARGET).bin
|
||||
cat obj_boot/blboot.bin /dev/zero | head -c 32768 > f4.bin
|
||||
cat conf/festo.txt /dev/zero | head -c 32768 >> f4.bin
|
||||
cat obj_app/stmbl.bin >> f4.bin
|
||||
cat $(TARGET).bin >> f4.bin
|
||||
|
||||
f3.bin: obj_f3_boot/f3_boot.bin obj_hvf3/hvf3.bin
|
||||
cat obj_f3_boot/f3_boot.bin /dev/zero | head -c 16384 > f3.bin
|
||||
cat obj_hvf3/hvf3.bin >> f3.bin
|
||||
|
||||
# TODO: consolidate these two rules into a wildcard version?
|
||||
f4.dfu: tools/dfu-convert.py f4.bin
|
||||
$(PYTHON) tools/dfu-convert.py -b 0x08000000:f4.bin f4.dfu
|
||||
|
||||
f3.dfu: tools/dfu-convert.py f3.bin
|
||||
$(PYTHON) tools/dfu-convert.py -b 0x08000000:f3.bin f3.dfu
|
||||
$(PYTHON) tools/dfu-convert.py -b 0x08010000:obj_app/stmbl.bin stmbl.dfu
|
||||
|
||||
stmbl.dfu: tools/dfu-convert.py $(TARGET).bin
|
||||
$(PYTHON) tools/dfu-convert.py -b 0x08010000:$(TARGET).bin stmbl.dfu
|
||||
|
||||
binall: f4.dfu f3.dfu stmbl.dfu
|
||||
|
||||
format:
|
||||
find src/ f3_boot/ bootloader/ stm32f103/ stm32f303/ shared/ inc/ tools/ -iname '*.h' -o -iname '*.c' | xargs clang-format -i
|
||||
@@ -380,10 +422,13 @@ format:
|
||||
clean:
|
||||
@echo Cleaning project:
|
||||
rm -rf hv_firmware.o
|
||||
rm -rf f3.bin f4.bin f3.dfu f4.dfu stmbl.dfu
|
||||
rm -rf f3.bin f4.bin f3.dfu f4.dfu stmbl.dfu
|
||||
rm -rf $(OBJDIR)
|
||||
rm -rf inc/commandslist.h
|
||||
rm -rf inc/comps/*
|
||||
rm -rf inc/shared_comps/*
|
||||
rm -rf src/conf_templates.c
|
||||
rm -rf src/hal_tbl.c
|
||||
@$(MAKE) -f bootloader/Makefile clean
|
||||
@$(MAKE) -f f3_boot/Makefile clean
|
||||
@$(MAKE) -f stm32f103/Makefile clean
|
||||
@@ -397,9 +442,18 @@ include base.mak
|
||||
#
|
||||
-include $(OBJECTS:.o=.d)
|
||||
|
||||
force_look:
|
||||
@true
|
||||
|
||||
# Listing of phony targets
|
||||
#
|
||||
.PHONY: all build flash clean \
|
||||
boot boot_clean boot_flash btburn boot_btflash boot_flash\
|
||||
elf lss sym \
|
||||
showsize gccversion tbl f3_boot binall deploy format f3_all_btburn all_btburn f3_all_flash all_flash
|
||||
.PHONY: all build clean \
|
||||
elf hex bin lss sym tbl \
|
||||
boot boot_flash boot_brburn \
|
||||
f3_boot f3_boot_flash f3_boot_btburn \
|
||||
f3 f3_flash f3_btburn \
|
||||
f1 f1_flash \
|
||||
f3_all_btburn all_btburn all_flash f3_all_flash \
|
||||
deploy \
|
||||
format \
|
||||
force_look
|
||||
|
||||
4
base.mak
4
base.mak
@@ -74,7 +74,7 @@ showsize: build
|
||||
|
||||
# Flash the device
|
||||
#
|
||||
btburn: build showsize $(TARGET).dfu
|
||||
btburn: tools/bootloader.py build showsize $(TARGET).dfu
|
||||
@$(PYTHON) tools/bootloader.py
|
||||
@sleep 1
|
||||
@$(DFU-UTIL) -d 0483:df11 -a 0 -s $(ADDRESS):leave -D $(TARGET).dfu
|
||||
@@ -89,3 +89,5 @@ flash: $(TARGET).bin
|
||||
|
||||
include toolchain.mak
|
||||
-include toolchain-user.mak
|
||||
|
||||
.PHONY: gccversion showsize btburn flash
|
||||
|
||||
@@ -155,7 +155,5 @@ include base.mak
|
||||
|
||||
# Listing of phony targets
|
||||
#
|
||||
.PHONY: all build flash btfash clean \
|
||||
boot boot_clean boot_flash \
|
||||
elf lss sym \
|
||||
showsize gccversion
|
||||
.PHONY: all build clean \
|
||||
elf hex bin lss sym
|
||||
|
||||
@@ -175,7 +175,5 @@ include base.mak
|
||||
|
||||
# Listing of phony targets
|
||||
#
|
||||
.PHONY: all build flash clean \
|
||||
boot boot_clean boot_flash btburn boot_btflash boot_flash\
|
||||
elf lss sym \
|
||||
showsize gccversion
|
||||
.PHONY: all build clean \
|
||||
elf hex bin lss sym
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "comps/ac_comp.h"
|
||||
#include "hal.h"
|
||||
|
||||
HAL_COMP(ac);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "acim_ttc_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "and_comp.h"
|
||||
#include "hal.h"
|
||||
|
||||
HAL_COMP(and);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "comps/auto_ac_comp.h"
|
||||
#include "hal.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "avg_comp.h"
|
||||
#include "hal.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "curpid_comp.h"
|
||||
#include "commands.h"
|
||||
#include "common.h"
|
||||
#include "hal.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "comps/dc_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "dc_limits_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "dc_ttc_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "debounce_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "dq_comp.h"
|
||||
#include "commands.h"
|
||||
#include "common.h"
|
||||
#include "hal.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "en_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "fanuc_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "fault_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "fb_switch_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "field_comp.h"
|
||||
/*
|
||||
* This file is part of the stmbl project.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "fmove_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "gain_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "hal_test_comp.h"
|
||||
#include "hal.h"
|
||||
|
||||
HAL_COMP(hal_test);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "home_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "idq_comp.h"
|
||||
#include "commands.h"
|
||||
#include "common.h"
|
||||
#include "hal.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "idx_home_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "iit_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "comps/iit_old_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "jog_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "defines.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "linrev_comp.h"
|
||||
//Calculate motor angle from position in machine units
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "mad_comp.h"
|
||||
#include "hal.h"
|
||||
|
||||
HAL_COMP(mad);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "move_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "mpid_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "mux_comp.h"
|
||||
#include "hal.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "not_comp.h"
|
||||
#include "hal.h"
|
||||
|
||||
HAL_COMP(not);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "or_comp.h"
|
||||
#include "hal.h"
|
||||
|
||||
HAL_COMP(or);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "pe_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "pid_comp.h"
|
||||
/*
|
||||
* This file is part of the stmbl project.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "comps/pmsm_comp.h"
|
||||
/*
|
||||
* This file is part of the stmbl project.
|
||||
*
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "pmsm_limits_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "pmsm_ttc_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "pos_filter_comp.h"
|
||||
#include "hal.h"
|
||||
#include "angle.h"
|
||||
#include "defines.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "psi_comp.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
#include "defines.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "ramp_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "defines.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "reslimit_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "rev_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "rl_comp.h"
|
||||
#include "hal.h"
|
||||
#include "angle.h"
|
||||
#include "defines.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "rlpsij_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include "scale_comp.h"
|
||||
#include "commands.h"
|
||||
#include "hal.h"
|
||||
#include "math.h"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user