Implement LVGL task for POSIX fbdev

This commit is contained in:
Kuba Szczodrzyński 2024-02-09 22:55:11 +01:00
parent 4c20d6a4b9
commit 6bfe89cac0
No known key found for this signature in database
GPG Key ID: 43037AC62A600562
2 changed files with 7 additions and 10 deletions

View File

@ -70,12 +70,13 @@ int32_t TftFbdevDrv::height()
static void* gui_entrypoint(void* arg)
{
#if HASP_USE_LVGL_TASK
#error "fbdev LVGL task is not implemented"
#else
// create a LVGL tick thread
pthread_t thread;
pthread_create(&thread, 0, tick_thread, NULL);
// create an LVGL GUI task thread
pthread_t gui_pthread;
pthread_create(&gui_pthread, 0, (void* (*)(void*))gui_task, NULL);
#endif
// create an LVGL tick thread
pthread_t tick_pthread;
pthread_create(&tick_pthread, 0, tick_thread, NULL);
return 0;
}
@ -181,12 +182,7 @@ void TftFbdevDrv::init(int32_t w, int h)
}
#endif
#if HASP_USE_LVGL_TASK
#error "fbdev LVGL task is not implemented"
#else
// do not use the gui_task(), just init the GUI and return
gui_entrypoint(NULL);
#endif
}
void TftFbdevDrv::show_info()
{

View File

@ -30,6 +30,7 @@ build_flags =
-D HASP_USE_GIFDECODE=0
-D HASP_USE_JPGDECODE=0
-D HASP_USE_MQTT=1
-D HASP_USE_LVGL_TASK=1
-D MQTT_MAX_PACKET_SIZE=2048
-D HASP_ATTRIBUTE_FAST_MEM=
-D IRAM_ATTR= ; No IRAM_ATTR available