1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

move user task handling into separate lib

This commit is contained in:
wellenvogel
2021-11-27 15:45:21 +01:00
parent 1e4285fe5d
commit 39bc516def
3 changed files with 109 additions and 30 deletions

14
lib/usercode/GwUserCode.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef _GWUSERCODE_H
#define _GWUSERCODE_H
#include <Arduino.h>
class GwLog;
class GwApi;
class GwUserCode{
GwLog *logger;
GwApi *api;
public:
GwUserCode(GwApi *api);
void startUserTasks(int baseId);
void startAddonTask(String name,TaskFunction_t task, int id);
};
#endif