From 058c2d284a7f0da96a30b17764676a940e102d93 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Sat, 2 Jun 2012 22:06:33 -0400 Subject: HardwareTimer.cpp: cosmetics. Signed-off-by: Marti Bolivar --- wirish/HardwareTimer.cpp | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.3