mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
timer type as boolean
This commit is contained in:
@@ -30,11 +30,9 @@ namespace sta
|
||||
*
|
||||
* @param callback The callback function to call upon timer timeout.
|
||||
* @param arg The argument to pass to the callback function.
|
||||
* @param type The type of timer to create. The Options are:
|
||||
* - osTimerOnce: One-shot timer.
|
||||
* - osTimerPeriodic: Repeating timer.
|
||||
* @param repeating True if the timer should repeat. False if it should only run once.
|
||||
*/
|
||||
RtosTimer(std::function<void(void*)>, void *arg, osTimerType_t type = osTimerOnce);
|
||||
RtosTimer(std::function<void(void*)>, void *arg, bool repeating = false);
|
||||
|
||||
/**
|
||||
* @brief Initializes the timer with a callback that has no effect.
|
||||
|
Reference in New Issue
Block a user