summaryrefslogtreecommitdiff
path: root/examples/host/bare_api/Makefile
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-03-04 22:59:16 +0700
committerGitHub <[email protected]>2022-03-04 22:59:16 +0700
commit8e0b8c15eaf89e956435b8d7df00707b94a090c6 (patch)
tree67ceb7a9015fcd817a04b53f50e050b713e5cfa1 /examples/host/bare_api/Makefile
parent5453c7e97f673dfc804524177b5d01c9a6242dcf (diff)
parent56c2d4b666856dedd9ced301d8a273c55ee2afd6 (diff)
Merge pull request #1369 from tannewt/host_string_desc
Add host string descriptor functions
Diffstat (limited to 'examples/host/bare_api/Makefile')
-rw-r--r--examples/host/bare_api/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/host/bare_api/Makefile b/examples/host/bare_api/Makefile
new file mode 100644
index 000000000..c59369ffa
--- /dev/null
+++ b/examples/host/bare_api/Makefile
@@ -0,0 +1,28 @@
+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/host/usbh_control.c \
+ src/portable/ohci/ohci.c \
+ src/portable/nxp/lpc17_40/hcd_lpc17_40.c
+
+include ../../rules.mk