1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00
trezor-firmware/legacy
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
..
bootloader Merge pull request #847 from trezor/prusnak/bootloader-restart 2020-02-19 18:20:49 +01:00
demo legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
emulator all: shut down emulator on error_shutdown 2020-02-12 13:31:31 +01:00
firmware core: rework wait_layout() 2020-06-04 16:18:46 +02:00
gen legacy/bootloader: don't include FONT_FIXED 2019-11-09 19:13:55 +00:00
gitian MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
script legacy: improve script/setup 2020-02-18 13:39:24 +00:00
vendor move vendored submodules to root vendor/ dir 2019-05-13 13:51:53 +02:00
.dockerignore MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
.gitignore toplevel: reorganize .gitignore files 2019-04-17 00:05:24 +02:00
buttons.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
buttons.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
common.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
common.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
COPYING MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
flash.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
flash.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
layout.c legacy: fix wrong logic in layoutButtonNo 2020-02-04 16:37:20 +00:00
layout.h legacy/layout: use bmp_btn_confirm, bmp_btn_cancel 2019-11-09 19:02:51 +00:00
Makefile MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
Makefile.include all: let's use -Wno-missing-braces because clang does not respect 2019-10-11 09:59:32 +02:00
memory_app_0.0.0.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory_app_1.0.0.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory_app_1.8.0.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory_app_fastflash.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
memory.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
memory.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
memory.ld MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
norcow_config.h legacy: Implement ChangeWipeCode message for Trezor One. 2019-11-25 12:32:20 +01:00
oled.c legacy/oled: remove non-ASCII symbols from font definitions 2019-11-09 19:02:48 +00:00
oled.h legacy/oled: remove non-ASCII symbols from font definitions 2019-11-09 19:02:48 +00:00
README.md docs: update legacy build instructions (fixes #658) 2019-12-11 14:21:07 +01:00
rng.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
rng.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
secbool.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
setup.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
setup.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
startup.S legacy: add comment to startup.S 2020-02-19 14:51:29 +00:00
supervise.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
supervise.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
timer.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
timer.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usb21_standard.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
usb21_standard.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
usb_private.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
usb_standard.c legacy: explicitly initialize variables 2019-10-09 17:05:33 +02:00
util.c legacy: refactor readprotobufint() 2019-10-09 15:48:52 +00:00
util.h legacy: refactor readprotobufint() 2019-10-09 15:48:52 +00:00
webusb_defs.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
webusb.c legacy: show webusb popup only in bootloader and only if firmware is not installed 2020-02-12 21:01:06 +00:00
webusb.h legacy: show webusb popup only in bootloader and only if firmware is not installed 2020-02-12 21:01:06 +00:00
winusb_defs.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00
winusb.c legacy: Move wait_random() to common.c and use HMAC DRBG to generate delays. 2019-06-11 11:41:40 +02:00
winusb.h MONOREPO MERGE trezor-mcu 2019-04-15 19:14:58 +02:00

Trezor Legacy

Firmware currently running on Model One. If you are working on a new feature, you probably want to contribute this to Core.

See docs/legacy for more info.