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:
parent
1dceba9f81
commit
40b5359096
@ -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");
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user