1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00
Commit Graph

190 Commits

Author SHA1 Message Date
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
Pavol Rusnak
548b8cb25b
embed/trezorhal: move cmd_buffer into usb_vcp_state_t 2018-02-06 15:30:15 +01:00
Pavol Rusnak
40e20e2e9d
trezorhal: fix usb class behaviour 2018-02-03 16:40:51 +01:00
Pavol Rusnak
61b4e3d6e3
trezorhal: fix typos 2018-02-02 17:41:49 +01:00
Pavol Rusnak
b8b8e38765
trezorhal: rename winusb_enabled to usb21_enabled 2018-02-02 16:02:37 +01:00
Pavol Rusnak
4f44c2577b
trezorhal: add option to programatically enable/disable WinUSB 2018-02-02 15:27:04 +01:00
Pavol Rusnak
488e516cbf
trezorhal: add device_class, etc. to usb object 2018-01-31 16:46:15 +01:00
Pavol Rusnak
ebc585fd40
trezorhal: fix bug in flash_otp_write 2018-01-29 08:44:55 +01:00
Pavol Rusnak
1b712a0446
trezorhal: fix simple interface behaviour on windows 2018-01-28 02:43:03 +01:00
Pavol Rusnak
399d6d2f65
trezorhal: make webusb more robust 2018-01-28 02:43:03 +01:00
Pavol Rusnak
08c145c4da
trezorhal: fix winusb 2018-01-28 02:43:02 +01:00
Pavol Rusnak
ba8224f598
trezorhal: remove configuration from usb string table 2018-01-28 02:43:00 +01:00