aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-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) {