1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-14 11:59:11 +00:00
Commit Graph

201 Commits

Author SHA1 Message Date
Pavol Rusnak
3a467e756c
embed/trezorhal: move lowlevel.{c,h} from boardloader to trezorhal 2019-02-19 18:30:45 +01:00
Pavol Rusnak
b24c062a3d
firmware: bundle latest bootloader, replace it when needed 2019-02-19 13:21:34 +01:00
Pavol Rusnak
6233cc0720
firmware: fix last commit - lock randomness block after set 2019-02-18 17:43:01 +01:00
Pavol Rusnak
ee3e313230
firmware: use OTP block 3 for storing randomness 2019-02-18 17:28:40 +01:00
andrew
8b78e6710a
common.c: Add error_shutdown().
Upon fatal error display 'Contact TREZOR support'.
2019-02-15 12:41:43 +01:00
Pavol Rusnak
8832c6e63b
embed/trezorhal: rename flash functions
flash_erase_sector -> flash_erase
flash_lock -> flash_lock_write
flash_unlock -> flash_unlock_write
2019-02-15 12:39:18 +01:00
Pavol Rusnak
b754ee8cf6
embed/trezorhal: collect HW entropy before MPU kicks in 2019-02-15 12:39:18 +01:00
Pavol Rusnak
c0317e1aff
embed/trezorhal: add more checks to flash write functions 2019-02-15 12:39:18 +01:00
andrew
1c0946f562
Fix typo in include. 2019-02-15 12:39:16 +01:00
andrew
5f94b6a6d2
Add CPUID, flash size and unique device ID as salt to storage_init(). 2019-02-15 12:39:15 +01:00
Pavol Rusnak
4dc8110b31
embed/trezorhal: add touch_sensitivity function 2019-02-12 14:40:38 +01:00
Pavol Rusnak
1f61f82f63
embed: include files from vendor/micropython/ports/stm32 explicitly 2019-01-24 21:25:20 +01:00
matejcik
c3112fd83d embed/trezorhal: only poll CTPM when touch is detected
Because CTPM dislikes being polled when no touches are seen, keeps
resetting, and maybe freezes once in a while. This is very likely a fix
for #334.

Before, we would simply read the touch registers on every loop. Now we
first check whether the interrupt line is down, which indicates that the
CTPM has data to tell us.

