1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +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/STM32F4xx_HAL_Driver/Inc",
"-I../../vendor/micropython/lib/stm32lib/CMSIS/STM32F4xx/Include", "-I../../vendor/micropython/lib/stm32lib/CMSIS/STM32F4xx/Include",
"-I../../vendor/micropython/lib/cmsis/inc", "-I../../vendor/micropython/lib/cmsis/inc",
"-DTREZOR_MODEL=T", "-DTREZOR_MODEL_T",
"-DSTM32F405xx", "-DSTM32F405xx",
"-DUSE_HAL_DRIVER", "-DUSE_HAL_DRIVER",
"-DSTM32_HAL_H=<stm32f4xx.h>", "-DSTM32_HAL_H=<stm32f4xx.h>",

View File

@ -1,5 +1,5 @@
CC = cc 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 = LIBS =
INC = -I ../../../crypto -I ../.. -I . INC = -I ../../../crypto -I ../.. -I .
BASE = ../../../ BASE = ../../../

View File

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