2023-05-18 23:32:04 +03:00

36 lines
578 B
C++

/*
* Master.h
*
* Created on: 4 Apr 2023
* Author: tylen
*/
#ifndef THREADS_MASTER_MASTER_H_
#define THREADS_MASTER_MASTER_H_
#include "chip.h"
#include "board.h"
#include "FreeRTOS.h"
#include "task.h"
#include "ThreadCommon.h"
#include "Event.h"
#include "task.h"
#include <string>
class Master {
public:
Master(ThreadCommon::QueueManager* qm);
virtual ~Master();
void taskFunction();
private:
Event* message;
ThreadCommon::QueueManager* _qm;
void HandleEventType(Event* e);
};
void thread_master(void* pvParams);
#endif /* THREADS_MASTER_MASTER_H_ */