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 | 93e3d0e9d28449154b09e803d22ad5a02b35f285 (patch) | |
| tree | 921a46ea5a1de17131b1cba3e6a42de52d870961 /main.cpp.example | |
| parent | feae1d4478ba9f3e6699b5ad2e7353e711305165 (diff) | |
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 'main.cpp.example')
0 files changed, 0 insertions, 0 deletions
