30 lines
507 B
C++
30 lines
507 B
C++
/*
|
|
* StaticMutex.hpp
|
|
*
|
|
* Created on: 2 Nov 2023
|
|
* Author: malyarenko
|
|
*/
|
|
|
|
#ifndef PLATFORM_RTOS_MUTEXSTATIC_HPP_
|
|
#define PLATFORM_RTOS_MUTEXSTATIC_HPP_
|
|
|
|
#include <FreeRTOS.h>
|
|
#include <semphr.h>
|
|
|
|
#include "Mutex.hpp"
|
|
|
|
namespace platform {
|
|
namespace rtos {
|
|
|
|
struct MutexStatic : public Mutex {
|
|
/** Буфер дескриптора */
|
|
StaticSemaphore_t desc;
|
|
|
|
MutexStatic() { };
|
|
};
|
|
|
|
} /* namespace rtos */
|
|
} /* namespace platform */
|
|
|
|
#endif /* PLATFORM_RTOS_MUTEXSTATIC_HPP_ */
|