- unPhone improvements related to power and boot (add boot count logging) - Cleanup of Mutex acquire/release - Removed `tt_assert()` in favour of `assert()` - Fix sim build (likely failed due to migration of GitHub Actions to Ubuntu 24.04)
15 lines
337 B
C++
15 lines
337 B
C++
#include "lvgl/LvglDisplay.h"
|
|
#include "Check.h"
|
|
|
|
namespace tt::lvgl {
|
|
|
|
hal::Display* getDisplay() {
|
|
auto* lvgl_display = lv_display_get_default();
|
|
assert(lvgl_display != nullptr);
|
|
auto* hal_display = (tt::hal::Display*)lv_display_get_user_data(lvgl_display);
|
|
assert(hal_display != nullptr);
|
|
return hal_display;
|
|
}
|
|
|
|
}
|