1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00
trezor-firmware/core
matejcik 6f53ca0ac6 core: rework wait_layout()
The original wait_layout was unreliable, because there are no guarantees
re order of arrival of the respective events. Still, TT's event handling
is basically deterministic, so as long as the host sent its messages
close enough to each other, the order worked out.

This is no longer the case with the introduction of loop.spawn: TT's
behavior is still deterministic, but now ButtonAck is processed *before*
the corresponding wait_layout, so the waiting side waits forever.

In the new process, the host must first register to receive layout
events, and then receives all of them (so the number of calls to
wait_layout must match the number of layout changes).

DebugLinkWatchLayout message must be version-gated, because of an
unfortunate collection of bugs in previous versions wrt unknown message
handling; and this interests us because upgrade-tests are using
wait_layout feature.
2020-06-04 16:18:46 +02:00
..
assets MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
embed core: disable trezor-crypto BIP32 cache 2020-06-04 16:18:46 +02:00
mocks core: expose storage_is_unlocked() as config.is_unlocked() 2020-06-04 16:18:46 +02:00
prof core/prof: make sure coverage data is generated with absolute paths 2020-01-23 18:43:20 +01:00
site_scons/site_tools/micropython core: remove qstr blacklist 2020-01-07 20:52:43 +01:00
src core: rework wait_layout() 2020-06-04 16:18:46 +02:00
src1 core: add temporary "src1" folder 2020-05-04 16:00:29 +00:00
tests core: move base functions from "homescreen" app to "base" 2020-06-04 16:18:46 +02:00
tools core: remove f-strings from headertool (python 3.5 compatibility) 2020-05-04 11:29:03 +02:00
vendor move vendored submodules to root vendor/ dir 2019-05-13 13:51:53 +02:00
.dockerignore MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
.gitignore core: git ignore coverage outputs 2019-06-26 22:10:05 +02:00
.pylintrc style: improve pylint exclusions 2019-05-07 16:31:04 +02:00
asan_blacklist.txt core: asan config 2019-06-27 19:09:55 +02:00
AUTHORS MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
ChangeLog core, legacy: update Changelogs to reflect the release 2020-06-03 15:35:30 +00:00
COPYING MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
emu.py core: disallow parsing options after command (fixes #951) 2020-04-16 11:24:15 +02:00
emu.sh core: convert emu.sh to a simple dependency-less compat wrapper 2020-01-23 18:43:20 +01:00
Makefile core: Adds T1 core port FW flashing options for for openocd and jlink 2020-05-21 10:05:12 +02:00
README.md docs: move docs to root 2019-12-06 12:24:20 +00:00
SConscript.boardloader core/embed: don't use local copy of inflate 2020-01-18 17:09:52 +01:00
SConscript.bootloader core+legacy: use nanopb generator from pipenv 2020-02-04 17:15:25 +00:00
SConscript.firmware core: disable trezor-crypto BIP32 cache 2020-06-04 16:18:46 +02:00
SConscript.prodtest core/tools: drop tools obsoleted by headertool 2020-01-20 17:32:59 +01:00
SConscript.reflash core/tools: drop tools obsoleted by headertool 2020-01-20 17:32:59 +01:00
SConscript.unix core: disable trezor-crypto BIP32 cache 2020-06-04 16:18:46 +02:00
SConstruct MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00

Trezor Core

Firmware currently running on Model T.

See docs/core for more info.