...
This section contains a list of code examples that can perform various simple tasks. In general, to compile the code it is only necessary to add a few files to your project:
FlashPro-ARMM:
include FlashProARMFlashProM-Dll.h
on Windows link with FlashProARMFlashProM-FPAsel.lib or dynamically load FlashProARMFlashProM-FPAsel.dll
on Linux use this makefile to compile any .cpp file.
Code Block language powershell #"sudo dpkg -i <deb file from linux package>" to install multifparmmultifpm CC := g++ LIBS_FP := -lmultifparmlmultifpm -lpthread -ldl -lusb-1.0 -ludev CPP_FILES := $(wildcard *.cpp) EXECS := $(notdir $(CPP_FILES:.cpp=)) EXECSFP := $(addsuffix fp, $(notdir $(CPP_FILES:.cpp=))) .PHONY: all clean all: $(EXECS) %: %.cpp $(CC) -o $@fp $< -DFLASHPROARMDFLASHPROM -L. $(LIBS_FP) clean: rm -f $(EXECSFP) .PHONY: force force :;
GangPro-ARMM:
include GangProARMGangProM-Dll.h
on Windows link with GangProARMGangProM-FPAsel.lib or dynamically load GangProARMGangProM-FPAsel.dll
on Linux use this Makefile to compile any .cpp file.
Code Block language powershell #"sudo dpkg -i <deb file from linux package>" to install multigparmmultigpm CC := g++ LIBS_GP := -lmultigparmlmultigpm -lpthread -ldl -lusb-1.0 -ludev CPP_FILES := $(wildcard *.cpp) EXECS := $(notdir $(CPP_FILES:.cpp=)) EXECSGP := $(addsuffix gp, $(notdir $(CPP_FILES:.cpp=))) .PHONY: all clean all: $(EXECS) %: %.cpp $(CC) -o $@gp $< -DGANGPROARMDGANGPROM -L. $(LIBS_GP) clean: rm -f $(EXECSGP) .PHONY: force force :;
...