Tracking the `touching` flag is necessary, as sometimes we don't poll
frequently enough to catch the TOUCH_END event before interrupt line
goes up again.
The `last_packet` handling miiight not be necessary - AFAICT, the CTPM
has some sort of buffer and always returns TOUCH_START at first and
TOUCH_END at last. Still, better safe than sorry.
2018-11-26 14:47:06 +01:00
Pavol Rusnak
b3e668db8b
embed/extmod/modtrezorconfig: small refactor to storage 2018-11-14 16:25:36 +01:00
Pavol Rusnak
113a557f17
embed/trezorhal+unix: small refactor to flash.c 2018-11-14 15:12:19 +01:00
Milan Rossa
32fe5d20af
unix: emulator debug build options 2018-10-11 16:33:45 +02:00
Pavol Rusnak
9beb6146e4
trezorhal: minor cleanup in touch for T1 2018-10-02 19:03:06 +02:00
Pavol Rusnak
ddbcd7400f
firmware: enable touch for T1 2018-10-02 18:08:44 +02:00
Pavol Rusnak
0ab0f9e418
unix: refactor T1 touch events to behave similarly to T2 touch events 2018-10-02 17:24:47 +02:00
Pavol Rusnak
411c2a2b2a
trezorhal: enable USB on T1 2018-10-02 16:29:34 +02:00
Pavol Rusnak
45e10a2e79
embed: refactor cpu flags in sconscript files 2018-09-30 16:39:40 +02:00
Pavol Rusnak
2a06ff4986
embed/firmware: add T1 display support, apply T1 fixes 2018-09-30 16:12:04 +02:00
Pavol Rusnak
f23f751ab0
extmod/modtrezorui: prepare display UI for model change 2018-09-11 16:01:06 +02:00
Pavol Rusnak
01a876f486
embed: add confirm/cancel actions to touch events 2018-08-31 16:55:01 +02:00
mcudev
1695533c8a touch: follow ft6236 power on sequence closer 2018-08-21 17:25:18 +02:00
Pavol Rusnak
9d4e38bd4c
embed: wait 100ms after turning off sdcard/touch circuit 2018-07-24 14:24:00 +02:00
Pavol Rusnak
08725c16e8
embed: fix sdcard issue 2018-07-23 11:58:36 +02:00
Pavol Rusnak
c1209dcc17
embed: sdcard investigation 2018-07-23 11:58:36 +02:00
Pavol Rusnak
08d8cf6a25
embed: remove superfluous != NULL 2018-07-23 11:58:36 +02:00
Pavol Rusnak
f1d8a3aaf2
embed: don't set pins to OUTPUT in {sdcard,touch}_active_pin_state when they were already set like this in {sdcard,touch}_default_pin_state 2018-07-23 11:58:36 +02:00
Pavol Rusnak
99c5d049b9
embed: moved configuration of SD detect pin to sdcard_default_pin_state 2018-07-23 11:58:36 +02:00
Pavol Rusnak
ca9162f7b7
embed: introduce {sdcard,touch}_active_pin_state 2018-07-23 11:58:36 +02:00
Pavol Rusnak
add16b6b27
embed: move {sdcard,touch}_default_pin_state to the beginning of {sdcard,touch}_init 2018-07-23 11:58:35 +02:00
Pavol Rusnak
7ca460457e
embed: refactor sdcard/touch, extract touch_power_on/off functions from touch_init 2018-07-23 11:58:35 +02:00
mcudev
0fbf2261cc boardloader: partial fix for powering off sd 2018-07-18 11:33:05 +02:00
Pavol Rusnak
2b30cc16a2
trezorhal: minor fixes to sdcard/touch power on sequence 2018-07-11 17:41:12 +02:00
Pavol Rusnak
6ce106b544
trezorhal: turn sdcard/cpt circuitry on/off using PC0/PB10 pin 2018-07-11 17:41:12 +02:00
Pavol Rusnak
e7b761e66f
embed: refactor sector_count constants 2018-06-20 14:54:15 +02:00
Pavol Rusnak
68669dd8e4
firmware: disable WebUSB landing page (#174) 2018-06-04 13:50:23 +02:00
Pavol Rusnak
081dcdd98f
embed/unix: resize emulator window if no background image found 2018-02-26 19:44:29 +01:00
Pavol Rusnak
14b0d4439a
embed: add GPLv3 source code headers 2018-02-26 14:07:37 +01:00
Pavol Rusnak
2bb9d80c18
embed/unix: implement nice background into emulator 2018-02-25 02:16:35 +01:00
Pavol Rusnak
fae8ffda9f
embed/trezorhal: simplify systick, remove microsecond precision 2018-02-23 20:06:53 +01:00
Pavol Rusnak
02358b3932
embed/trezorhal: move systick from vendor to trezorhal 2018-02-23 19:35:40 +01:00
Pavol Rusnak
21bb815945
embed/trezorhal: move mpu to trezorhal - enable it in firmware 2018-02-23 19:08:34 +01:00
Pavol Rusnak
2bebd0eec5
embed/trezorhal+unix: add copyright headers 2018-02-23 19:04:46 +01:00
Pavol Rusnak
3eab20e278
embed: refactor MIN/MAX macros in common.h 2018-02-22 20:35:32 +01:00
Pavol Rusnak
5ded086800
embed/trezorhal: introduce jump_to_unprivileged, disable mpu in bootloader 2018-02-13 20:51:14 +01:00
Pavol Rusnak
c115faf2cd
embed/trezorhal/usb: correct handling of interface messages in usb_class_setup 2018-02-12 18:25:13 +01:00
Pavol Rusnak
936f0e3e26
embed: fix 3 TODO items 2018-02-12 14:51:41 +01:00