Purpose
- Set up the data structure to operate the device.
- Basic read and set time
- Functionality for alarm interrupt handling.
Description
- The MCU has two hardware timers, with four alarms each.
- The timer is 64 bits, hence reading the full time requires two register accesses.
- Many timing application can get away with only reading the lower 32 bits, if roll-over is taken into account.
SetTime
should only be used for development/debugging purposes, since doing so may interfere with other processes using the timing features, including the alarms.
See Also
- Module Alarms.