48 if (*value >= comparator) {
67 const uint8_t lastSecondInAMinute = 59;
80 const uint8_t lastMinuteInAnHour = 59;
91 const uint8_t lastHourInADay = 23;
100 static uint16_t ticksToNewSecond = 0;
102 if (++ticksToNewSecond < ticksInOneSecond) {
106 ticksToNewSecond = 0;
150 if (
NULL == userClock24) {
24-Hour clock user interface.
void Lz_Clock24_Get(Clock24 *const userClock24)
Get the time on a 24-Hour clock.
Represents the type used to hold the time.
Include appropriate config file.
static bool IncrementMinutes(void)
Increment the minutes of the system 24-Hour clock.
const unsigned int LZ_CONFIG_SYSTEM_CLOCK_RESOLUTION_FREQUENCY
The operating system clock resolution frequency, in Hertz.
static volatile Clock24 clock24
The system Clock24.
unsigned int uint16_t
Represents a unsigned integer type with width of exactly 16 bits.
static bool IncrementSeconds(void)
Increment the seconds of the system 24-Hour clock.
24-Hour clock kernel interface.
unsigned char uint8_t
Represents a unsigned integer type with width of exactly 8 bits.
static void IncrementHours(void)
Increment the hours of the system 24-Hour clock.
#define NULL
NULL pointer.
Basic type definitions and useful macros.
void Clock24_Increment(void)
Increment the 24-Hour clock, taking into the account the resolution of the system clock...
static bool IncrementUntil(volatile uint8_t *const value, const uint8_t comparator)
Increment an uint8_t value, and reset it if it reaches the value in comparator.
uint8_t u_read_write_atomic_t
Represents an unsigned integer that can be read and written atomically.
static volatile u_read_write_atomic_t clockVersion
The clock version value.