Updates for removal of deprecated HAL (#37)
Update all apps to replace deprecated LVGL code and to use the new kernel APIs.
This commit is contained in:
committed by
GitHub
parent
25b966a340
commit
4f635d38e3
@@ -1,19 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <Tactility/Lock.h>
|
||||
#include <tt_lvgl.h>
|
||||
#include <lvgl/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);
|
||||
using tt::Lock::lock;
|
||||
|
||||
bool lock(TickType_t timeout) const override {
|
||||
return lvgl_try_lock(timeout);
|
||||
}
|
||||
|
||||
|
||||
void unlock() const override {
|
||||
tt_lvgl_unlock();
|
||||
lvgl_unlock();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user