mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 19:17:34 +00:00
Change class prefix from RTOS to Rtos
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
RTOSMutex::RTOSMutex(osMutexId_t * handle)
|
||||
RtosMutex::RtosMutex(osMutexId_t * handle)
|
||||
: handle_{handle}
|
||||
{}
|
||||
|
||||
void RTOSMutex::acquire()
|
||||
void RtosMutex::acquire()
|
||||
{
|
||||
osMutexAcquire(*handle_, osWaitForever);
|
||||
}
|
||||
|
||||
void RTOSMutex::release()
|
||||
void RtosMutex::release()
|
||||
{
|
||||
osMutexRelease(*handle_);
|
||||
}
|
||||
|
@@ -3,26 +3,26 @@
|
||||
|
||||
namespace sta
|
||||
{
|
||||
RTOSSignal::RTOSSignal(osSemaphoreId_t * semaphore)
|
||||
RtosSignal::RtosSignal(osSemaphoreId_t * semaphore)
|
||||
: semaphore_{semaphore}
|
||||
{}
|
||||
|
||||
void RTOSSignal::notify()
|
||||
void RtosSignal::notify()
|
||||
{
|
||||
osSemaphoreRelease(*semaphore_);
|
||||
}
|
||||
|
||||
bool RTOSSignal::peek()
|
||||
bool RtosSignal::peek()
|
||||
{
|
||||
return (osSemaphoreGetCount(*semaphore_) != 0);
|
||||
}
|
||||
|
||||
bool RTOSSignal::test()
|
||||
bool RtosSignal::test()
|
||||
{
|
||||
return (osSemaphoreAcquire(*semaphore_, 0) == osOK);
|
||||
}
|
||||
|
||||
void RTOSSignal::wait()
|
||||
void RtosSignal::wait()
|
||||
{
|
||||
osSemaphoreAcquire(*semaphore_, osWaitForever);
|
||||
}
|
||||
|
Reference in New Issue
Block a user