1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00
Go to file
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
assets src/trezor/ui/style: update resources and icons in dialogs 2018-02-27 23:52:49 +01:00
docs coins: validate derivation paths 2018-11-12 12:10:32 +01:00
embed embed/trezorhal: only poll CTPM when touch is detected 2018-11-26 14:47:06 +01:00
mocks xmr: master merging commit 2018-10-25 14:04:50 +02:00
site_scons/site_tools/micropython scons: precompile regexp 2018-06-19 18:26:43 +02:00
src Merge pull request #341 from trezor/tsusanka/paths 2018-11-19 15:54:11 +01:00
src1 firmware: enable touch for T1 2018-10-02 18:08:44 +02:00
tests Merge pull request #341 from trezor/tsusanka/paths 2018-11-19 15:54:11 +01:00
tools xmr: master merging commit 2018-10-25 14:04:50 +02:00
vendor vendor: update trezor-common 2018-11-12 14:14:25 +01:00
.clang-format style: add cstyle target to Makefile + clang-format config, don't enforce for now 2018-07-17 16:54:37 +02:00
.dockerignore build: unify build-docker.sh and build-docker.gcc_source.sh 2018-10-12 13:57:27 +02:00
.gitignore
.gitmodules
.pylintrc
.travis.yml travis: pipenv hotfix 2018-10-25 14:04:51 +02:00
AUTHORS embed: add GPLv3 source code headers 2018-02-26 14:07:37 +01:00
build-docker.sh docker: add PRODUCTION env variable to build script 2018-11-05 21:41:03 +01:00
ChangeLog changelog: update 2018-11-13 16:52:34 +01:00
COPYING
Dockerfile docker: fix Docker build 2018-10-23 12:00:42 +02:00
emu.sh unix: emulator debug build options 2018-10-11 16:33:45 +02:00
Makefile unix: add raspi target 2018-11-07 00:31:44 +01:00
Pipfile Revert "TEMPORARY: run tests against tsusanka/paths python-trezor branch" 2018-11-21 17:21:28 +01:00
Pipfile.lock travis: revert Pipfile.lock to use python-trezor master 2018-09-05 18:37:45 +02:00
README.md docs: add emulator page 2018-05-31 13:11:36 +02:00
SConscript.boardloader build: add missing spi object file 2018-09-30 20:29:11 +02:00
SConscript.bootloader build: add missing spi object file 2018-09-30 20:29:11 +02:00
SConscript.firmware unix: refresh micropython sources in SConscript.unix 2018-10-26 01:09:02 +02:00
SConscript.prodtest build: add missing spi object file 2018-09-30 20:29:11 +02:00
SConscript.reflash build: add missing spi object file 2018-09-30 20:29:11 +02:00
SConscript.unix unix: add raspi target 2018-11-07 00:31:44 +01:00
SConstruct
setup.cfg tests: tezos is not xfailed anymore 2018-09-13 15:14:06 +02:00
shell.nix nix: add Pyro4 to shell.nix 2018-11-05 16:03:15 +01:00
travis-install-libsodium.sh xmr: master merging commit 2018-10-25 14:04:50 +02:00

TREZOR Core

TREZOR Logo

Build Status Gitter

This is the source code for 2nd generation of TREZOR called TREZOR model T.

It runs both inside of the device and also in the TREZOR Emulator.

emulator

Documentation