mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-08-06 11:07:34 +00:00
Added timeout to event wait
This commit is contained in:
@@ -22,8 +22,13 @@ namespace sta {
|
||||
return osEventFlagsGet(event_id);
|
||||
}
|
||||
|
||||
uint32_t RtosEvent::wait(uint32_t flags, uint32_t timeout) {
|
||||
uint32_t RtosEvent::wait(uint32_t flags, uint32_t timeout /* = osWaitForever */) {
|
||||
return osEventFlagsWait(event_id, flags, osFlagsWaitAny, timeout);
|
||||
}
|
||||
|
||||
} // namespace sta
|
||||
uint32_t RtosEvent::waitAll(uint32_t flags, uint32_t timeout /* = osWaitForever */)
|
||||
{
|
||||
return osEventFlagsWait(event_id, flags, osFlagsWaitAll, timeout);
|
||||
}
|
||||
|
||||
} // namespace sta
|
||||
|
Reference in New Issue
Block a user