Added flags clear for thread and new constructor for queue.

This commit is contained in:
dario
2023-11-07 12:40:50 +01:00
parent 0e96b2ec29
commit c609dc81cc
4 changed files with 28 additions and 0 deletions

View File

@@ -41,6 +41,15 @@ namespace sta
return osThreadFlagsWait(flags, osFlagsWaitAny, osWaitForever);
}
uint32_t RtosThread::clear(uint32_t flags)
{
uint32_t setFlags = osThreadFlagsClear(flags);
STA_ASSERT(setFlags != (uint32_t)osError);
return setFlags;
}
uint32_t RtosThread::getFlags()
{
STA_ASSERT(handle_.get() != nullptr);