b6c27b64d4
- Remove `Libraries/Str` - Replaced usage of `TactilityC` FreeRtos features with `TactilityFreeRtos` library - Update `tactility.py` - Removed redundant code from `TactilityCpp`
21 lines
308 B
C++
21 lines
308 B
C++
#pragma once
|
|
|
|
#include <Tactility/Lock.h>
|
|
#include <tt_lvgl.h>
|
|
|
|
class LvglLock final : public tt::Lock {
|
|
|
|
public:
|
|
|
|
bool lock(TickType_t timeout = tt::kernel::MAX_TICKS) const override {
|
|
return tt_lvgl_lock(timeout);
|
|
}
|
|
|
|
|
|
void unlock() const override {
|
|
tt_lvgl_unlock();
|
|
}
|
|
};
|
|
|
|
|