Purpose
- Set up the data structure to operate the device.
- Basic read and set time
Description
- The RP2040 has one, the RP2350 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.