fix(core): leftover TREZOR_MODEL defines

[no changelog]
pull/2230/head
Martin Milata 2 years ago
parent 8f1d33d5f9
commit 18c8304339

@ -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>",

@ -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 = ../../../

@ -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

Loading…
Cancel
Save