migrate fully to freeRTOS
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
#define WATCHDOG_H
|
||||
|
||||
#include "_SPITMACROS.h"
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
#include <thread>
|
||||
#include "Mutex.hpp"
|
||||
#include "Semaphore.hpp"
|
||||
#include "Task.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -37,15 +37,15 @@ public:
|
||||
virtual ~Watchdog();
|
||||
|
||||
private:
|
||||
Listener* m_Listener;
|
||||
Listener* m_Listener;
|
||||
|
||||
mutex m_MutexLock;
|
||||
condition_variable m_ConditionVariable;
|
||||
thread* m_WatchdogThread;
|
||||
fos::Mutex m_MutexLock;
|
||||
fos::Semaphore m_ConditionVariable;
|
||||
fos::TaskT<Watchdog&>* m_WatchdogThread;
|
||||
|
||||
bool m_Answered;
|
||||
|
||||
void runWatchdog();
|
||||
static void runWatchdog(Watchdog& wd);
|
||||
public:
|
||||
void startWatchdog();
|
||||
void answerWatchdog();
|
||||
|
||||
Reference in New Issue
Block a user