mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
* Remove version from artifact name * Target C++ 20 and higher * Use cpp string * Better crash implementation * String utils in cpp style * Replace parameter methods with start() method * MutexType to Mutex::Type * Kernel c to cpp style * Cleanup event flag * More cpp conversions * Test fixes * Updated ideas docs
28 lines
501 B
C++
28 lines
501 B
C++
#pragma once
|
|
|
|
#include "CoreTypes.h"
|
|
#include "RtosCompatEventGroups.h"
|
|
|
|
namespace tt {
|
|
|
|
/**
|
|
* Wrapper for FreeRTOS xEventGroup.
|
|
*/
|
|
class EventFlag {
|
|
private:
|
|
EventGroupHandle_t handle;
|
|
public:
|
|
EventFlag();
|
|
~EventFlag();
|
|
uint32_t set(uint32_t flags) const;
|
|
uint32_t clear(uint32_t flags) const;
|
|
uint32_t get() const;
|
|
uint32_t wait(
|
|
uint32_t flags,
|
|
uint32_t options = TtFlagWaitAny,
|
|
uint32_t timeout = TtWaitForever
|
|
) const;
|
|
};
|
|
|
|
} // namespace
|