Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ThirdParty,Examples): Add missing dependencies to LVGL makefiles #754

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Examples/MAX32672/Flash/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include "uart.h"
#include "led.h"
#include "pb.h"
#include "trimsir_regs.h"

/***** Definitions *****/
#define TEST_ADDRESS (MXC_FLASH_MEM_BASE + MXC_FLASH_MEM_SIZE) - (1 * MXC_FLASH_PAGE_SIZE)
Expand Down Expand Up @@ -263,6 +264,14 @@ int main(void)
*/
MXC_ICC_Disable();

/*
Disable Flash ECC. Because this example uses 32-bit flash writes,
ECC must be disabled.Only 128-bit writes are supported when ECC
is enabled.
*/
MXC_TRIMSIR->bb_sir2 &= ~MXC_F_TRIMSIR_BB_SIR2_FL0ECCEN;
MXC_TRIMSIR->bb_sir2 &= ~MXC_F_TRIMSIR_BB_SIR2_FL1ECCEN;

uint32_t magic = 0;
MXC_FLC_Read(TEST_ADDRESS, &magic, 4);

Expand Down
120 changes: 120 additions & 0 deletions Libraries/LVGL/lvgl/src/extra/lv_extra.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,123 @@ CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/lv_extra.c
CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono/lv_theme_mono.c
CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default/lv_theme_default.c
CSRCS += $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic/lv_theme_basic.c

DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/animimg
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/colorwheel
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/calendar
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/menu
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/msgbox
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/span
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinbox
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/win
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/led
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/keyboard
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinner
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/meter
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/imgbtn
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/chart
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/list
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tabview
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tileview
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/gif
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/bmp
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/sjpg
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/ffmpeg
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/rlottie
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/png
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/freetype
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/qrcode
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/fsdrv
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/flex
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/grid
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/imgfont
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/snapshot
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/gridnav
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/monkey
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/fragment
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/msg
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/ime
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic

VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/animimg
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/colorwheel
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/calendar
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/menu
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/msgbox
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/span
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinbox
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/win
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/led
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/keyboard
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinner
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/meter
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/imgbtn
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/chart
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/list
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tabview
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tileview
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/gif
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/bmp
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/sjpg
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/ffmpeg
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/rlottie
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/png
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/freetype
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/qrcode
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/fsdrv
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/flex
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/grid
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/imgfont
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/snapshot
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/gridnav
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/monkey
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/fragment
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/msg
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/ime
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default
VPATH += :$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic

CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/animimg"
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/colorwheel
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/calendar
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/menu
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/msgbox
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/span
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinbox
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/win
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/led
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/keyboard
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/spinner
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/meter
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/imgbtn
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/chart
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/list
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tabview
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/widgets/tileview
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/gif
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/bmp
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/sjpg
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/ffmpeg
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/rlottie
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/png
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/freetype
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/qrcode
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/libs/fsdrv
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/flex
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/layouts/grid
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/imgfont
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/snapshot
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/gridnav
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/monkey
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/fragment
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/msg
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/others/ime
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/mono
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/default
CFLAGS += "-I$(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/themes/basic