|
RTOS Wrapper
API 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 |
|
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.