Moved things to a FreeRTOS task so that we can garunte that we are meeting timings
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "../services/service_manager.h"
|
||||
|
||||
|
||||
class SystemTask
|
||||
{
|
||||
public:
|
||||
|
||||
SystemTask(ServiceManager& manager);
|
||||
|
||||
void start();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
static void taskEntry(void* parameter);
|
||||
|
||||
void run();
|
||||
|
||||
|
||||
ServiceManager& serviceManager;
|
||||
|
||||
TaskHandle_t taskHandle;
|
||||
};
|
||||
Reference in New Issue
Block a user