add DWC3 codes

This commit is contained in:
xj 2024-09-09 23:52:40 -07:00
parent 2d3b8d0b95
commit 636d643a4b
5 changed files with 22 additions and 1 deletions

View File

@ -11,7 +11,7 @@
# libipc = $(KERNEL_ROOT)/services/app/libipc.o
# libsem = $(KERNEL_ROOT)/services/app/libsemaphore.o
SRC_DIR := class core mem osal port dev
SRC_DIR := class core mem osal port dev usb_phy
include $(KERNEL_ROOT)/compiler.mk

View File

@ -45,6 +45,7 @@ INC_DIR = -I$(KERNEL_ROOT)/services/drivers/usb/ \
-I$(KERNEL_ROOT)/services/drivers/usb/components/port \
-I$(KERNEL_ROOT)/services/drivers/usb/components/port/dwc3 \
-I$(KERNEL_ROOT)/services/drivers/usb/components/port/xhci \
-I$(KERNEL_ROOT)/services/drivers/usb/components/usb_phy \
-I$(KERNEL_ROOT)/services/drivers/usb/usb_service \
-I$(KERNEL_ROOT)/services//semaphore \
-I$(KERNEL_ROOT)/services/lib/ipc \

View File

@ -0,0 +1,11 @@
include $(KERNEL_ROOT)/services/drivers/usb/components/usb.mk
objs += usb_phy.o
all: ${objs}
@echo "generate $^"
@mv $^ $(KERNEL_ROOT)/services/drivers/usb/components
%.o: %.c
@echo "cc $^"
@${cc} ${cflags} ${c_useropts} ${INC_DIR} -o $@ -c $^

View File

@ -0,0 +1 @@
#include "usb_phy.h"

View File

@ -0,0 +1,8 @@
#ifndef USB_PHY_H_
#define USB_PHY_H_
#endif