⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 st7mc_blpmdc_cosmic.mak

📁 该程序是ST7MC驱动BLDC120
💻 MAK
字号:
# ST Visual Debugger Generated MAKE File, based on st7mc_blpmdc_Cosmic.stp

ifeq ($(CFG), )
CFG=Release
$(warning ***No configuration specified. Defaulting to $(CFG)***)
endif

ToolsetRoot=C:\COSMIC\CXST7_4K
ToolsetBin=C:\COSMIC\CXST7_4K
ToolsetInc=-iC:\COSMIC\CXST7_4K\Hst7 
ToolsetLib=C:\COSMIC\CXST7_4K\Lib 
ObjectExt=o
OutputExt=elf
InputName=$(basename $(notdir $<))


# 
# Debug
# 
ifeq "$(CFG)" "Debug"


OutputPath=Debug
ProjectSFile=st7mc_blpmdc_Cosmic
TargetSName=$(ProjectSFile)
TargetFName=$(ProjectSFile).elf
IntermPath=$(dir $@)
CFLAGS_PRJ=$(ToolsetBin)\cxst7  -isource +modms +debug -pxp -no +strict -pp -l $(ToolsetInc) -cl$(IntermPath:%\=%) -co$(IntermPath:%\=%) $<
ASMFLAGS_PRJ=$(ToolsetBin)\cast7  -xx -l $(ToolsetInc) -o$(IntermPath)$(InputName).$(ObjectExt) $<

all : $(OutputPath) $(ProjectSFile).elf

$(OutputPath) : 
	if not exist $(OutputPath)/ mkdir $(OutputPath)

Debug\adc.$(ObjectExt) : source\adc.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\adc.h source\mtc.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\it_st7mc.$(ObjectExt) : source\it_st7mc.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\it_st7mc.h source\st7mc_hr.h source\version.h source\ports.h source\timer.h source\mtc.h source\regul.h source\wwdg.h source\linsci.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\linsci.$(ObjectExt) : source\linsci.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\linsci.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\main.$(ObjectExt) : source\main.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\mtc.h source\st7mc_hr.h source\ports.h source\opamp.h source\timer.h source\it_st7mc.h source\linsci.h source\misc.h source\wwdg.h source\spi.h source\regul.h source\adc.h source\mtc_settings_sensorless.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\misc.$(ObjectExt) : source\misc.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\st7mc_hr.h source\mtc_hr.h source\mtc.h source\misc.h source\timer.h source\adc.h source\ports.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\mtc.$(ObjectExt) : source\mtc.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\ports.h source\st7mc_hr.h source\mtc_hr.h source\linsci.h source\timer.h source\adc.h source\regul.h source\mtc.h source\misc.h source\opamp.h source\mtc_settings_sensorless.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\mtc_hr.$(ObjectExt) : source\mtc_hr.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\opamp.$(ObjectExt) : source\opamp.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\opamp.h source\misc.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\ports.$(ObjectExt) : source\ports.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\ports.h source\it_st7mc.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\regul.$(ObjectExt) : source\regul.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\mtc.h source\regul.h source\st7mc_hr.h source\it_st7mc.h source\linsci.h source\mtc_settings_sensorless.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\spi.$(ObjectExt) : source\spi.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\st7mc_hr.h source\spi.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\st7mc_hr.$(ObjectExt) : source\st7mc_hr.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\timer.$(ObjectExt) : source\timer.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\timer.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\vector.$(ObjectExt) : source\vector.c c:\cosmic\cxst7_4k\hst7\modms.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Debug\wwdg.$(ObjectExt) : source\wwdg.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

$(ProjectSFile).elf :  $(OutputPath)\adc.o $(OutputPath)\it_st7mc.o $(OutputPath)\linsci.o $(OutputPath)\main.o $(OutputPath)\misc.o $(OutputPath)\mtc.o $(OutputPath)\mtc_hr.o $(OutputPath)\opamp.o $(OutputPath)\ports.o $(OutputPath)\regul.o $(OutputPath)\spi.o $(OutputPath)\st7mc_hr.o $(OutputPath)\timer.o $(OutputPath)\vector.o $(OutputPath)\wwdg.o
	$(ToolsetBin)\clnk  -o $(OutputPath)\$(TargetSName).st7 -l$(ToolsetLib) -m$(OutputPath)\$(TargetSName).map $(OutputPath)\$(TargetSName).lkf 
	$(ToolsetBin)\cvdwarf  $(OutputPath)\$(TargetSName).st7

	$(ToolsetBin)\chex  -o $(OutputPath)\$(TargetSName).s19 $(OutputPath)\$(TargetSName).st7
