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

📄 makefile

📁 This a simple hardware UART test program. It receives text lines over the serial port and writes ba
💻
字号:
# makfile configurationNAME            = uartOBJECTS         = main.o taskhandler.o serialComm.o asmlib.oCPU             = msp430x148ASFLAGS         = -mmcu=${CPU} -D_GNU_ASSEMBLER_CFLAGS          = -mmcu=${CPU} -O2 -Wall -g#switch the compiler (for the internal make rules)CC              = msp430-gccAS              = msp430-gcc.PHONY: all FORCE clean download download-jtag download-bsl dist#all should be the first target. it's built when make is run without argsall: ${NAME}.elf ${NAME}.a43 ${NAME}.lst#confgigure the next line if you want to use the serial downloaddownload: download-jtag#download: download-bsl#additional rules for files${NAME}.elf: ${OBJECTS}	${CC} -mmcu=${CPU} -o $@ ${OBJECTS}${NAME}.a43: ${NAME}.elf	msp430-objcopy -O ihex $^ $@${NAME}.lst: ${NAME}.elf	msp430-objdump -dSt $^ >$@download-jtag: all	msp430-jtag -e ${NAME}.elfdownload-bsl: all	msp430-bsl -e ${NAME}.elfclean:	rm -f ${NAME}.elf ${NAME}.a43 ${NAME}.lst ${OBJECTS}#backup archivedist:	tar czf dist.tgz *.c *.h *.txt makefile#dummy target as dependecy if something has to be build everytimeFORCE:#project dependenciesmain.o:         main.c          hardware.h taskhandler.hserialComm.o:   serialComm.c    hardware.h serialComm.h asmlib.hasmlib.o:       asmlib.S        hardware.htaskhandler.o:  taskhandler.S   hardware.h taskhandler.h tasklist.h

⌨️ 快捷键说明

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