1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

fix(core): leftover TREZOR_MODEL defines

[no changelog]
This commit is contained in:
Martin Milata 2022-04-28 15:52:09 +02:00
parent 8f1d33d5f9
commit 18c8304339
3 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ fn generate_micropython_bindings() {
"-I../../vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Inc",
"-I../../vendor/micropython/lib/stm32lib/CMSIS/STM32F4xx/Include",
"-I../../vendor/micropython/lib/cmsis/inc",
"-DTREZOR_MODEL=T",
"-DTREZOR_MODEL_T",
"-DSTM32F405xx",
"-DUSE_HAL_DRIVER",
"-DSTM32_HAL_H=<stm32f4xx.h>",

View File

@ -1,5 +1,5 @@
CC = cc
CFLAGS = -Wall -Wshadow -Wextra -Wpedantic -Werror -Wno-missing-braces -fPIC -fsanitize=address,undefined
CFLAGS = -Wall -Wshadow -Wextra -Wpedantic -Werror -Wno-missing-braces -fPIC -fsanitize=address,undefined -DTREZOR_MODEL_T
LIBS =
INC = -I ../../../crypto -I ../.. -I .
BASE = ../../../

View File

@ -31,9 +31,9 @@
* The length of the sector header in bytes. The header is preserved between
* sector erasures.
*/
#if defined MODEL_T
#if defined TREZOR_MODEL_T
#define NORCOW_HEADER_LEN 0
#elif defined MODEL_1
#elif defined TREZOR_MODEL_1
#define NORCOW_HEADER_LEN (0x100)
#else
#error Unknown Trezor model