675 Commits

Author SHA1 Message Date
Amir Gonnen
10ed6da4b2 Update LVGL 2021-07-20 00:05:39 +03:00
Amir Gonnen
818b4bac8e .github/workflows/ports_esp32.yml added back
Updated lv_bindings with espidf.h bugfix

Disabled ESP32-S2 because it is currently not supported by espidh.h
and by native modules that rely on espidf.h such as modrtch.c
2021-07-17 02:40:55 +03:00
Amir Gonnen
c4bf00a79c Update lv_bindings 2021-07-16 01:07:58 +03:00
Amir Gonnen
8bdce98391 Update lv_bindings 2021-07-16 00:13:43 +03:00
Amir Gonnen
863bd00e85 Update LVGL 2021-07-13 22:48:04 +03:00
Damien George
e3291e1801 lib,shared: Update README's based on contents of these dirs.
Signed-off-by: Damien George <damien@micropython.org>
2021-07-13 00:17:02 +10:00
Damien George
4d546713ec shared: Introduce new top-level dir and move 1st party lib code there.
This commit moves all first-party code developed for this project from lib/
to shared/, so that lib/ now only contains third-party code.

The following directories are moved as-is from lib to shared:

    lib/libc            -> shared/libc
    lib/memzip          -> shared/memzip
    lib/netutils        -> shared/netutils
    lib/timeutils       -> shared/timeutils
    lib/upytesthelper   -> shared/upytesthelper

All files in lib/embed/ have been moved to shared/libc/.

lib/mp-readline has been moved to shared/readline.

lib/utils has been moved to shared/runtime, with the exception of
lib/utils/printf.c which has been moved to shared/libc/printf.c.

Signed-off-by: Damien George <damien@micropython.org>
2021-07-12 17:07:36 +10:00
Damien George
6dd92d7742 lib/crypto-algorithms: Move crypto-algorithms code from extmod to lib.
It's third-party code, and not necessarily tied to extmod.

Signed-off-by: Damien George <damien@micropython.org>
2021-07-12 16:36:37 +10:00
Damien George
d1bfb271d7 lib/uzlib: Move uzlib code from extmod to lib.
It's third-party code, and not necessarily tied to extmod.

Signed-off-by: Damien George <damien@micropython.org>
2021-07-12 16:36:34 +10:00
Damien George
d1d172f536 lib/re1.5: Move re1.5 code from extmod to lib.
It's third-party code, and not necessarily tied to extmod.

Signed-off-by: Damien George <damien@micropython.org>
2021-07-12 16:36:26 +10:00
Amir Gonnen
2276d8611a Update lv_bindings 2021-07-09 15:15:25 +03:00
Amir Gonnen
03d7f3628a Update lv_bindings 2021-07-09 15:04:04 +03:00
Amir Gonnen
57df8b6ecf Update lv_bindings 2021-07-09 14:41:59 +03:00
Amir Gonnen
368d601ece Update lv_bindings 2021-07-09 12:49:55 +03:00
Damien George
75c1609c3a lib/axtls: Update to latest axtls 2.1.5 wih additional commits.
Changes are:
- update axTLS from 2.1.3 to 2.1.5
- os_port.h is now provided by the user of the library
- PLATFORM_RNG_U8 can be defined for get_random
- fix -fsanitize=undefined diagnostics

Signed-off-by: Damien George <damien@micropython.org>
2021-07-08 23:51:39 +10:00
Damien George
20a6044952 lib/utils/stdout_helpers: Make mp_hal_stdout_tx_strn_cooked efficient.
To reduce the number of calls to mp_hal_stdout_tx_strn and improve the
overall throughput of printing data.  This implementation is taken from
ports/stm32/mphalport.c.

Signed-off-by: Damien George <damien@micropython.org>
2021-07-08 12:59:31 +10:00
Amir Gonnen
a9beae9fae Update bindings and workflow
Moved from dev-8.0 to master branch
2021-07-08 00:43:36 +03:00
Amir Gonnen
0eb1503e77 Update LVGL and bindings
Specifically fixes from https://github.com/lvgl/lvgl/pull/2354
and tree_walk in CI tests https://github.com/lvgl/lv_binding_micropython/pull/162
2021-07-07 22:20:16 +03:00
Amir Gonnen
0a3ffeef19 lv_bindings: Merge branch 'master' into dev-8.0 2021-07-07 00:36:25 +03:00
Amir Gonnen
5a5f2f0bd9 Update lv_bindings
Integrated auto-cast feature https://github.com/lvgl/lv_binding_micropython/issues/135
2021-07-06 22:58:10 +03:00
Damien George
d67bd494b5 lib/pico-sdk: Update to version 1.2.0.
Signed-off-by: Damien George <damien@micropython.org>
2021-07-05 16:18:28 +10:00
Damien George
c8e9e04541 lib/tinyusb: Update to version 0.10.1.
Signed-off-by: Damien George <damien@micropython.org>
2021-07-05 16:18:28 +10:00
Amir Gonnen
36bc134f24
Merge pull request #30 from lvgl/upstream/sync-1.16
Merge MicroPython master
2021-07-05 09:10:16 +03:00
Themba Dube
957276d87a Re-align mbedtls submodule with upstream 2021-07-02 18:53:14 -04:00
Amir Gonnen
6b5a7c98b8 Update test
unix_port.yml: call lib/lv_bindings/tests/run.sh

Update LVGL and bindings

