diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile index 1f8bdb2e2..c8727a088 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/Makefile @@ -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 diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk index b6f00e2a2..f2dc2c015 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb.mk @@ -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 \ diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/Makefile b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/Makefile new file mode 100644 index 000000000..e4fcf450d --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/Makefile @@ -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 $^ diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/usb_phy.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/usb_phy.c new file mode 100644 index 000000000..d8cd8b904 --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/usb_phy.c @@ -0,0 +1 @@ +#include "usb_phy.h" diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/usb_phy.h b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/usb_phy.h new file mode 100644 index 000000000..2d5be425a --- /dev/null +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/usb_phy/usb_phy.h @@ -0,0 +1,8 @@ +#ifndef USB_PHY_H_ +#define USB_PHY_H_ + + + + + +#endif