diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-06-01 15:41:47 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-06-01 15:41:47 +1000 |
| commit | dd27c3530432ea0b09f01e604bf577f31d8ef841 (patch) | |
| tree | bbf86cf81a78f0ff0b07f31f1c390db473f26fd3 /lib/lvgl/env_support/rt-thread/squareline | |
| parent | 6fd588e970470b15936187980829916d0dbe77bb (diff) | |
| download | tangara-fw-dd27c3530432ea0b09f01e604bf577f31d8ef841.tar.gz | |
convert lvgl from submodule to a plain old directory
Diffstat (limited to 'lib/lvgl/env_support/rt-thread/squareline')
| m--------- | lib/lvgl | 0 | ||||
| -rw-r--r-- | lib/lvgl/env_support/rt-thread/squareline/README.md | 4 | ||||
| -rw-r--r-- | lib/lvgl/env_support/rt-thread/squareline/SConscript | 13 | ||||
| -rw-r--r-- | lib/lvgl/env_support/rt-thread/squareline/ui/lv_ui_entry.c | 19 |
4 files changed, 36 insertions, 0 deletions
diff --git a/lib/lvgl b/lib/lvgl deleted file mode 160000 -Subproject 0732400e7b564dd0e7dc4a924619d8e19c5b23a diff --git a/lib/lvgl/env_support/rt-thread/squareline/README.md b/lib/lvgl/env_support/rt-thread/squareline/README.md new file mode 100644 index 00000000..e55796b6 --- /dev/null +++ b/lib/lvgl/env_support/rt-thread/squareline/README.md @@ -0,0 +1,4 @@ +This folder is for LVGL SquareLine Studio + +SquareLine Studio can automatically put the generated C files into `ui` folder, so that rt-thread will automatically detect them; or, as a user, you can move the generated C files into `ui` folder manually. + diff --git a/lib/lvgl/env_support/rt-thread/squareline/SConscript b/lib/lvgl/env_support/rt-thread/squareline/SConscript new file mode 100644 index 00000000..89a50997 --- /dev/null +++ b/lib/lvgl/env_support/rt-thread/squareline/SConscript @@ -0,0 +1,13 @@ +from building import * + +cwd = GetCurrentDir() +group = [] +src = [] +CPPPATH =[] + +src += Glob(cwd + '/ui/*.c') +CPPPATH += [cwd+'/ui'] + +group = group + DefineGroup('LVGL-SquareLine', src, depend = ['PKG_USING_LVGL_SQUARELINE'], CPPPATH = CPPPATH) + +Return('group') diff --git a/lib/lvgl/env_support/rt-thread/squareline/ui/lv_ui_entry.c b/lib/lvgl/env_support/rt-thread/squareline/ui/lv_ui_entry.c new file mode 100644 index 00000000..838b53c9 --- /dev/null +++ b/lib/lvgl/env_support/rt-thread/squareline/ui/lv_ui_entry.c @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2006-2022, RT-Thread Development Team + * + * SPDX-License-Identifier: Apache-2.0 + * + * Change Logs: + * Date Author Notes + * 2022-05-13 Meco Man First version + */ + +#ifdef __RTTHREAD__ + +void lv_user_gui_init(void) +{ + extern void ui_init(void); + ui_init(); +} + +#endif /* __RTTHREAD__ */ |
