17#define RTC_CLOCK_FREQ 32768
20#define MAX_RTC_COUNTER_VAL 0x00FFFFFF
56 static uint32_t
difference(uint32_t ticksTo, uint32_t ticksFrom);
60 static uint32_t
differenceMs(uint32_t ticksTo, uint32_t ticksFrom);
70 inline static uint32_t
now();
76 static void offsetMs(
int ms);
Wrapper class for RTC functions.
Definition: cs_RTC.h:30
static uint32_t ticksToMs(uint32_t ticks)
Return time in ms, given time in ticks.
void operator=(RTC const &)=delete
static uint32_t difference(uint32_t ticksTo, uint32_t ticksFrom)
return difference between two tick counter values
static uint32_t differenceMs(uint32_t ticksTo, uint32_t ticksFrom)
return difference between two tick counter values in ms.
static uint32_t now()
return current clock in ms
static uint32_t msPassedSince(uint32_t ticksFrom)
Returns the number of milliseconds passed since the given tick counter value.
static uint32_t msToTicks(uint32_t ms)
Return time in ticks, given time in ms Make sure time in ms is not too large! (limit is 512,...
static uint32_t getCount()
return number of ticks