aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/rules.mk
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-01 03:26:19 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-01 03:27:05 -0400
commit73f2cefbdf6d8f255bc5284c64d315f38ee45616 (patch)
tree921a46ea5a1de17131b1cba3e6a42de52d870961 /wirish/rules.mk
parent5befb0826a1ff77994c55f42cd73ccf0905a5ce0 (diff)
downloadlibrambutan-73f2cefbdf6d8f255bc5284c64d315f38ee45616.tar.gz
librambutan-73f2cefbdf6d8f255bc5284c64d315f38ee45616.zip
Bring back HardwareTimer.
Untested, but the timers work on F2 (see exampes/test-timers.cpp), so I'm hoping this is mostly OK. Note that there's an issue with TIMER2 and TIMER5 on F2: these timers have 32-bit counters, and the HardwareTimer methods are all based on uint16 (like on F1). I'm sorely tempted to keep this as-is; exposing the extra bits is just extra documentation, and the HardwareTimer interface is already way too complicated. The interface should still _work_; it just hides the fact that you're missing out on the extra bits for some of the timers. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/rules.mk')
-rw-r--r--wirish/rules.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/rules.mk b/wirish/rules.mk
index deb3906..54c9180 100644
--- a/wirish/rules.mk
+++ b/wirish/rules.mk
@@ -23,6 +23,7 @@ cSRCS_$(d) := start_c.c
cppSRCS_$(d) := boards.cpp
cppSRCS_$(d) += cxxabi-compat.cpp
cppSRCS_$(d) += HardwareSerial.cpp
+cppSRCS_$(d) += HardwareTimer.cpp
cppSRCS_$(d) += Print.cpp
cppSRCS_$(d) += wirish_analog.cpp
cppSRCS_$(d) += wirish_digital.cpp
@@ -34,7 +35,6 @@ cppSRCS_$(d) += $(MCU_SERIES)/wirish_digital.cpp
cppSRCS_$(d) += $(WIRISH_BOARD_PATH)/board.cpp
# TODO: revise these appropriately F2 and put them back in:
# HardwareSPI.cpp
-# HardwareTimer.cpp
# usb_serial.cpp
# pwm.cpp
# ext_interrupts.cpp