Commit Graph

189 Commits (4db5f56d0a516a419c3d77cee19eaa748d019580)

Author SHA1 Message Date
mcudev 15bdc59b46 touch: reset touch panel
7 years ago
mcudev d9a64fbb6a touch: app note related updates and exit loop upon detection
7 years ago
mcudev 2ae1c99b06 touch: address simplification
7 years ago
mcudev 6aeccd5ee1 touch: make i2c_handle static and trivial simplification
7 years ago
mcudev d1ed02fb98 touch: use full 12-bit X and Y values
7 years ago
mcudev edd95d9b65 secbool: add unsigned literal suffixes
7 years ago
mcudev 7e01a733a3 shutdown: reorder operations
7 years ago
mcudev 5be5e19f99 clear_otg_hs_memory: remove unpredictable write
7 years ago
Jan Pochyla c632f9450f trezorhal: add spread spectrum clock
7 years ago
Pavol Rusnak 6738796d8b
trezorhal: call shutdown in default_handler
7 years ago
Pavol Rusnak 69c17dae9b
trezorhal: use uint32_t* for sdcard_{read,write}_blocks
7 years ago
Pavol Rusnak 5d6d342813
bootloader: erase storage on vendor change
7 years ago
Pavol Rusnak d0e81edc8f
bootloader: check chunk hash before flashing
7 years ago
Pavol Rusnak 36143033c4
bootloader: check vendor header / image header before flashing
7 years ago
Pavol Rusnak 4d36d0e1c1
trezorhal: use sectrue where possible
7 years ago
Jan Pochyla 51d00e1de7
trezorhal/usb: add Inf timeout to blocking fns
7 years ago
Pavol Rusnak f73eb3effd
trezorhal: introduce secbool/sectrue/secfalse and use it where possible
7 years ago
Pavol Rusnak 7ddfdf69d6
trezorhal: support for non-continous areas in check_image_contents
7 years ago
Pavol Rusnak 89cc35b195
trezorhal: fix hash offset in check_image_contents
7 years ago
Pavol Rusnak 7c891e19e5
boardloader, bootloader: check image contents against hashes in the header
7 years ago
Pavol Rusnak 63636be0a3
trezorhal: rework header checking to new format
7 years ago
Pavol Rusnak 9e82a4d348
bootloader, firmware: introduce chunk hashes in the image header
7 years ago
Pavol Rusnak 3c974095aa
trezorhal: increase image header size from 512 to 1024 bytes
7 years ago
Pavol Rusnak 0c6ee14ee1
trezorhal: move image related defines to image.h
7 years ago
Pavol Rusnak 8bd258db6f
trezorhal: added calls to USBD_LL_FlushEP in deinit functions
7 years ago
Pavol Rusnak d2ecae71d7
trezorhal: return position of last touch event from touch_click
7 years ago
Pavol Rusnak 6b9751d30d
trezorhal: cleanup usb api
7 years ago
Pavol Rusnak 4f041e9f3a
trezorhal: update sdcard api
7 years ago
Pavol Rusnak 3033762618
trezorhal: make touch_init and usb_init return void, use ensure inside
7 years ago
Pavol Rusnak 79fe9162b5
trezorhal: simplify api for init functions, use bool and void rather than int
7 years ago
Pavol Rusnak b51ca0a16e
trezorhal: remove extra comment
7 years ago
mcudev fc7b1cfe81 flash_init: remove empty function from all stages
7 years ago
mcudev 167d476fff image_parse_header: remove undefined behavior and other updates (#61)
7 years ago
mcudev a0286bcc29 build: further cleanup common symbols (#63)
7 years ago
mcudev ee7e6134a2 bootloader, firmware: do not need touch interrupt handlers or to enable touch interrupts (#59)
7 years ago
mcudev 4bda828cbd boardloader: disable flash data cache (#57)
7 years ago
mcudev 45a4a944d0 boardloader, bootloader, firmware: only call periph_init in boardloader (#54)
7 years ago
mcudev ac89203e7c SDIO: remove SDIO_IRQHandler and interrupt config (#53)
7 years ago
Pavol Rusnak 6ea9b105e5
boardloader, bootloader: reorder erasing of sectors, check whether sector was really erased
7 years ago
Pavol Rusnak 82050912c4
bootloader: implement WipeDevice
7 years ago
Pavol Rusnak 001298a90e
boardloader: erase storage on failed option_bytes
7 years ago
mcudev e4aec8f302 code cleanup 3: add note about timer wrap and use increment operator
7 years ago
mcudev a1c33e32f0 code cleanup 2: explicit .bss, linker map, and simpler systick
7 years ago
mcudev 5b634098d9 code cleanup
7 years ago
Pavol Rusnak 4831287357
embed: move call to usb_clear to shutdown function in assembler
7 years ago
Pavol Rusnak 88894e7a8d
embed: disable stack protector for SysTick_Handler
7 years ago
Pavol Rusnak a7625877ef
embed: call clear_otg_hs_memory from fatal_error
7 years ago
mcudev 7103404b90 RNG: Delay after an RCC peripheral clock enabling
7 years ago
Pavol Rusnak b60a1ad79f
embed: add shutdown function to fatal_error
7 years ago
Pavol Rusnak 2fc69bed61
embed: rename trassert to ensure
7 years ago
Pavol Rusnak 8cc8272fb3
build: pass gitrev, use it in fatal_error
7 years ago
mcudev 0c1f609675 SystemInit: add more waiting just to be sure (#41)
7 years ago
mcudev be92d9a7ee vector table updates (#40)
7 years ago
Pavol Rusnak 66b6406b7c
boardloader, bootloader: add write-protection and downgrade-protection respectively
7 years ago
Pavol Rusnak 380d08f1d0
embed: introduce trassert (trezor assert)
7 years ago
Pavol Rusnak d003c250d8
boardloader: refactor flash_option_bytes from trezorhal to boardloader/lowlevel
7 years ago
Pavol Rusnak 7babde646e
embed: more cleanup
7 years ago
Pavol Rusnak 6413c2c23e
embed: rework memory layout, enable stack protector
7 years ago
Pavol Rusnak 10ebd43261
firmware: move nlr_jump_fail from common to firmware
7 years ago
Pavol Rusnak eb345046d3
trezorhal: move internal constants to common.c
7 years ago
Pavol Rusnak 69953a91c5
trezorhal: code cleanup, combine stm32_it.c + stm32_system.c into stm32.c
7 years ago
mcudev ead626404b boardloader: issue 34 (#36)
7 years ago
mcudev 9ea975d37d jump_to: reset registers to zero (#33)
7 years ago
mcudev 8e96978ce2 boardloader, bootloader, firmware stage switching updates (#30)
7 years ago
Pavol Rusnak 7bbfba1ac0
boardloader, bootloader: moving embed/common/* to embed/trezorhal/*
7 years ago
mcudev 8d3540c858 boardloader, bootloader: jump_to memory clearing and simplify code to asm
7 years ago
mcudev f4e72aa4cc rng updates (#24)
7 years ago
mcudev a381819ad1 clock updates (#21)
7 years ago
Pavol Rusnak 78f57d083c
add vendor trust to vendorheader
7 years ago
mcudev 430117dd16 flash_otp_write: uninitialized variable
7 years ago
Pavol Rusnak 2bc37a10fe
use different set of keys for boardloader/bootloader/vendorheader
7 years ago
Pavol Rusnak a055f4e8fb
boardloader+bootloader: remove unneded STM32 include
7 years ago
mcudev 3bcd75fd94 issue 12: startup related changes
7 years ago
Pavol Rusnak 11e223850f
trezorhal: enable CSS (Clock Security System)
7 years ago
mcudev 58bad110e2 hardfault handler update
7 years ago
Pavol Rusnak d50eeb581a
trezorhal: introduce flash_write_{byte,word}
7 years ago
Pavol Rusnak 67d8d4fa2e
modtrezorio: add FlashOTP class
7 years ago
Pavol Rusnak 66930f2e37
trezorhal: add flash_otp functions
7 years ago
Jan Pochyla 1da18c955b trezorhal/sbu: use PA2/PA3
7 years ago
Pavol Rusnak a67be06349
trezorhal: add io.SBU
7 years ago
Pavol Rusnak be598582f5
trezorhal: remove trezorhal/hal directory
7 years ago
mcudev 5c21c4a96b better support ILI9341 testing, make tearing effect synch optional, minor fixes
7 years ago
Jan Pochyla 29b90465ce micropython: update submodule
7 years ago
Pavol Rusnak ae17af2313
Revert "usb: disable HS mode & U2F iface for now"
7 years ago
Jan Pochyla b61676cf89 usb: disable HS mode & U2F iface for now
7 years ago
Jan Pochyla 115bd995eb trezorhal/usb: fix string descriptors
7 years ago
Jan Pochyla d2781d030d msg: rename to io
7 years ago
Jan Pochyla 4c987454eb modtrezormsg: merge to modtrezorio
7 years ago
Jan Pochyla 55bd4a0806 rename /micropython to /embed
7 years ago