diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-01 03:26:19 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-06-01 03:27:05 -0400 |
commit | 73f2cefbdf6d8f255bc5284c64d315f38ee45616 (patch) | |
tree | 921a46ea5a1de17131b1cba3e6a42de52d870961 /wirish/wirish_time.cpp | |
parent | 5befb0826a1ff77994c55f42cd73ccf0905a5ce0 (diff) | |
download | librambutan-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/wirish_time.cpp')
0 files changed, 0 insertions, 0 deletions