29 lines
446 B
C++
29 lines
446 B
C++
/*
|
|
* Mutex.hpp
|
|
*
|
|
* Created on: 2 Nov 2023
|
|
* Author: mikhail
|
|
*/
|
|
|
|
#ifndef PLATFORM_RTOS_MUTEX_HPP_
|
|
#define PLATFORM_RTOS_MUTEX_HPP_
|
|
|
|
#include <FreeRTOS.h>
|
|
#include <semphr.h>
|
|
|
|
namespace platform {
|
|
namespace rtos {
|
|
|
|
struct Mutex {
|
|
/** Дескриптор */
|
|
SemaphoreHandle_t handle;
|
|
|
|
Mutex()
|
|
: handle(nullptr) { };
|
|
};
|
|
|
|
} /* namespace rtos */
|
|
} /* namespace platform */
|
|
|
|
#endif /* PLATFORM_RTOS_MUTEX_HPP_ */
|