mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-06-10 01:55:59 +00:00
Added RtosEvent peek function
This commit is contained in:
parent
17b5566e2c
commit
e75a859ac9
@ -1,4 +1,6 @@
|
|||||||
#include <sta/rtos/event.hpp>
|
#include <sta/rtos/event.hpp>
|
||||||
|
#include <sta/debug/assert.hpp>
|
||||||
|
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
RtosEvent::RtosEvent() {
|
RtosEvent::RtosEvent() {
|
||||||
@ -26,8 +28,7 @@ namespace sta {
|
|||||||
return osEventFlagsWait(event_id, flags, osFlagsWaitAny, timeout);
|
return osEventFlagsWait(event_id, flags, osFlagsWaitAny, timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t RtosEvent::peek(uint32_t flags, uint32_t timeout /* = osWaitForever */)
|
uint32_t RtosEvent::peek(uint32_t flags, uint32_t timeout /* = osWaitForever */) {
|
||||||
{
|
|
||||||
return osEventFlagsWait(event_id, flags, osFlagsWaitAny | osFlagsNoClear, timeout);
|
return osEventFlagsWait(event_id, flags, osFlagsWaitAny | osFlagsNoClear, timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user