1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/lvgl: split task handler thread start from init

This commit is contained in:
Alexandre Abadie 2020-06-21 18:15:28 +02:00
parent 1dceba9f81
commit 40b5359096
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 9 additions and 0 deletions

View File

@ -155,6 +155,10 @@ void lvgl_init(screen_dev_t *screen_dev)
#endif
lv_task_handler();
}
void lvgl_start(void)
{
_task_thread_pid = thread_create(_task_thread_stack, sizeof(_task_thread_stack),
LVGL_TASK_THREAD_PRIO, THREAD_CREATE_STACKTEST,
_task_thread, NULL, "_task_thread");

View File

@ -32,6 +32,11 @@ extern "C" {
*/
void lvgl_init(screen_dev_t *screen_dev);
/**
* Start the lvgl task handler background thread
*/
void lvgl_start(void);
/**
* @brief Wakeup lvgl when inactive
*