1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00
trezor-firmware/emulator
Jochen Hoenicke c09590b54d Cleaner flash handling using FLASH_PTR
Use `FLASH_PTR` macro to convert a flash address to a const pointer.
For real hardware it is just a cast, for emulator we subtract the
`FLASH_ORIGIN` and use it as index into the memory mapped flash file.

Make write access to flash with volatile pointers

Also use FLASH_PTR in DebugMemory* for now.  This allows for reading and
writing the flash in the emulator or just crash it by reading outside
the flash...
2018-03-29 01:16:46 +02:00
..
buttons.c emulator: Initial commit 2017-12-18 20:09:59 +01:00
emulator.h Cleaner flash handling using FLASH_PTR 2018-03-29 01:16:46 +02:00
flash.c Cleaner flash handling using FLASH_PTR 2018-03-29 01:16:46 +02:00
Makefile emulator: Add EMULATOR=1 to emulator/Makefile 2017-12-18 20:09:59 +01:00
oled.c emulator: Add TREZOR_OLED_SCALE variable 2018-02-19 00:17:03 +01:00
rng.c emulator: Initial commit 2017-12-18 20:09:59 +01:00
setup.c Cleaner flash handling using FLASH_PTR 2018-03-29 01:16:46 +02:00
strl.c emulator: Refactor strlcpy 2018-02-14 13:00:47 +01:00
strl.h emulator: Initial commit 2017-12-18 20:09:59 +01:00
timer.c emulator: Initial commit 2017-12-18 20:09:59 +01:00
udp.c emulator: Initial commit 2017-12-18 20:09:59 +01:00