clean : 
	-@erase $(OutputPath)\adc.o
	-@erase $(OutputPath)\it_st7mc.o
	-@erase $(OutputPath)\linsci.o
	-@erase $(OutputPath)\main.o
	-@erase $(OutputPath)\misc.o
	-@erase $(OutputPath)\mtc.o
	-@erase $(OutputPath)\mtc_hr.o
	-@erase $(OutputPath)\opamp.o
	-@erase $(OutputPath)\ports.o
	-@erase $(OutputPath)\regul.o
	-@erase $(OutputPath)\spi.o
	-@erase $(OutputPath)\st7mc_hr.o
	-@erase $(OutputPath)\timer.o
	-@erase $(OutputPath)\vector.o
	-@erase $(OutputPath)\wwdg.o
	-@erase $(OutputPath)\st7mc_blpmdc_Cosmic.elf
	-@erase $(OutputPath)\st7mc_blpmdc_Cosmic.elf
	-@erase $(OutputPath)\st7mc_blpmdc_Cosmic.map
	-@erase $(OutputPath)\adc.ls
	-@erase $(OutputPath)\it_st7mc.ls
	-@erase $(OutputPath)\linsci.ls
	-@erase $(OutputPath)\main.ls
	-@erase $(OutputPath)\misc.ls
	-@erase $(OutputPath)\mtc.ls
	-@erase $(OutputPath)\mtc_hr.ls
	-@erase $(OutputPath)\opamp.ls
	-@erase $(OutputPath)\ports.ls
	-@erase $(OutputPath)\regul.ls
	-@erase $(OutputPath)\spi.ls
	-@erase $(OutputPath)\st7mc_hr.ls
	-@erase $(OutputPath)\timer.ls
	-@erase $(OutputPath)\vector.ls
	-@erase $(OutputPath)\wwdg.ls
endif

# 
# Release
# 
ifeq "$(CFG)" "Release"


OutputPath=Release
ProjectSFile=st7mc_blpmdc_Cosmic
TargetSName=$(ProjectSFile)
TargetFName=$(ProjectSFile).elf
IntermPath=$(dir $@)
CFLAGS_PRJ=$(ToolsetBin)\cxst7  +modms +compact +debug +split +strict -l -isource $(ToolsetInc) -cl$(IntermPath:%\=%) -co$(IntermPath:%\=%) $<
ASMFLAGS_PRJ=$(ToolsetBin)\cast7  $(ToolsetInc) -o$(IntermPath)$(InputName).$(ObjectExt) $<

all : $(OutputPath) $(ProjectSFile).elf

$(OutputPath) : 
	if not exist $(OutputPath)/ mkdir $(OutputPath)

Release\adc.$(ObjectExt) : source\adc.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\adc.h source\mtc.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\it_st7mc.$(ObjectExt) : source\it_st7mc.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\it_st7mc.h source\st7mc_hr.h source\version.h source\ports.h source\timer.h source\mtc.h source\regul.h source\wwdg.h source\linsci.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\linsci.$(ObjectExt) : source\linsci.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\linsci.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\main.$(ObjectExt) : source\main.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\mtc.h source\st7mc_hr.h source\ports.h source\opamp.h source\timer.h source\it_st7mc.h source\linsci.h source\misc.h source\wwdg.h source\spi.h source\regul.h source\adc.h source\mtc_settings_sensorless.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\misc.$(ObjectExt) : source\misc.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\st7mc_hr.h source\mtc_hr.h source\mtc.h source\misc.h source\timer.h source\adc.h source\ports.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\mtc.$(ObjectExt) : source\mtc.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\ports.h source\st7mc_hr.h source\mtc_hr.h source\linsci.h source\timer.h source\adc.h source\regul.h source\mtc.h source\misc.h source\opamp.h source\mtc_settings_sensorless.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\mtc_hr.$(ObjectExt) : source\mtc_hr.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\opamp.$(ObjectExt) : source\opamp.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\opamp.h source\misc.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\ports.$(ObjectExt) : source\ports.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\ports.h source\it_st7mc.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\regul.$(ObjectExt) : source\regul.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\mtc.h source\regul.h source\st7mc_hr.h source\it_st7mc.h source\linsci.h source\mtc_settings_sensorless.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\spi.$(ObjectExt) : source\spi.c c:\cosmic\cxst7_4k\hst7\modms.h source\version.h source\lib.h source\st7mc_hr.h source\spi.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\st7mc_hr.$(ObjectExt) : source\st7mc_hr.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\timer.$(ObjectExt) : source\timer.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\timer.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\vector.$(ObjectExt) : source\vector.c c:\cosmic\cxst7_4k\hst7\modms.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

