summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-06 14:11:45 +0700
committerhathach <[email protected]>2020-04-06 14:11:45 +0700
commit2d6d298302be2d39374c36e7889341dee944d542 (patch)
tree1e935941eca71d06b84ad781a45144b1c88b4464 /examples
parent4430ea61e20844726cdce33602e60f40a136a99e (diff)
move irqhandler to application
tud_isr() must be called by application to forward the irqhandle to the stack
Diffstat (limited to 'examples')
-rw-r--r--examples/device/board_test/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/device/board_test/Makefile b/examples/device/board_test/Makefile
index 5a455078e..ce34c7ccd 100644
--- a/examples/device/board_test/Makefile
+++ b/examples/device/board_test/Makefile
@@ -9,4 +9,10 @@ INC += \
EXAMPLE_SOURCE += $(wildcard src/*.c)
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
+# board_test example is special example that doesn't enable device or host stack
+# This can cause some TinyUSB API missing, this hack to allow us to fill those API
+# to pass the compilation process
+CFLAGS += \
+ -D"tud_isr(x)= " \
+
include ../../rules.mk