📄 makefile
字号:
## flash demo#EXAMPLES = $(TCS)/examplesFILES = $(EXAMPLES)/misc/files/files.cNROF_ITERATIONS = 10000## As defined, the flash simulator will be linked.# For the real flash, a user will have to make # the following changes:# - if a Board Support Package exists and it is not # linked in by default, a defintion to BSP must be# added.# - if a BSP is linked into the executable then BOARD# and FLASH_SPECIFIC set to nothing.# - if no BSP is linked but a Flash Driver exists,# then BOARD and FLASH_SPECIFIC should be set to point# to the specific flash driver.# - Change the definigion of HOST to match the# required host mode.# Below is an example of the changes made when using a# TTR Board.#BSP = $(TCS)/lib/$(ENDIAN)/libBSPdtv_ttr.o#BOARD =#FLASH_SPECIFIC =#HOST = nohostBSP =FLASH_SPECIFIC = $(EXAMPLES)/flash_file_system/sample_drivers/FlashSpecific$(BOARD).cBOARD = SimHOST = tmsimENDIAN = el# ERROR_RATE only used with tmsimERROR_RATE = 0CFLAGS = -DNROF_ITERATIONS=$(NROF_ITERATIONS) \ -DERROR_RATE=$(ERROR_RATE) flashtest.out: CHECK flashtest.c $(FLASH_SPECIFIC) $(TCS)/bin/tmcc $(CFLAGS) -host $(HOST) -$(ENDIAN) -o $@ \ $(FLASH_SPECIFIC) $(BSP) -tmld -u _FlashFS -- \ flashtest.c $(FILES)CHECK: @if [ x$(TCS) = x ]; then \ echo "Usage: make TCS=<path>"; false; \ ficlean: rm -rf flashtest.out *.o *.image *%## run tmsim with memory model off;# things can become slow with flash simulation# when the error rate is non-zero:#run: flashtest.out $(TCS)/bin/tmsim -ms 32000 -nomm flashtest.out
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -