aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/include
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/include
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/include')
-rw-r--r--wirish/include/wirish/HardwareTimer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/include/wirish/HardwareTimer.h b/wirish/include/wirish/HardwareTimer.h
index bdcca5d..d322033 100644
--- a/wirish/include/wirish/HardwareTimer.h
+++ b/wirish/include/wirish/HardwareTimer.h
@@ -313,7 +313,7 @@ extern HardwareTimer Timer3;
* Pre-instantiated timer.
*/
extern HardwareTimer Timer4;
-#ifdef STM32_HIGH_DENSITY
+#if (STM32_MCU_SERIES == STM32_SERIES_F1) && defined(STM32_HIGH_DENSITY)
/**
* @brief Deprecated.
*