Initial commit
This commit is contained in:
commit
85ae941c19
10 changed files with 406 additions and 0 deletions
63
include/lv_ctr_disp.h
Normal file
63
include/lv_ctr_disp.h
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
/**
|
||||
* @file lv_ctr_disp.h
|
||||
*
|
||||
*/
|
||||
|
||||
#if 1
|
||||
|
||||
#ifndef LV_CTR_DISP_H
|
||||
#define LV_CTR_DISP_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
|
||||
#include "lvgl.h"
|
||||
#else
|
||||
#include "lvgl/lvgl.h"
|
||||
#endif
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
*********************/
|
||||
|
||||
// TODO: make it configurable for RGB888/RGB565
|
||||
// (currently hardcoded to ARGB888, otherwise I was getting only white screen)
|
||||
#define CTR_LV_COLOR_FORMAT LV_COLOR_FORMAT_ARGB8888
|
||||
#define CTR_TEX_COLOR_FORMAT GPU_RGBA8
|
||||
#define CTR_TR_IN_COLOR_FORMAT GX_TRANSFER_FMT_RGBA8
|
||||
#define CTR_TR_OUT_COLOR_FORMAT GX_TRANSFER_FMT_RGBA8
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
|
||||
/**********************
|
||||
* GLOBAL PROTOTYPES
|
||||
**********************/
|
||||
/* Initialize low level display driver */
|
||||
void lv_ctr_disp_init(void);
|
||||
|
||||
/* Enable updating the screen (the flushing process) when disp_flush() is called by LVGL
|
||||
*/
|
||||
void disp_enable_update(void);
|
||||
|
||||
/* Disable updating the screen (the flushing process) when disp_flush() is called by LVGL
|
||||
*/
|
||||
void disp_disable_update(void);
|
||||
|
||||
/**********************
|
||||
* MACROS
|
||||
**********************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /*extern "C"*/
|
||||
#endif
|
||||
|
||||
#endif /*LV_CTR_DISP_H*/
|
||||
|
||||
#endif /*Disable/Enable content*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue