mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/rtos2-utils.git
synced 2025-09-28 21:17:33 +00:00
Added RtosEvent peek function
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include <sta/rtos/event.hpp>
|
||||
#include <sta/debug/assert.hpp>
|
||||
|
||||
|
||||
namespace sta {
|
||||
RtosEvent::RtosEvent() {
|
||||
@@ -26,8 +28,7 @@ namespace sta {
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user