1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 04:48:12 +00:00
trezor-firmware/core/embed/trezorhal
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
..
board_capabilities.c feat(core/boardloader): add fixed-address boardloader capablities field 2022-06-13 18:18:25 +02:00
board_capabilities.h feat(core/boardloader): add fixed-address boardloader capablities field 2022-06-13 18:18:25 +02:00
button.c feat(core): added button support for Model R 2022-05-10 16:49:23 +02:00
button.h feat(core): added button support for Model R 2022-05-10 16:49:23 +02:00
common.c feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
common.h feat(core/rust): make Rust buildable without Micropython 2022-06-16 13:08:07 +02:00
compiler_traits.h fix(core & legacy): explicit compiler versions 2021-09-27 15:42:29 +02:00
dma.c core: reorganize source code to allow boardloader build 2019-12-15 08:43:00 +00:00
dma.h core/embed: enable DMA for SDIO operations 2019-12-11 15:28:49 +00:00
flash.c feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
flash.h feat(core): implement basic R emulator 2022-05-06 11:44:52 +02:00
image.c feat(core): Return fw_vendor in firmware Features message. 2022-05-03 19:00:04 +02:00
image.h feat(core): Return fw_vendor in firmware Features message. 2022-05-03 19:00:04 +02:00
irq.h core: reorganize source code to allow boardloader build 2019-12-15 08:43:00 +00:00
lowlevel.c fix(core): don't assert reset flags to allow "reboot to bootloader" 2021-03-10 18:31:51 +01:00
lowlevel.h fix(core): don't assert reset flags to allow "reboot to bootloader" 2021-03-10 18:31:51 +01:00
mini_printf.c MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
mini_printf.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
mpu.c core/embed: switch to unprivileged in main.c 2020-01-24 12:29:46 +00:00
mpu.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
random_delays.c style(core): trezorhal/random_delays.c 2021-07-07 14:39:24 +02:00
random_delays.h feat(core): make random delays use chacha_drbg 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 all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sbu.c all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sbu.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
sdcard-set_clr_card_detect.h core: use set_clr_card_detect to disable SD card pull-up resistor 2019-09-25 12:13:53 +02:00
sdcard.c core: check whether USB structures are correct to avoid faults in shutdown 2019-12-18 17:16:36 +01:00
sdcard.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
stm32.c refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00
stm32f4xx_hal_conf.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
supervise.h feat(core): jump back and stay in bootloader for TT via reverse SVC call trampoline 2022-06-01 14:50:59 +02:00
systemview.h feat(core): systemview header 2021-01-26 20:53:38 +01:00
systick.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
systick.h core/embed: enable DMA for SDIO operations 2019-12-11 15:28:49 +00:00
touch.c refactor(core): decouple T1 button handling from touch 2021-09-23 12:30:13 +02:00
touch.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usb_hid-defs.h feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
usb_hid-impl.h core/usb: avoid naks in hid/webusb rx interfaces 2020-01-07 20:52:43 +01:00
usb_vcp-defs.h feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
usb_vcp-impl.h core: Prevent data loss when writing to USB VCP. 2020-02-25 12:08:07 +01:00
usb_webusb-defs.h feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator. 2021-03-09 16:13:21 +01:00
usb_webusb-impl.h core/usb: avoid naks in hid/webusb rx interfaces 2020-01-07 20:52:43 +01:00
usb.c refactor(core): move wait_random and rdi into separate file 2021-05-21 13:42:53 +02:00
usb.h all: rename TREZOR to Trezor where possible 2019-06-17 20:28:29 +02:00
usbd_conf.c docs: fix typos in comments 2021-06-30 15:41:55 +02:00
usbd_conf.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_core.c MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_core.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_ctlreq.c all: remove extraneous whitespace 2019-05-26 22:20:14 +02:00
usbd_ctlreq.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_def.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_ioreq.c MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
usbd_ioreq.h MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
util.s feat(core): jump back and stay in bootloader for TT via reverse SVC call trampoline 2022-06-01 14:50:59 +02:00
vectortable.s refactor(core): rename shutdown to shutdown_privileged 2021-06-23 16:40:45 +02:00