From 66ba2aac4875e9131a630c29cea989551ac4cabd Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 29 Jun 2018 16:14:00 -0700 Subject: Add a CLIC interrupt example This example is fairly simple, but it does at least demonstrate how to use a C-based preemptable interrupt handler that's been registered in CLIC mode on a SiFive E21. --- software/clic_interrupts/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 software/clic_interrupts/Makefile (limited to 'software/clic_interrupts/Makefile') diff --git a/software/clic_interrupts/Makefile b/software/clic_interrupts/Makefile new file mode 100644 index 0000000..502534d --- /dev/null +++ b/software/clic_interrupts/Makefile @@ -0,0 +1,8 @@ +TARGET = clic_interrupts +CFLAGS += -O2 -fno-builtin-printf -DUSE_CLIC -DUSE_LOCAL_ISR + +BSP_BASE = ../../bsp + +C_SRCS += clic.c + +include $(BSP_BASE)/env/common.mk -- cgit v1.2.3