2020-01-02 16:07:12 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Inria
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup pkg_lvgl
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Definition for the LittlevGL engine initialization
|
|
|
|
*
|
|
|
|
* @author Alexandre Abadie <alexandre.abadie@inria.fr>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LVGL_RIOT_H
|
|
|
|
#define LVGL_RIOT_H
|
|
|
|
|
2020-05-31 17:59:17 +02:00
|
|
|
#include "screen_dev.h"
|
2020-01-02 16:07:12 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Initialize the lvgl display engine
|
|
|
|
*
|
2020-05-31 17:59:17 +02:00
|
|
|
* @param[in] screen_dev Pointer to the generic screen device
|
2020-01-02 16:07:12 +01:00
|
|
|
*/
|
2020-05-31 17:59:17 +02:00
|
|
|
void lvgl_init(screen_dev_t *screen_dev);
|
2020-01-02 16:07:12 +01:00
|
|
|
|
2020-06-21 18:15:28 +02:00
|
|
|
/**
|
|
|
|
* Start the lvgl task handler background thread
|
|
|
|
*/
|
|
|
|
void lvgl_start(void);
|
|
|
|
|
2020-01-02 16:07:12 +01:00
|
|
|
/**
|
|
|
|
* @brief Wakeup lvgl when inactive
|
|
|
|
*
|
|
|
|
* This function unblocks the lvgl task handler thread and will indirectly
|
|
|
|
* trigger an activity. After calling this function, lvgl remains awake during
|
|
|
|
* the next LVGL_INACTIVITY_PERIOD_MS ms.
|
|
|
|
*/
|
|
|
|
void lvgl_wakeup(void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* LVGL_RIOT_H */
|