mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
* Boot splash and more - Added developer sdkconfig - Refactored the way FreeRTOS includes are included - Improved Gui/Loader logic - Implemented boot app with splash screen * Updated naming for Gui and Loader services * Renamed Screenshot service methods * Renames * Service renames
30 lines
538 B
C++
30 lines
538 B
C++
#pragma once
|
|
|
|
#include "CoreTypes.h"
|
|
#include "RtosCompatEventGroups.h"
|
|
|
|
namespace tt {
|
|
|
|
#define TT_API_LOCK_EVENT (1U << 0)
|
|
|
|
/**
|
|
* 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
|