mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
Change class prefix from RTOS to Rtos
This commit is contained in:
@@ -17,13 +17,13 @@ namespace sta
|
||||
*
|
||||
* @ingroup STA_RTOS_API
|
||||
*/
|
||||
class RTOSMutex : public Mutex
|
||||
class RtosMutex : public Mutex
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @param handle CMSIS RTOS2 mutex
|
||||
*/
|
||||
RTOSMutex(osMutexId_t * handle);
|
||||
RtosMutex(osMutexId_t * handle);
|
||||
|
||||
void acquire() override;
|
||||
void release() override;
|
||||
|
@@ -20,7 +20,7 @@ namespace sta
|
||||
* @ingroup STA_RTOS_API
|
||||
*/
|
||||
template <typename T>
|
||||
class RTOSQueue
|
||||
class RtosQueue
|
||||
{
|
||||
public:
|
||||
using Message = T; /**< Queue message type */
|
||||
@@ -29,7 +29,7 @@ namespace sta
|
||||
/**
|
||||
* @param handle CMSIS RTOS2 queue handle
|
||||
*/
|
||||
RTOSQueue(osMessageQueueId_t * handle);
|
||||
RtosQueue(osMessageQueueId_t * handle);
|
||||
|
||||
/**
|
||||
* @brief Place message in queue.
|
||||
|
@@ -11,27 +11,27 @@
|
||||
namespace sta
|
||||
{
|
||||
template <typename T>
|
||||
RTOSQueue<T>::RTOSQueue(osMessageQueueId_t * handle)
|
||||
RtosQueue<T>::RtosQueue(osMessageQueueId_t * handle)
|
||||
: handle_{handle}
|
||||
{
|
||||
STA_ASSERT(handle != nullptr);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool RTOSQueue<T>::put(const Message & msg, uint32_t timeout /* = osWaitForever */)
|
||||
bool RtosQueue<T>::put(const Message & msg, uint32_t timeout /* = osWaitForever */)
|
||||
{
|
||||
return (osOK == osMessageQueuePut(*handle_, &msg, 0, timeout));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
bool RTOSQueue<T>::get(Message * outMsg, uint32_t timeout /* = osWaitForever */)
|
||||
bool RtosQueue<T>::get(Message * outMsg, uint32_t timeout /* = osWaitForever */)
|
||||
{
|
||||
uint8_t prio;
|
||||
return (osOK == osMessageQueueGet(*handle_, outMsg, &prio, timeout));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
uint32 RTOSQueue<T>::available() const
|
||||
uint32 RtosQueue<T>::available() const
|
||||
{
|
||||
return osMessageQueueGetCount(*handle_);
|
||||
}
|
||||
|
@@ -17,13 +17,13 @@ namespace sta
|
||||
*
|
||||
* @ingroup STA_RTOS_API
|
||||
*/
|
||||
class RTOSSignal : public Signal
|
||||
class RtosSignal : public Signal
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* @param semaphore CMSIS RTOS2 semaphore
|
||||
*/
|
||||
RTOSSignal(osSemaphoreId_t * semaphore);
|
||||
RtosSignal(osSemaphoreId_t * semaphore);
|
||||
|
||||
void notify() override;
|
||||
bool peek() override;
|
||||
|
Reference in New Issue
Block a user