diff options
| author | Ha Thach <[email protected]> | 2021-08-25 12:39:51 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-25 12:39:51 +0700 |
| commit | 155c186b17e4e56d2b6339f8087d077afbea6818 (patch) | |
| tree | a0802244abf1361eab31a61d2475b28e7a432a34 /examples/host/hid_controller/Makefile | |
| parent | 9c3fdb8135f33dd3a1c8dfddaf8300e7416bd7af (diff) | |
| parent | 3debeb637acb49222f36fa08f904adc4f5d9e1b7 (diff) | |
Merge pull request #1047 from hathach/host-hid-controller
Add host hid controller example
Diffstat (limited to 'examples/host/hid_controller/Makefile')
| -rw-r--r-- | examples/host/hid_controller/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/host/hid_controller/Makefile b/examples/host/hid_controller/Makefile new file mode 100644 index 000000000..6f59faeee --- /dev/null +++ b/examples/host/hid_controller/Makefile @@ -0,0 +1,30 @@ +include ../../../tools/top.mk +include ../../make.mk + +INC += \ + src \ + $(TOP)/hw \ + +# Example source +EXAMPLE_SOURCE += \ + src/hid_app.c \ + src/main.c + +SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE)) + +CFLAGS += -Wno-error=cast-align + +# 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/ehci/ehci.c \ + src/portable/ohci/ohci.c \ + src/portable/nxp/transdimension/hcd_transdimension.c \ + src/portable/nxp/lpc17_40/hcd_lpc17_40.c + +include ../../rules.mk |
