Commit Graph

319 Commits (ba1a3130161ad0579e6efe96f491155c226e6331)

Author SHA1 Message Date
Pavol Rusnak fdafae7d8d
trezorhal: remove timer1_get_source_freq function
7 years ago
mcudev 4f16aed757 display: handle TEON and COLMOD the same for both display types (#55)
7 years ago
Pavol Rusnak 4a14fb6c4d
boardloader: move periph_init to lowlevel.c
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 b1d9a59a79
unix: fix build
7 years ago
Pavol Rusnak 82050912c4
bootloader: implement WipeDevice
7 years ago
mcudev ca8d93ab5d boardloader, bootloader, firmware: factor out display_pwm_init (#52)
7 years ago
Pavol Rusnak 2010213338
bootloader: first UI steps
7 years ago
mcudev 0e2a1da99b display: remove redundant display commands and increase wait after reset (#51)
7 years ago
Pavol Rusnak 001298a90e
boardloader: erase storage on failed option_bytes
7 years ago
Pavol Rusnak e8e3ed98f3
boardloader: usability fixes
7 years ago
Pavol Rusnak b6f9df10bb
display: set minimum possible values for sram controller
7 years ago
Pavol Rusnak 46a0dd8648
display: fix DataSetupTime for ST7789V
7 years ago
mcudev e2b66436df display: tearing effect cleanup
7 years ago
mcudev 26852e5aee boardloader: display_init stm32f42x updates
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 06fc509cbb
boardloader: reorder calls so one can abort also by ejecting SD card
7 years ago
Pavol Rusnak 8a707ce40d
boardloader: check flash_option_bytes at start
7 years ago
mcudev 70594a9bfe startup: setup the stack protector for the stage before main function (#46)
7 years ago
Pavol Rusnak 4c9e2d45a5
bootloader: use display_fade
7 years ago
Pavol Rusnak 204f0c55e4
bootloader: use ensure
7 years ago
Pavol Rusnak bdae87ddde
boardloader: small changes to program flow and display output
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 73214017fa clear_otg_hs_memory: Delay after an RCC peripheral clock enabling
7 years ago
mcudev 7103404b90 RNG: Delay after an RCC peripheral clock enabling
7 years ago
Pavol Rusnak c5dfa37f3e
boardloader: don't call copy_sdcard twice
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 9a0c8f4687
build: introduce PRODUCTION flag
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 3982c19378
fix whitespace
7 years ago
mcudev 61e0f6c818 stm32f427 sram bigger (#39)
7 years ago
Pavol Rusnak 98ad17e1ea
firmware: use __FUNCTION__ in consistency with the rest of the code
7 years ago
Pavol Rusnak 7babde646e
embed: more cleanup
7 years ago
Pavol Rusnak 7653eb699d
embed: use 4bpp fonts again
7 years ago
Pavol Rusnak a43aec0fe3
embed: make F427 the default mcu
7 years ago
Pavol Rusnak 6413c2c23e
embed: rework memory layout, enable stack protector
7 years ago
Pavol Rusnak 7117c59ed9
firmware: drop firmware0 concept
7 years ago
Pavol Rusnak 10ebd43261
firmware: move nlr_jump_fail from common to firmware
7 years ago
Pavol Rusnak 32e48258e4
trezorhal: preparations for F427 support
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
Pavol Rusnak a6fd1da237
boardloader: wait 5 seconds before copying bootloader
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
mcudev dbfeddce79 firmware: issue #12 (#29)
7 years ago
mcudev 08caf86c5b bootloader: issue #12 (#28)
7 years ago
mcudev b0c54e2a4b boardloader: simplify linker script (#27)
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 acca6a0945 boardloader: move memset_reg to separate source file
7 years ago
mcudev bb5b4d2e55 boardloader: simplify vector table config with macro
7 years ago
mcudev 08b231a298 boardloader: factor out vector table
7 years ago
mcudev 4ee5872a55 display: backlight handling (#25)
7 years ago
mcudev f4e72aa4cc rng updates (#24)
7 years ago
mcudev a381819ad1 clock updates (#21)
7 years ago
Pavol Rusnak 6693d61aa0
boardloader+bootloader: remove prints during normal operation
7 years ago
Pavol Rusnak 78f57d083c
add vendor trust to vendorheader
7 years ago
Pavol Rusnak 39b614499f
build: update production keys
7 years ago
Pavol Rusnak b962ace27d
build: add production keys
7 years ago
Pavol Rusnak 09340e93d7
firmware+unix: sync mpconfigport.h with upstream
7 years ago
Jan Pochyla cd33fa7293 modtrezorui/unix: remove redundant init values
7 years ago
Jan Pochyla 7c4db458e5 modtrezorui/unix: fix 5c21c4a
7 years ago
Jan Pochyla 3a48307002 modtrezorui/unix: fix 43e8b85
7 years ago
Jan Pochyla 99d3ae5e8b modtrezorui/unix: make sure display is initialized
7 years ago
Jan Pochyla 7d31bdcf78 modtrezorutils: add consteq
7 years ago
Pavol Rusnak 2139e8b02d
fonts: use 2 BPP instead of 4 for fonts
7 years ago
Pavol Rusnak da8cc37a54
tools: move code generating tools to tools/codegen
7 years ago
Pavol Rusnak 63737f59b0
bootloader: vendor nanopb as submodule
7 years ago
Pavol Rusnak 8ddcd74080
build: sign all stuff using ed25519 cosi (2 out of 3)
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
Pavol Rusnak ad614a364f
bootloader+firmware: move startup scripts to embed, preparation for their change
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
Pavol Rusnak d33ce4a666
firmware: fix last commit
7 years ago
Pavol Rusnak cfe9c73c78
firmware: init display when used in standalone (firmware0) mode
7 years ago
mcudev 43e8b85700 display updates
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
Pavol Rusnak 9019ec7e2b
build: add firmware0 target (firmware with no headers)
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 b715f7463d
modtrezorui: pwm control is now on pin A7
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
mcudev 7535fb74ea fix minor compile time bug and update docs
7 years ago
Pavol Rusnak d72f026313
firmware: enable input() built-in
7 years ago
Pavol Rusnak a926e5047d
trezor.io: update comment in sdcard read/write methods
7 years ago
Pavol Rusnak fb2eff7ced
trezor.ui: add antialiasing to display.avatar
7 years ago
Pavol Rusnak be9a05b55a
ui.display: add avatar function
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 bdc9496ff0 make: remove Makefiles
7 years ago
Jan Pochyla a15f6e3835 modtrezorio: fix missing includes
7 years ago
Jan Pochyla b1b84fb233 modtrezorio: move write() to HID
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 3dab5e7797 scons: cleanup defines
7 years ago
Jan Pochyla c357692a43 scons: add SConscript.unix
7 years ago
Jan Pochyla 803e39c2a8 make: adapt to micropython -> embed rename
7 years ago
Jan Pochyla 55bd4a0806 rename /micropython to /embed
7 years ago