LoRa_APRS_iGate/lib/System/System.h
Peter Buchegger 52d41dd9f6 big changes:
- task manager working now in round robbin and returning after every task to arduino
- adding a system class which is managing all bigger things
2021-03-21 22:29:31 +01:00

29 lines
702 B
C++

#ifndef SYSTEM_H_
#define SYSTEM_H_
#include <memory>
#include "TaskManager.h"
#include <BoardFinder.h>
#include <Display.h>
#include <configuration.h>
class System {
public:
System(std::shared_ptr<BoardConfig> boardConfig, std::shared_ptr<Configuration> userConfig);
~System();
std::shared_ptr<BoardConfig> getBoardConfig() const;
std::shared_ptr<Configuration> getUserConfig() const;
TaskManager & getTaskManager();
Display & getDisplay();
private:
std::shared_ptr<BoardConfig> _boardConfig;
std::shared_ptr<Configuration> _userConfig;
TaskManager _taskManager;
Display _display;
};
#endif