1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

655 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
2ffa8165c1 fix warning 2021-03-11 12:31:14 +01:00
Gabor Kiss-Vamosi
48cd3809f6 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-03-11 12:21:10 +01:00
Gabor Kiss-Vamosi
751f1aa829 minor fixes 2021-03-11 12:21:03 +01:00
Xiang Xiao
7bf547a928
feat(mem): switch the default allocator to tlsf (#2129)
* feat(mem): add initial version of tlsf

from  : https://github.com/mattconte/tlsf
commit: deff9ab509341f264addbd3c8ada533678591905

* feat(mem): switch the default allocator to tlsf

* fix(mem): remove the preserved small buffer

since the builtin allocator(tlsf) is fast enough now

* fix(mem): change LV_MEM_ADD_JUNK to 0

to speed up the normal operation
2021-03-10 15:13:35 +01:00
Gabor Kiss-Vamosi
e65e80c1f8 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-03-08 20:13:26 +01:00
Gabor Kiss-Vamosi
00860900b2 merge master 2021-03-08 14:46:55 +01:00
Xiang Xiao
7aab2b669c
fix(timer): change 'Task' to 'Timer' (#2125) 2021-03-05 14:02:19 -05:00
Xiang Xiao
8e55d42290
fix(style): remove allocated field from lv_style_t (#2121)
to simplify the code logic and extend prop_cnt to 256
2021-03-03 13:32:22 +01:00
Xiang Xiao
ffd9c47d3d
fix: remove the tail space after cast expression (#2122)
ensure the style consistency through the code base
2021-03-03 12:02:58 +01:00
Xiang Xiao
58413adbd3
Merge pull request #2117 from xiaoxiang781216/anim
fix(task): change all task related term to timer
2021-03-03 01:00:03 -08:00
Xiang Xiao
1a5606e0f4 fix(style): align the enum entry in lv_style_prop_t 2021-03-03 15:54:57 +08:00
Xiang Xiao
33b5ee3ad2 fix(task): change all task related term to timer
follow up the task module change
2021-03-03 14:32:25 +08:00
Xiang Xiao
978e8915da
fix(style): handle the out of memory gracefully in lv_style_[set|remove]_prop (#2101)
* fix(style): remove the wrong first break statement from lv_style_prop_get_default

and correct the comment and style

* fix(style): handle the out of memory gracefully in lv_style_[set|remove]_prop
2021-03-01 20:18:22 +01:00
Gabor Kiss-Vamosi
47b8893f99 fix(mem) fix traeting data as lvgl alloacted even if LV_MEM_CUSTOM 1 2021-03-01 19:31:09 +01:00
Gabor Kiss-Vamosi
2618326f24 fix(txt): fix global buffer overflow in lv_txt_utf8_get_byte_id
fixes #2089
2021-03-01 16:07:59 +01:00
Xiang Xiao
772e403eb0
fix(lv_*.mk): add the miss source code (#2106)
and reorder the entry to help finding the mismatch
2021-03-01 16:00:35 +01:00
Xiang Xiao
3bf5079427
fix(aysnc): don't set the timer's user data again (#2097)
* fix(async): replace all task with timer

* fix(aysnc): don't set the timer's user data again

since lv_timer_create alreqdy do the same thing
2021-03-01 15:59:51 +01:00
Xiang Xiao
4118b1e52a
fs: avoid the unnecessary memory allocation (#2098)
* fix(fs): don't allocate lv_fs_file_t in lv_fs_open

avoid the unnecessary allocation

* fix(fs): apply the similar file open/close change to dir open/close

avoid the unnecessary allocation
2021-03-01 15:59:14 +01:00
Xiang Xiao
2aacbd5ddd
fix(misc): correct the comment and coding style (#2096)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-03-01 15:55:46 +01:00
Gabor Kiss-Vamosi
367e3a31df fix(mem): with LV_MEM_CUSTOM don't try to realloc &zero_mem, use malloc instead 2021-03-01 15:44:27 +01:00
Gabor Kiss-Vamosi
23a8c0b68a remove accent colors becasue they were inconsistent 2021-03-01 15:15:35 +01:00
Gabor Kiss-Vamosi
90d0eec5ae feat(anim): add lv_anim_set_get_value_cb 2021-03-01 13:52:57 +01:00
Xiang Xiao
b35c67c8b6
Various fix for gc module (#2102)
* fix(gc): remove the unused variables from gc

* fix(gc): correct typo(from _lv_img_defoder_ll to _lv_img_decoder_ll)

* fix(gc): change _lv_drv_ll to _lv_fsdrv_ll

since only instances fo lv_fs_drv_t can be added to this list

* fix(gc): Iterate the root variables only when they are really used

to save the memory space

* fix(image cache): move cache_temp to gc.h

and rename it to _lv_img_cache_single
2021-03-01 13:18:57 +01:00
Gabor Kiss-Vamosi
27025ee6f9 fix(mem): assume &zero_mem has 0 size 2021-03-01 12:02:18 +01:00
Gabor Kiss-Vamosi
bcafd8a0b0 add some more logs 2021-03-01 11:57:49 +01:00
Gabor Kiss-Vamosi
8bc6931f7f add many LV_LOG_TRACE-s 2021-02-28 20:42:48 +01:00
Gabor Kiss-Vamosi
df5a47871d add some logs 2021-02-28 15:02:00 +01:00
Gabor Kiss-Vamosi
3eab2e2dc7 feat(log): add timestamp to log mesages 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
bdef86faf2 feat(style): add lv_style_get_prop_inlined and use it in the core main object style getter 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
347680a3c0 feat(dropdown): lv_dropdown_set/get_selected_highlight + minor fixes 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
c9abb38e67 feat(color): add lv_color_get_palette_... functions and update the default theme accordingly 2021-02-26 13:02:06 +01:00
Gabor Kiss-Vamosi
17a619bd95 Merge branch 'dev' of https://github.com/littlevgl/lvgl into dev 2021-02-26 09:51:50 +01:00
Gabor Kiss-Vamosi
0ab6433c66 assign theme to the display + minor fixes 2021-02-26 09:51:30 +01:00
Xiang Xiao
8c34c1533e
Fix memory module issue (#2095)
* fix(mem): reutrn NULL in lv_mem_buf_get if allocation fail

* fix(mem): refine the loop in alloc_core to simplify the logic

* fix(mem): remove the lv_mem_buf declaration from lv_mem.h

since it already declared in gc.h
2021-02-25 14:59:50 +01:00
Xiang Xiao
9a2008bfb9
Fix minor issues found in timer module (#2094)
* fix(timer): remove LV_GC_INCLUDE inclusion since it doesn't need anymore

please see commit d6ca15a74923f2e86ce1e4ee6ee83bb2bbc887b8 for more info

* fix(timer): implement lv_timer_create directly

and call it in lv_timer_create_basic

* fix(timer): exclude the return value computing from the idle time

and change handler_start and time_till_next to local variables

* fix(timer): restart the timer process loop correctly

* fix(timer): skip the count pause timer into next timeout

it's wrong to check repeat_count since the timer is always
removed from the list once the repeat_count change to zero

* fix(timer): remove zero task_deleted and task_created in lv_task_exec

since the loop in lv_task_handler already do the same thing
2021-02-25 14:58:07 +01:00
Gabor Kiss-Vamosi
8a7f9cb131 fix(style): use struct as color filter instead of pure callback for Micropython compatibility 2021-02-24 15:12:36 +01:00
Gabor Kiss-Vamosi
8004058463 minor fixes 2021-02-24 10:07:54 +01:00
Xiang Xiao
7f6a2eccea
fix(style): make the code generated by style_api_gen.py confirm the coding style (#2093) 2021-02-23 16:01:46 +01:00
Gabor Kiss-Vamosi
cbfbcb47f9 feat(color): use colors from material design
Use function instead of color macros
2021-02-23 15:03:06 +01:00
Gabor Kiss-Vamosi
757c18e430 refactor(anim) replace lv_anim_value_t with int32_t
see #2086
2021-02-22 19:01:40 +01:00
Gabor Kiss-Vamosi
f2437f83d2 fix incorrect function name 2021-02-22 11:20:37 +01:00
Gabor Kiss-Vamosi
b6bbadd006 merge master 2021-02-22 11:16:27 +01:00
Gabor Kiss-Vamosi
3ddf26923f fix warning 2021-02-22 09:54:38 +01:00
Gabor Kiss-Vamosi
b252998b62 fix(anim) handle edge cases in lv_anim_path_bounce 2021-02-22 09:48:23 +01:00
embeddedt
e467686002
fix(v8) handle most compiler warnings (#2086) 2021-02-20 07:51:03 +01:00
Gabor Kiss-Vamosi
9484f1b224 fix warnings 2021-02-19 18:19:47 +01:00
Gabor Kiss-Vamosi
fe20d47b6e fix warnings 2021-02-19 16:16:11 +01:00
embeddedt
406da6856c
Various v8 compilation fixes (#2078)
* fix(style) improve script and fix C/C++ compilation

* fix(api_map) add NO_TASK_READY
2021-02-19 15:58:58 +01:00
Gabor Kiss-Vamosi
5c75c7cc12 fix issues on merging to dev 2021-02-19 15:52:04 +01:00
Gabor Kiss-Vamosi
776165977a merge to dev and slove conflitc 2021-02-19 15:27:44 +01:00