90 lines
1.3 KiB
C
90 lines
1.3 KiB
C
|
/**
|
||
|
* @file lv_extra.c
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
/*********************
|
||
|
* INCLUDES
|
||
|
*********************/
|
||
|
#include "../lvgl.h"
|
||
|
|
||
|
/*********************
|
||
|
* DEFINES
|
||
|
*********************/
|
||
|
|
||
|
/**********************
|
||
|
* TYPEDEFS
|
||
|
**********************/
|
||
|
|
||
|
/**********************
|
||
|
* STATIC PROTOTYPES
|
||
|
**********************/
|
||
|
|
||
|
/**********************
|
||
|
* STATIC VARIABLES
|
||
|
**********************/
|
||
|
|
||
|
/**********************
|
||
|
* MACROS
|
||
|
**********************/
|
||
|
|
||
|
/**********************
|
||
|
* GLOBAL FUNCTIONS
|
||
|
**********************/
|
||
|
|
||
|
void lv_extra_init(void)
|
||
|
{
|
||
|
#if LV_USE_FLEX
|
||
|
lv_flex_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_GRID
|
||
|
lv_grid_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_FS_FATFS != '\0'
|
||
|
lv_fs_fatfs_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_FS_STDIO != '\0'
|
||
|
lv_fs_stdio_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_FS_POSIX != '\0'
|
||
|
lv_fs_posix_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_FS_WIN32 != '\0'
|
||
|
lv_fs_win32_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_FFMPEG
|
||
|
lv_ffmpeg_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_PNG
|
||
|
lv_png_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_SJPG
|
||
|
lv_split_jpeg_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_BMP
|
||
|
lv_bmp_init();
|
||
|
#endif
|
||
|
|
||
|
#if LV_USE_FREETYPE
|
||
|
/*Init freetype library*/
|
||
|
# if LV_FREETYPE_CACHE_SIZE >= 0
|
||
|
lv_freetype_init(LV_FREETYPE_CACHE_FT_FACES, LV_FREETYPE_CACHE_FT_SIZES, LV_FREETYPE_CACHE_SIZE);
|
||
|
# else
|
||
|
lv_freetype_init(0, 0, 0);
|
||
|
# endif
|
||
|
#endif
|
||
|
}
|
||
|
|
||
|
/**********************
|
||
|
* STATIC FUNCTIONS
|
||
|
**********************/
|