Mark Gottscho / HardwareTimersLib

Fork of HardwareTimersLib by Mark Gottscho

Changes

RevisionDateWhoCommit message
14:960fbd85909f 2014-03-16 mgottscho Bug fix. default tip
13:3564122e9c10 2014-03-11 mgottscho Updated start() to allow repeated calls without stopping the timer. This allows the user to re-start callbacks at runtime without breaking the timer.
12:cb395e4be69e 2014-03-11 mgottscho Enabled a new mode for the timers. You can now do indefinite periodic callbacks, or a limited number using HardwareTimer::start(). Also got rid of C functions for PIT management.
11:e0442c8b182b 2014-03-11 mgottscho Commented out the interrupt disables in all three timers' getTick(). Again, not sure why this breaks things... maybe it doesn't, but for now we'll see.
10:12c1c5cef918 2014-03-11 mgottscho Disabling interrupts inside getTick() seems to break things, not sure why, so removed those lines for Timer_TPM.
9:dff7c891ec77 2014-03-11 mgottscho Critical bug fixes
8:23c04123395c 2014-03-11 mgottscho All timers now globally disable interrupts during computation of getTick(). If this is not done, the tick count will be corrupted.
7:78f6ee57d324 2014-03-11 mgottscho MAJOR updates and refactoring of code to improve code reuse and hardware encapsulation. Now all three LPTMR, TPM, and PIT timers inherit from the same HardwareTimer base abstract class, which provides as much functionality as possible.
6:5dc3dd828da7 2014-03-10 mgottscho PIT timer C global functions now allow for object member methods to be used on interrupt callbacks.
5:ea14fc749f44 2014-03-10 mgottscho Changed TPM's getTick() method. No longer disables interrupts, which was causing problems.
4:00f27dee70e9 2014-03-10 mgottscho Added some simple C functions to control the PIT hardware timer directly. See hardware_timers.h and hardware_timers.cpp. Note that you shouldn't use these C functions alongside Timer_PIT and Timer_PIT_24MHz objects.
3:dd54446143ee 2014-03-09 mgottscho Fixed PIT rollover value
2:5056ec8c52e8 2014-03-09 mgottscho Refactored code and added new PIT timer support.
1:7dde0e4d30da 2014-03-09 mgottscho Refactored code so that there can be different timer/frequency combinations. For example, Timer_48MHz now derives from Timer_TPM, which derives from HardwareTimer.
0:47acc8320421 2014-03-08 mgottscho Fixes