MotorControlModuleSDFM_TMS3.../Projects/EFC_Application/Platform/rtos/Mutex.hpp

29 lines
443 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(NULL) { };
};
} /* namespace rtos */
} /* namespace platform */
#endif /* PLATFORM_RTOS_MUTEX_HPP_ */