Related: https://github.com/lvgl/lv_binding_micropython/issues/151
2021-07-03 00:18:09 +03:00
Amir Gonnen
013a01ad08 lv_bindings: update tests 2021-06-30 22:20:27 +03:00
Amir Gonnen
57bc3765f9 lib/lv_bindings: Rename built-in properties
See: https://github.com/lvgl/lv_binding_micropython/issues/157
2021-06-29 21:45:43 +03:00
Themba Dube
6d7ec6e424 Merge remote-tracking branch 'upstream/master' into dev-8.0 2021-06-27 13:10:26 -04:00
Krzysztof Adamski
6409bbcb72 mimxrt: Move calc_weekday helper function to timeutils.
This function may be useful for other ports as well so lets move it to
timeutils so it can be reused.

Signed-off-by: Krzysztof Adamski <k@japko.eu>
2021-06-25 10:28:32 +10:00
Amir Gonnen
389e952490 lv_bindings: update lv_timer.py, lv_utils.py 2021-06-21 23:10:13 +03:00
Amir Gonnen
c6db8b7fb3 Remove lvstm32.py
Replaced by lv_utils event_loop
2021-06-19 23:03:59 +03:00
Amir Gonnen
8f23080ecc Update LVGL 2021-06-19 01:41:00 +03:00
Amir Gonnen
6e727202d7 Update lv_bindings
Remove lvesp32 module and async_utils.py. They are replaced by lv_utils.py event_loop
2021-06-19 01:28:18 +03:00
Amir Gonnen
79d92fd20d Add lv_utils and lv_timer
update lv_bindings with lvesp32 removed

Related: https://github.com/lvgl/lv_binding_micropython/issues/154
2021-06-17 01:28:25 +03:00
Amir Gonnen
377068c5f2 Update Micropython 2021-06-15 01:07:36 +03:00
Amir Gonnen
61f18ad65a Updates and bugfixes related to event loop
See https://github.com/lvgl/lv_binding_micropython/issues/154

Bugfix: Disable MICROPY_PY_SYS_SETTRACE, see https://github.com/micropython/micropython/issues/7372

Bugfix: Increase VM_MAX_STATE_ON_STACK size, see https://github.com/micropython/micropython/issues/7373
2021-06-09 01:05:39 +03:00
Amir Gonnen
d7f2aabfe7 Merge master into dev-8.0
Zephyr might be incomplete, since it's not ready yet for v8.
See https://github.com/lvgl/lv_binding_micropython/pull/132 and
https://github.com/lvgl/lv_micropython/pull/25
2021-06-03 00:52:42 +03:00
Amir Gonnen
5abd3978b7 Update LVGL to v8 release 2021-06-01 22:25:25 +03:00
Rop Gonggrijp
a96964dd7e
ports/esp32/boards/M5CORE2: add support for M5Stack Core2 (#28)
* Fast-forward lv_bindings because M5CORE2 board files depend on added drivers

* ports/esp32/boards/M5CORE2: add support for M5Stack Core2
2021-06-01 00:51:51 +03:00
Amir Gonnen
dde2a4c3c1 Update LVGL 2021-05-31 09:03:11 +03:00
Damien George
0aa01b0205 lib/mbedtls: Switch to currently latest commit of LTS branch v2.16.
Signed-off-by: Damien George <damien@micropython.org>
2021-05-25 00:04:01 +10:00
Amir Gonnen
8863dd0066 Update LVGL
ports/windows/mpconfigport.h: Bugfix: correct path to lv_gc.h on Windows port
2021-05-22 23:11:24 +03:00
Amir Gonnen
9cacbeaf5b Update lv_conf.h 2021-05-20 23:56:47 +03:00
Amir Gonnen
6730d0a618 Update LVGL to release/v7
LVGL 'master' branch now points to v8
2021-05-20 23:51:54 +03:00
Amir Gonnen
77de50db72 Update LVGL and lv_conf.h 2021-05-20 22:35:20 +03:00
Amir Gonnen
6260113335 Update LVGL and bindings
Add lvgl/examples dir as source to build examples if needed. The linker will throw them if the bindings don't include them, which is the default case.
2021-05-13 00:40:32 +03:00
Ayke van Laethem
70f50c46cc lib/utils: Add ARM semihosting utility functions.
This can be a replacement for a UART in custom ports.
2021-05-11 23:33:12 +10:00
Damien George
b6b39bff47 py/gc: Make gc_lock_depth have a count per thread.
This commit makes gc_lock_depth have one counter per thread, instead of one
global counter.  This makes threads properly independent with respect to
the GC, in particular threads can now independently lock the GC for
themselves without locking it for other threads.  It also means a given
thread can run a hard IRQ without temporarily locking the GC for all other
threads and potentially making them have MemoryError exceptions at random
locations (this really only occurs on MCUs with multiple cores and no GIL,
eg on the rp2 port).

The commit also removes protection of the GC lock/unlock functions, which
is no longer needed when the counter is per thread (and this also fixes the
cas where a hard IRQ calling gc_lock() may stall waiting for the mutex).

It also puts the check for `gc_lock_depth > 0` outside the GC mutex in
gc_alloc, gc_realloc and gc_free, to potentially prevent a hard IRQ from
waiting on a mutex if it does attempt to allocate heap memory (and putting
the check outside the GC mutex is now safe now that there is a
gc_lock_depth per thread).

Signed-off-by: Damien George <damien@micropython.org>
2021-05-10 13:07:16 +10:00
Amir Gonnen
c4721ff394 Update LVGL and bindings 2021-04-24 23:20:47 +03:00
Damien George
530c76f6ca lib/utils: Remove unused PYEXEC_SWITCH_MODE from pyexec.h.
It was made obsolete by commit c98c128fe885e539ecd73843756340f8950115c8.

Signed-off-by: Damien George <damien@micropython.org>
2021-04-24 00:10:59 +10:00