summaryrefslogtreecommitdiff
path: root/src/arch/msp430fr5969lp
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-12 10:44:11 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-12 10:44:11 +0200
commitfd1aabd0417bef53e7ff54df52eba80be5494d56 (patch)
treee0cb6183e82f1fbf78fb66c673eee8cb497bc658 /src/arch/msp430fr5969lp
parent4853a5593cc6147e1851e537b46a5128792939a5 (diff)
half-baked timer implementation for MSP430 and Arduino
Diffstat (limited to 'src/arch/msp430fr5969lp')
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc4
-rw-r--r--src/arch/msp430fr5969lp/driver/timer.cc3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index 28c1cef..037c9cd 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -43,6 +43,10 @@ ifneq ($(findstring spi_b,${arch_drivers}), )
TARGETS += src/arch/msp430fr5969lp/driver/spi_b.cc
endif
+ifneq ($(findstring timer,${arch_drivers}), )
+ TARGETS += src/arch/msp430fr5969lp/driver/timer.cc
+endif
+
OBJECTS = ${TARGETS:.cc=.o}
.cc.o:
diff --git a/src/arch/msp430fr5969lp/driver/timer.cc b/src/arch/msp430fr5969lp/driver/timer.cc
new file mode 100644
index 0000000..4f2d6d1
--- /dev/null
+++ b/src/arch/msp430fr5969lp/driver/timer.cc
@@ -0,0 +1,3 @@
+#include "driver/timer.h"
+
+Timer timer;