1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

cmsis pack monthy update for June (#3413)

* fix(benchmark): remove duplicated output in report log

* doc(benchmark): update the method for performance analysis

* feat(cmsis-pack): v1.0.5-alpha1

* fix(template): use consistent resolution information

* Update LVGL.lvgl.1.0.5-alpha1.pack
This commit is contained in:
Gabriel Wang 2022-06-14 12:03:50 +01:00 committed by GitHub
parent 22627c47ce
commit ca9aff6119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 20 deletions

View File

@ -40,21 +40,25 @@ If you are doing performance analysis for 2D image processing optimization, LCD
1. Use a flag to control the LCD flushing inside `disp_flush()`. For example:
```c
static volatile bool is_flush_enabled = true;
volatile bool disp_flush_enabled = true;
void disp_enable(void)
/* Enable updating the screen (the flushing process) when disp_flush() is called by LVGL
*/
void disp_enable_update(void)
{
is_flush_enabled = true;
disp_flush_enabled = true;
}
void disp_disable(void)
/* Disable updating the screen (the flushing process) when disp_flush() is called by LVGL
*/
void disp_disable_update(void)
{
is_flush_enabled = false;
disp_flush_enabled = false;
}
static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
{
if(is_flush_enabled) {
if(disp_flush_enabled) {
GLCD_DrawBitmap(area->x1, //!< x
area->y1, //!< y
area->x2 - area->x1 + 1, //!< width
@ -71,12 +75,12 @@ static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_colo
2. Disable flushing before calling `lv_demo_benchmark()` or `lv_demo_benchmark_run_scene()`, for example:
```c
extern void disp_enable(void);
extern void disp_disable(void);
extern void disp_enable_update(void);
extern void disp_disable_update(void);
static void on_benchmark_finished(void)
{
disp_enable();
disp_enable_update();
}
int main(void)
@ -89,14 +93,18 @@ int main(void)
LV_LOG("Please stand by...");
LV_LOG("NOTE: You will NOT see anything until the end.");
disp_disable();
disp_disable_update();
lv_demo_benchmark_set_finished_cb(&on_benchmark_finished);
lv_demo_benchmark_set_max_speed(true);
lv_demo_benchmark();
//lv_demo_benchmark_run_scene(43); // run scene no 31
...
while(1){
lv_timer_handler(); //! run lv task at the max speed
}
}
```

View File

@ -834,7 +834,7 @@ static void generate_report(void)
// lv_table_set_cell_type(table, row, 0, 2);
// lv_table_set_cell_type(table, row, 1, 2);
LV_LOG("%s,%s\r\n", scenes[i].name, buf);
//LV_LOG("%s,%s\r\n", scenes[i].name, buf);
row++;
}
@ -843,14 +843,14 @@ static void generate_report(void)
lv_snprintf(buf, sizeof(buf), "%s + opa", scenes[i].name);
lv_table_set_cell_value(table, row, 0, buf);
LV_LOG("%s,", buf);
//LV_LOG("%s,", buf);
lv_snprintf(buf, sizeof(buf), "%"LV_PRIu32, scenes[i].fps_opa);
lv_table_set_cell_value(table, row, 1, buf);
// lv_table_set_cell_type(table, row, 0, 2);
// lv_table_set_cell_type(table, row, 1, 2);
LV_LOG("%s\r\n", buf);
//LV_LOG("%s\r\n", buf);
row++;
}

View File

@ -36,7 +36,11 @@
<repository type="git">https://github.com/lvgl/lvgl.git</repository>
<releases>
<release date="2022-05-31" version="1.0.4" url="https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/LVGL.lvgl.1.0.4.pack">
<release date="2022-06-13" version="1.0.5-alpha1" url="https://github.com/lvgl/lvgl/raw/ce0605182c31e43abc8137ba21f237ec442735bc/env_support/cmsis-pack/LVGL.lvgl.1.0.5-alpha1.pack">
- LVGL 8.3.0-dev
- Monthly update for June
</release>
<release date="2022-05-31" version="1.0.4" url="https://github.com/lvgl/lvgl/raw/ce0605182c31e43abc8137ba21f237ec442735bc/env_support/cmsis-pack/LVGL.lvgl.1.0.4.pack">
- LVGL 8.3.0-dev
- Monthly update for May
- Update drawing service
@ -331,8 +335,8 @@
<component Cgroup="lvgl" Csub="Porting" condition="LVGL-Essential">
<description>Porting Templates</description>
<files>
<file category="header" name="examples/porting/lv_port_disp_template.h" attr="config" version="1.0.0" />
<file category="sourceC" name="examples/porting/lv_port_disp_template.c" attr="config" version="1.0.0" />
<file category="header" name="examples/porting/lv_port_disp_template.h" attr="config" version="1.0.1" />
<file category="sourceC" name="examples/porting/lv_port_disp_template.c" attr="config" version="1.0.1" />
<file category="header" name="examples/porting/lv_port_indev_template.h" attr="config" version="1.0.0" />
<file category="sourceC" name="examples/porting/lv_port_indev_template.c" attr="config" version="1.0.0" />

View File

@ -2,8 +2,8 @@
<index schemaVersion="1.0.0" xs:noNamespaceSchemaLocation="PackIndex.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<vendor>LVGL</vendor>
<url>https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/</url>
<timestamp>2022-05-31T00:21:23</timestamp>
<timestamp>2022-06-13T00:17:59</timestamp>
<pindex>
<pdsc url="https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/" vendor="LVGL" name="lvgl" version="1.0.4"/>
<pdsc url="https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/" vendor="LVGL" name="lvgl" version="1.0.5-alpha1"/>
</pindex>
</index>

View File

@ -111,8 +111,8 @@ void lv_port_disp_init(void)
/*Set up the functions to access to your display*/
/*Set the resolution of the display*/
disp_drv.hor_res = 480;
disp_drv.ver_res = 320;
disp_drv.hor_res = MY_DISP_HOR_RES;
disp_drv.ver_res = MY_DISP_VER_RES;
/*Used to copy the buffer's content to the display*/
disp_drv.flush_cb = disp_flush;