1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 21:08:07 +00:00
trezor-firmware/core/embed/unix
matejcik 2aa427a6e3 feat(core/rust): make Rust buildable without Micropython
Features `micropython` and `protobuf` are defined. Protobuf implies micropython
because our protobuf impl is pretty much _for_ micropython.

The respective subdirs are included only if the matching feature is defined.

util.rs is moved to micropython because it mostly concerns micropython interop

ResultExt, useful only for ui_debug, is moved to ui::util.

A new module `trezorhal::time` is provided. It mirrors functionality of
`micropython::time` via stmlib functions.  The intended use is to always use
functions from `trezorhal::time`. The right micropython variants are used when
micropython is available, otherwise the pure stmlib versions are called.

ui::*::layout is conditional for micropython feature, because it only concerns
micropython layouts. If we want to reuse layouts defined there, we will need to
export them to not depend on Objs and Qstrs etc.
2022-06-16 13:08:07 +02:00
..
background_1.h core: embed background images into the emulator binary 2019-05-04 22:33:48 +02:00
background_1.jpg MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
background_R.h feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
background_R.jpg feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
background_raspi.h core: embed background images into the emulator binary 2019-05-04 22:33:48 +02:00
background_raspi.jpg MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
background_T.h core: embed background images into the emulator binary 2019-05-04 22:33:48 +02:00
background_T.jpg MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
button.h refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
common.c feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
common.h fix(core/emulator): make sure SDL keyboard and quit events are always processed 2022-05-16 10:59:48 +02:00
flash.c feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
flash.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
jpg_to_h.py feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
main_main.c refactor(crypto,core): make zkp_context_init() return status 2021-11-18 19:05:40 +01:00
main.c refactor: Move flash_init to emulator main. 2022-05-03 19:00:04 +02:00
mpconfigport.h fix(core): fix emulator build on Apple Silicon 2021-11-08 11:00:04 +01:00
profile.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
profile.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
random_delays.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
random_delays.h refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
rng.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
rng.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
sbu.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sbu.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
sdcard.c docs: fix typos in comments 2021-06-30 15:41:55 +02:00
sdcard.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
secbool.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
touch.c fix(core/emulator): make sure SDL keyboard and quit events are always processed 2022-05-16 10:59:48 +02:00
touch.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb_hid-defs.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb_vcp-defs.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb_webusb-defs.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usb.c doc(core): update comments around UDP emulator 2021-03-09 16:19:03 +01:00
usb.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
version.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00