25template <
typename Func,
typename T>
26static inline bool TestLogicWithTimeout(Func func, T expected, uint32_t timeoutMsec, uint32_t checkIntervalMs)
30 if (func() == expected) {
C-facing helper functions for delays, cycle counters, and creation of RTOS handles (queues,...
uint32_t os_get_elapsed_time_msec()
Retrieves the elapsed time in milliseconds.
Definition OsUtility.cpp:65
void os_delay_msec(uint16_t msec)
Delays execution for the specified number of milliseconds.
Definition OsUtility.cpp:28
static bool TestLogicWithTimeout(Func func, T expected, uint32_t timeoutMsec, uint32_t checkIntervalMs)
Helper to repeatedly check a condition until timeout.
Definition Utility.h:26