summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/Makefile
diff options
context:
space:
mode:
authortobozo <[email protected]>2022-04-25 01:43:46 +0200
committerGitHub <[email protected]>2022-04-25 01:43:46 +0200
commit9e38b4cc68d9eeeb055349a97caf30d1cf4000e0 (patch)
tree68c63fe8b0625b84e2ca4398f9f79d80f5dc3495 /examples/host/bare_api/Makefile
parent9526a0ff736ccc4c8a9791a8467d6a6de82c0c45 (diff)
parent55a5fd59d7263289f5c26d52ab206ed571cc1e0c (diff)
Merge branch 'hathach:master' into master
Diffstat (limited to 'examples/host/bare_api/Makefile')
-rw-r--r--examples/host/bare_api/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/host/bare_api/Makefile b/examples/host/bare_api/Makefile
new file mode 100644
index 000000000..13e14df53
--- /dev/null
+++ b/examples/host/bare_api/Makefile
@@ -0,0 +1,27 @@
+include ../../../tools/top.mk
+include ../../make.mk
+
+INC += \
+ src \
+ $(TOP)/hw \
+
+# Example source
+EXAMPLE_SOURCE += \
+ src/main.c
+
+SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
+
+# TODO: suppress warning caused by host stack
+CFLAGS += -Wno-error=cast-align -Wno-error=null-dereference
+
+# TinyUSB Host Stack source
+SRC_C += \
+ src/class/cdc/cdc_host.c \
+ src/class/hid/hid_host.c \
+ src/class/msc/msc_host.c \
+ src/host/hub.c \
+ src/host/usbh.c \
+ src/portable/ohci/ohci.c \
+ src/portable/nxp/lpc17_40/hcd_lpc17_40.c
+
+include ../../rules.mk