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

📄 makefile

📁 Utils and test SD card read write cycles
💻
字号:
HSTONE = \hstone
#TARGET = -fno-delayed-branch
TARGET =  

#FLAGS  = $(TARGET) 
FLAGS  =
CCFLAGS  = $(TARGET) -c -O -mflash -DRTK=0 -Wall
CCFLAGS1 = $(TARGET) -c -O -g -mno-call-pc -fno-inline-functions -mno-multiply -DRTK=1 -Wall

FLAGS36= -DSD  -DNORTK=1 -DBLOCK_SIZE=32 -DINF3 -list
FLAGS37= -DSD -g -DNORTK=0 -DBLOCK_SIZE=32 -DINF3 -list

all: infineon

clean:
       del *.o
       del *.o1
       del *.hye
       del *.cd
       del *.map
       del *.lst
       del *.s36
       del *.s37
        
infineon: inf128.cd inf128db.hye

ATA = ata.c pcmrtk.h myrtk.h ata2.h
ata.o: $(ATA)
  hyc $(CCFLAGS) ata.c -o ata.o

ata.o1: $(ATA)
  hyc $(CCFLAGS1) ata.c -o ata.o1

Cycle_u.o: cycle_u.c Cycle.h
  hyc $(CCFLAGS) cycle_u.c -o Cycle_u.o

Cycle_u.o1: cycle_u.c Cycle.h
  hyc $(CCFLAGS1) cycle_u.c -o Cycle_u.o1

SDINT = sdint.c ata2.h
sdint.o: $(SDINT)
  hyc $(CCFLAGS) sdint.c

sdint.o1: $(SDINT)
  hyc $(CCFLAGS1) sdint.c -o sdint.o1


inf128db.hye: Cycle_u.o1 ata.o1 inf128db.lns boarddef.rom samsung.s37
  hylink -map @inf128db.lns

inf128.hye: Cycle_u.o ata.o inf128.lns boarddef.rom samsung.s36 flashstr.s36
	hylink -map @inf128.lns

inf128.cd: inf128.hye
  hyeprom @inf128.fmt
  flashcr1 inf128.cd


samsung.s37: $(SAMSUNG)
 hymasm $(FLAGS37) samsung.asm -o samsung.s37

samsung.s36: $(SAMSUNG)
 hymasm $(FLAGS36) samsung.asm -o samsung.s36

flashstr.s36: flashstr.asm samsung.inc sysconst.inc flashstr.inc pcmrtk.inc
 hymasm $(FLAGS36) -noframecheck flashstr.asm -o flashstr.s36

⌨️ 快捷键说明

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