aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2012-06-02 22:06:33 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2012-06-03 00:04:01 -0400
commit058c2d284a7f0da96a30b17764676a940e102d93 (patch)
treead93c287f751c244abfada90ab891bcde63f2cde
parentc274dfafc202134e791de1468ba2cf0c9137621e (diff)
downloadlibrambutan-058c2d284a7f0da96a30b17764676a940e102d93.tar.gz
librambutan-058c2d284a7f0da96a30b17764676a940e102d93.zip
HardwareTimer.cpp: cosmetics.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rw-r--r--wirish/HardwareTimer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/wirish/HardwareTimer.cpp b/wirish/HardwareTimer.cpp
index ef720ce..4f68ad7 100644
--- a/wirish/HardwareTimer.cpp
+++ b/wirish/HardwareTimer.cpp
@@ -33,8 +33,6 @@
// TODO [0.1.0] Remove deprecated pieces
-#define MAX_RELOAD ((1 << 16) - 1)
-
/*
* Evil hack to infer this->dev from timerNum in the HardwareTimer
* constructor. See:
@@ -102,6 +100,7 @@ void HardwareTimer::setCount(uint16 val) {
timer_set_count(this->dev, min(val, ovf));
}
+#define MAX_RELOAD ((1 << 16) - 1)
uint16 HardwareTimer::setPeriod(uint32 microseconds) {
// Not the best way to handle this edge case?
if (!microseconds) {