Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxCrazy1101 committed Mar 31, 2023
1 parent abf0789 commit 5863799
Show file tree
Hide file tree
Showing 929 changed files with 337,304 additions and 61 deletions.
21 changes: 12 additions & 9 deletions .eide/eide.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
".eide/deps",
"Hardware",
"FreeRTOS",
"App"
"App",
"3rd_party/lvgl"
],
"virtualFolder": {
"name": "<virtual_root>",
"files": [],
"folders": [
{
"name": "3rd_party",
"files": [],
"folders": []
},
{
"name": "CMSIS",
"files": [
Expand Down Expand Up @@ -201,7 +197,9 @@
"FreeRTOS/portable/MemMang/heap_5.c",
"FreeRTOS/portable/MemMang/heap_3.c",
"FreeRTOS/portable/MemMang/heap_2.c",
"FreeRTOS/portable/MemMang/heap_1.c"
"FreeRTOS/portable/MemMang/heap_1.c",
"3rd_party/lvgl/examples",
"3rd_party/lvgl/demos"
],
"toolchain": "AC6",
"compileConfig": {
Expand Down Expand Up @@ -318,15 +316,20 @@
"Firmware/CMSIS/DSP/PrivateInclude",
"FreeRTOS/include",
"FreeRTOS/portable/GCC/ARM_CM4F",
"App/Include"
"App/Include",
"3rd_party/lvgl/demos",
"3rd_party/lvgl/examples",
"3rd_party/lvgl/app",
"3rd_party/lvgl/app/guider_fonts"
],
"libList": [],
"sourceDirList": [],
"defineList": [
"USE_STDPERIPH_DRIVER",
"GD32F470",
"ARM_MATH_LOOPUNROLL",
"ARM_MATH_CM4"
"ARM_MATH_CM4",
"LV_LVGL_H_INCLUDE_SIMPLE"
]
}
}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/obj
/out
/cmake-build-debug-armgcc
/3rd_party

# eide template
*.ept
Expand Down
18 changes: 18 additions & 0 deletions 3rd_party/lvgl/app/events_init.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright 2023 NXP
* SPDX-License-Identifier: MIT
* The auto-generated can only be used on NXP devices
*/

#include "events_init.h"
#include <stdio.h>
#include "lvgl.h"

void events_init(lv_ui *ui)
{
}

void video_play(lv_ui *ui)
{

}
22 changes: 22 additions & 0 deletions 3rd_party/lvgl/app/events_init.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright 2023 NXP
* SPDX-License-Identifier: MIT
* The auto-generated can only be used on NXP devices
*/


#ifndef EVENTS_INIT_H_
#define EVENTS_INIT_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "gui_guider.h"

void events_init(lv_ui *ui);
void video_play(lv_ui *ui);

#ifdef __cplusplus
}
#endif
#endif /* EVENT_CB_H_ */
16 changes: 16 additions & 0 deletions 3rd_party/lvgl/app/generated.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# images
include $(PRJ_DIR)/generated/images/images.mk

# GUI Guider fonts
include $(PRJ_DIR)/generated/guider_fonts/guider_fonts.mk

# GUI Guider customer fonts
include $(PRJ_DIR)/generated/guider_customer_fonts/guider_customer_fonts.mk


GEN_CSRCS += $(notdir $(wildcard $(PRJ_DIR)/generated/*.c))

DEPPATH += --dep-path $(PRJ_DIR)/generated
VPATH += :$(PRJ_DIR)/generated

CFLAGS += "-I$(PRJ_DIR)/generated"
20 changes: 20 additions & 0 deletions 3rd_party/lvgl/app/gui_guider.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2023 NXP
* SPDX-License-Identifier: MIT
* The auto-generated can only be used on NXP devices
*/

#include "lvgl.h"
#include <stdio.h>
#include "gui_guider.h"


void init_scr_del_flag(lv_ui *ui){
ui->screen_del = true;
}

void setup_ui(lv_ui *ui){
init_scr_del_flag(ui);
setup_scr_screen(ui);
lv_scr_load(ui->screen);
}
38 changes: 38 additions & 0 deletions 3rd_party/lvgl/app/gui_guider.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright 2023 NXP
* SPDX-License-Identifier: MIT
* The auto-generated can only be used on NXP devices
*/

#ifndef GUI_GUIDER_H
#define GUI_GUIDER_H
#ifdef __cplusplus
extern "C" {
#endif

#include "lvgl.h"
#include "guider_fonts.h"

typedef struct
{
lv_obj_t *screen;
bool screen_del;
lv_obj_t *screen_main_text;
lv_obj_t *screen_battery_bar;
lv_obj_t *screen_spangroup_1;
lv_obj_t *screen_label_2;
lv_obj_t *screen_label_3;
lv_obj_t *screen_battery_text;
lv_obj_t *screen_vref;
lv_obj_t *screen_temperature;
}lv_ui;

void init_scr_del_flag(lv_ui *ui);
void setup_ui(lv_ui *ui);
extern lv_ui guider_ui;
void setup_scr_screen(lv_ui *ui);

#ifdef __cplusplus
}
#endif
#endif
Loading

0 comments on commit 5863799

Please sign in to comment.