119 uint32_t oldTimeStamp_ms,
120 uint32_t currentTimeStamp_ms,
121 uint32_t timeToPass_ms) {
123 const uint32_t timeDifference_ms = currentTimeStamp_ms - oldTimeStamp_ms;
124 bool timehasPassed =
false;
126 if (timeToPass_ms == 0u) {
127 timehasPassed =
true;
128 }
else if (timeDifference_ms == 0u) {
134 }
else if (timeDifference_ms >= timeToPass_ms) {
135 timehasPassed =
true;
140 return timehasPassed;
176 return selfCheckReturnValue;
180 #ifdef UNITY_UNIT_TEST
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.
OS_TIMER_s * TEST_OS_GetOsTimer()
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.
OS_BOOT_STATE_e
enum of OS boot states
@ OS_INITIALIZE_SCHEDULER
void OS_InitializeScheduler(void)
Initialization function for the scheduler.
uint32_t OS_GetTickCount(void)
Returns OS based system tick value.