📄 makefile
字号:
#This is for 1362 OTG ControllerTOPDIR := $(shell cd ../..; pwd)include $(TOPDIR)/Rules.makeSRC = usb_phci.c#Mandatory FlagsCFLAGS += -D__KERNEL__ $(OTGFLAG) $(KERN_MOD_FLAGS)CFLAGS += -I$(INCLUDEDIR) -I$(HAL_INCL_DIR) ifdef PHCI_DEBUGCFLAGS += $(DEBUG_FLAG)endif#Optional Flags#Interrupt Endpoint even scheduling CONFIG_USB_PHCD_EVEN_SCHCFLAGS += -DCONFIG_USB_PHCD_EVEN_SCH#For testing Paired Ptd mechanism CONFIG_USB_PHCD_PING_PONG #test with only one bulk deviceCFLAGS += -DCONFIG_USB_PHCD_PING_PONGifndef CHIPCHIPFLAG = -D__FPGA__endif# DMA related flags# Use of this for data transfer between CPU and ISP1362 might not find# improvement in speed under this implementation for ISA (needs to copy# the data from buffer to/from DMA buffer). Could be used as a sample code.#CFLAGS += -DCONFIG_USB_PHCD_DMA# Memory related flagsCFLAGS += -DCONFIG_PHCI_MEM_SLABOBJ = $(SRC:.c=.o)TARGET = phci.oall: .depend $(TARGET)$(TARGET): $(OBJ) $(LD) -r $^ -o $@ install: # install -d $(KERN_INSTALL_DIR)# install -c $(TARGET) $(KERN_INSTALL_DIR) cp $(TARGET) $(OBJ_INSTALL_DIR)clean: rm -f $(TARGET) $(OBJ) core .dependdepend .depend dep: $(CC) $(CFLAGS) -M *.c > $@ifeq (.depend,$(wildcard .depend))include .dependendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -