115 uint32_t oldTimeStamp_ms,
116 uint32_t currentTimeStamp_ms,
117 uint32_t timeToPass_ms) {
119 const uint32_t timeDifference_ms = currentTimeStamp_ms - oldTimeStamp_ms;
120 bool timehasPassed =
false;
122 if (timeToPass_ms == 0u) {
123 timehasPassed =
true;
124 }
else if (timeDifference_ms == 0u) {
130 }
else if (timeDifference_ms >= timeToPass_ms) {
131 timehasPassed =
true;
136 return timehasPassed;
172 return selfCheckReturnValue;
176 #ifdef UNITY_UNIT_TEST
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
Header of task driver implementation.
void FTSK_CreateTasks(void)
Creates all tasks of the group.
void FTSK_CreateQueues(void)
Creates all queues.
uint32_t os_schedulerStartTime
Scheduler "zero" time for task phase control.
bool OS_CheckTimeHasPassed(uint32_t oldTimeStamp_ms, uint32_t timeToPass_ms)
This function checks if timeToPass has passed since the last timestamp to now.
STD_RETURN_TYPE_e OS_CheckTimeHasPassedSelfTest(void)
Does a self check if the OS_CheckTimeHasPassedWithTimestamp works as expected.
bool OS_CheckTimeHasPassedWithTimestamp(uint32_t oldTimeStamp_ms, uint32_t currentTimeStamp_ms, uint32_t timeToPass_ms)
This function checks if timeToPass has passed since the last timestamp to now.
void OS_InitializeOperatingSystem(void)
Initialization the RTOS interface.
void OS_IncrementTimer(void)
Increments the system timer os_timer.
static OS_TIMER_s os_timer
volatile OS_BOOT_STATE_e os_boot
Declaration of the OS wrapper interface.
enum OS_BOOT_STATE OS_BOOT_STATE_e
enum of OS boot states
uint32_t OS_GetTickCount(void)
Returns OS based system tick value.