Various services improved (#110)

This commit is contained in:
Ken Van Hoeylandt
2024-12-06 23:16:29 +01:00
committed by GitHub
parent 36bb25deba
commit d52fe52d96
32 changed files with 771 additions and 636 deletions
+4 -2
View File
@@ -1,4 +1,6 @@
#include "Timer.h"
#include <utility>
#include "Check.h"
#include "Kernel.h"
#include "RtosCompat.h"
@@ -13,11 +15,11 @@ static void timer_callback(TimerHandle_t hTimer) {
}
}
Timer::Timer(Type type, Callback callback, void* callbackContext) {
Timer::Timer(Type type, Callback callback, std::shared_ptr<void> callbackContext) {
tt_assert((kernel_is_irq() == 0U) && (callback != nullptr));
this->callback = callback;
this->callbackContext = callbackContext;
this->callbackContext = std::move(callbackContext);
UBaseType_t reload;
if (type == TypeOnce) {