Release\wwdg.$(ObjectExt) : source\wwdg.c c:\cosmic\cxst7_4k\hst7\modms.h source\lib.h source\st7mc_hr.h source\wwdg.h 
	@if not exist $(dir $@)  mkdir $(dir $@)
	$(CFLAGS_PRJ)

$(ProjectSFile).elf :  $(OutputPath)\adc.o $(OutputPath)\it_st7mc.o $(OutputPath)\linsci.o $(OutputPath)\main.o $(OutputPath)\misc.o $(OutputPath)\mtc.o $(OutputPath)\mtc_hr.o $(OutputPath)\opamp.o $(OutputPath)\ports.o $(OutputPath)\regul.o $(OutputPath)\spi.o $(OutputPath)\st7mc_hr.o $(OutputPath)\timer.o $(OutputPath)\vector.o $(OutputPath)\wwdg.o
	$(ToolsetBin)\clnk  -o $(OutputPath)\$(TargetSName).st7 -l$(ToolsetLib) -m$(OutputPath)\$(TargetSName).map -e$(OutputPath)\$(TargetSName).err $(OutputPath)\$(TargetSName).lkf 
	$(ToolsetBin)\cvdwarf  $(OutputPath)\$(TargetSName).st7
	ctst7  -n16 -o jmptab.s $(OutputPath)\$(TargetSName).st7

	$(ToolsetBin)\chex  -o $(OutputPath)\$(TargetSName).s19 $(OutputPath)\$(TargetSName).st7
clean : 
	-@erase $(OutputPath)\adc.o
	-@erase $(OutputPath)\it_st7mc.o
	-@erase $(OutputPath)\linsci.o
	-@erase $(OutputPath)\main.o
	-@erase $(OutputPath)\misc.o
	-@erase $(OutputPath)\mtc.o
	-@erase $(OutputPath)\mtc_hr.o
	-@erase $(OutputPath)\opamp.o
	-@erase $(OutputPath)\ports.o
	-@erase $(OutputPath)\regul.o
	-@erase $(OutputPath)\spi.o
	-@erase $(OutputPath)\st7mc_hr.o
	-@erase $(OutputPath)\timer.o
	-@erase $(OutputPath)\vector.o
	-@erase $(OutputPath)\wwdg.o
	-@erase $(OutputPath)\st7mc_blpmdc_Cosmic.elf
	-@erase $(OutputPath)\st7mc_blpmdc_Cosmic.elf
	-@erase $(OutputPath)\st7mc_blpmdc_Cosmic.map
	-@erase $(OutputPath)\adc.ls
	-@erase $(OutputPath)\it_st7mc.ls
	-@erase $(OutputPath)\linsci.ls
	-@erase $(OutputPath)\main.ls
	-@erase $(OutputPath)\misc.ls
	-@erase $(OutputPath)\mtc.ls
	-@erase $(OutputPath)\mtc_hr.ls
	-@erase $(OutputPath)\opamp.ls
	-@erase $(OutputPath)\ports.ls
	-@erase $(OutputPath)\regul.ls
	-@erase $(OutputPath)\spi.ls
	-@erase $(OutputPath)\st7mc_hr.ls
	-@erase $(OutputPath)\timer.ls
	-@erase $(OutputPath)\vector.ls
	-@erase $(OutputPath)\wwdg.ls
endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -