RTOS Wrapper
API reference
Loading...
Searching...
No Matches
Functions
anonymous_namespace{OsUtility.cpp} Namespace Reference

Functions

template<typename Callback >
OS_Uint CreateTimer (OS_Timer &timer, char *name, Callback callback, uint32_t id, uint32_t initialTicks, uint32_t rescheduleTicks, OS_Uint autoActivate) noexcept
 

Function Documentation

◆ CreateTimer()

template<typename Callback >
OS_Uint anonymous_namespace{OsUtility.cpp}::CreateTimer ( OS_Timer &  timer,
char *  name,
Callback  callback,
uint32_t  id,
uint32_t  initialTicks,
uint32_t  rescheduleTicks,
OS_Uint  autoActivate 
)
noexcept

The backends take a void (*)(OS_Ulong) callback, which is the same type as void (*)(uint32_t) on the 32-bit targets. Where it is not (a 64-bit host build of a kernel backend) creating a timer fails rather than calling the callback through the wrong type.